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