Ejemplo n.º 1
0
 public static EcmaValue BitwiseAND(EcmaState state, EcmaValue left, EcmaValue right)
 {
     return(EcmaValue.Number(left.ToInt32(state) & right.ToInt32(state)));
 }
Ejemplo n.º 2
0
 public static EcmaValue RightShift(EcmaState state, EcmaValue left, EcmaValue right)
 {
     return(EcmaValue.Number(left.ToInt32(state) >> right.ToInt32(state)));
 }
Ejemplo n.º 3
0
 public static EcmaValue LeftShit(EcmaState state, EcmaValue left, EcmaValue right)
 {
     return(EcmaValue.Number(left.ToInt32(state) << right.ToInt32(state)));
 }
Ejemplo n.º 4
0
 public static EcmaValue UnsignedRightShit(EcmaState state, EcmaValue left, EcmaValue right)
 {
     return(EcmaValue.Number((uint)left.ToInt32(state) >> (int)(right.ToUint32(state) & 0x1F)));
 }