Esempio n. 1
0
 def __init__(self, value):
     from js.object_space import newint
     self.w_intvalue = newint(int(value))
Esempio n. 2
0
 def eval(self, ctx):
     op = ctx.stack_pop().ToInt32()
     from js.object_space import newint
     ctx.stack_append(newint(~op))
Esempio n. 3
0
 def operation(self, ctx, op1, op2):
     from js.object_space import newint
     return newint(op1 | op2)
Esempio n. 4
0
 def __init__(self, value):
     from js.object_space import newint
     self.w_intvalue = newint(int(value))
Esempio n. 5
0
 def eval(self, ctx):
     op = ctx.stack_pop().ToInt32()
     from js.object_space import newint
     ctx.stack_append(newint(~op))
Esempio n. 6
0
 def operation(self, ctx, op1, op2):
     from js.object_space import newint
     return newint(op1 | op2)