示例#1
0
 def constant_fold(self, op):
     self.protect_speculative_operation(op)
     argboxes = [
         self.get_constant_box(op.getarg(i)) for i in range(op.numargs())
     ]
     return execute_nonspec_const(self.cpu, None, op.getopnum(), argboxes,
                                  op.getdescr(), op.type)
示例#2
0
 def constant_fold(self, op):
     self.protect_speculative_operation(op)
     argboxes = [self.get_constant_box(op.getarg(i))
                 for i in range(op.numargs())]
     return execute_nonspec_const(self.cpu, None,
                                    op.getopnum(), argboxes,
                                    op.getdescr(), op.type)