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