Author: Laurence Tratt <[email protected]>
Branch: sanitise_bytecode_dispatch
Changeset: r66710:9e4b0a2b129a
Date: 2013-08-31 13:03 +0100
http://bitbucket.org/pypy/pypy/changeset/9e4b0a2b129a/
Log: (arigo, ltratt) Remove some unneeded imports and simplify code
accordingly.
diff --git a/pypy/interpreter/pyopcode.py b/pypy/interpreter/pyopcode.py
--- a/pypy/interpreter/pyopcode.py
+++ b/pypy/interpreter/pyopcode.py
@@ -13,10 +13,8 @@
from rpython.rlib.objectmodel import we_are_translated
from rpython.rlib import jit, rstackovf
from rpython.rlib.rarithmetic import r_uint, intmask
-from rpython.rlib.unroll import unrolling_iterable
from rpython.rlib.debug import check_nonneg
-from pypy.tool.stdlib_opcode import (bytecode_spec,
- unrolling_all_opcode_descs)
+from pypy.tool.stdlib_opcode import bytecode_spec
def unaryoperation(operationname):
"""NOT_RPYTHON"""
@@ -42,15 +40,13 @@
return func_with_new_name(opimpl, "opcode_impl_for_%s" % operationname)
+opcodedesc = bytecode_spec.opcodedesc
+HAVE_ARGUMENT = bytecode_spec.HAVE_ARGUMENT
+
class __extend__(pyframe.PyFrame):
"""A PyFrame that knows about interpretation of standard Python opcodes
minus the ones related to nested scopes."""
- opcode_method_names = bytecode_spec.method_names
- opcodedesc = bytecode_spec.opcodedesc
- opdescmap = bytecode_spec.opdescmap
- HAVE_ARGUMENT = bytecode_spec.HAVE_ARGUMENT
-
### opcode dispatch ###
def dispatch(self, pycode, next_instr, ec):
@@ -152,7 +148,7 @@
opcode = ord(co_code[next_instr])
next_instr += 1
- if opcode >= self.HAVE_ARGUMENT:
+ if opcode >= HAVE_ARGUMENT:
lo = ord(co_code[next_instr])
hi = ord(co_code[next_instr+1])
next_instr += 2
@@ -164,16 +160,16 @@
# (after translation) a big "if/elif" chain, which is then
# turned into a switch().
- while opcode == self.opcodedesc.EXTENDED_ARG.index:
+ while opcode == opcodedesc.EXTENDED_ARG.index:
opcode = ord(co_code[next_instr])
- if opcode < self.HAVE_ARGUMENT:
+ if opcode < HAVE_ARGUMENT:
raise BytecodeCorruption
lo = ord(co_code[next_instr+1])
hi = ord(co_code[next_instr+2])
next_instr += 3
oparg = (oparg * 65536) | (hi * 256) | lo
- if opcode == self.opcodedesc.RETURN_VALUE.index:
+ if opcode == opcodedesc.RETURN_VALUE.index:
w_returnvalue = self.popvalue()
block = self.unrollstack(SReturnValue.kind)
if block is None:
@@ -183,7 +179,7 @@
unroller = SReturnValue(w_returnvalue)
next_instr = block.handle(self, unroller)
return next_instr # now inside a 'finally' block
- elif opcode == self.opcodedesc.END_FINALLY.index:
+ elif opcode == opcodedesc.END_FINALLY.index:
unroller = self.end_finally()
if isinstance(unroller, SuspendedUnroller):
# go on unrolling the stack
@@ -195,245 +191,245 @@
else:
next_instr = block.handle(self, unroller)
return next_instr
- elif opcode == self.opcodedesc.JUMP_ABSOLUTE.index:
+ elif opcode == opcodedesc.JUMP_ABSOLUTE.index:
return self.jump_absolute(oparg, ec)
- elif opcode == self.opcodedesc.BREAK_LOOP.index:
+ elif opcode == opcodedesc.BREAK_LOOP.index:
next_instr = self.BREAK_LOOP(oparg, next_instr)
- elif opcode == self.opcodedesc.CONTINUE_LOOP.index:
+ elif opcode == opcodedesc.CONTINUE_LOOP.index:
next_instr = self.CONTINUE_LOOP(oparg, next_instr)
- elif opcode == self.opcodedesc.FOR_ITER.index:
+ elif opcode == opcodedesc.FOR_ITER.index:
next_instr = self.FOR_ITER(oparg, next_instr)
- elif opcode == self.opcodedesc.JUMP_FORWARD.index:
+ elif opcode == opcodedesc.JUMP_FORWARD.index:
next_instr = self.JUMP_FORWARD(oparg, next_instr)
- elif opcode == self.opcodedesc.JUMP_IF_FALSE_OR_POP.index:
+ elif opcode == opcodedesc.JUMP_IF_FALSE_OR_POP.index:
next_instr = self.JUMP_IF_FALSE_OR_POP(oparg, next_instr)
- elif opcode == self.opcodedesc.JUMP_IF_NOT_DEBUG.index:
+ elif opcode == opcodedesc.JUMP_IF_NOT_DEBUG.index:
next_instr = self.JUMP_IF_NOT_DEBUG(oparg, next_instr)
- elif opcode == self.opcodedesc.JUMP_IF_TRUE_OR_POP.index:
+ elif opcode == opcodedesc.JUMP_IF_TRUE_OR_POP.index:
next_instr = self.JUMP_IF_TRUE_OR_POP(oparg, next_instr)
- elif opcode == self.opcodedesc.POP_JUMP_IF_FALSE.index:
+ elif opcode == opcodedesc.POP_JUMP_IF_FALSE.index:
next_instr = self.POP_JUMP_IF_FALSE(oparg, next_instr)
- elif opcode == self.opcodedesc.POP_JUMP_IF_TRUE.index:
+ elif opcode == opcodedesc.POP_JUMP_IF_TRUE.index:
next_instr = self.POP_JUMP_IF_TRUE(oparg, next_instr)
- elif opcode == self.opcodedesc.BINARY_ADD.index:
+ elif opcode == opcodedesc.BINARY_ADD.index:
self.BINARY_ADD(oparg, next_instr)
- elif opcode == self.opcodedesc.BINARY_AND.index:
+ elif opcode == opcodedesc.BINARY_AND.index:
self.BINARY_AND(oparg, next_instr)
- elif opcode == self.opcodedesc.BINARY_DIVIDE.index:
+ elif opcode == opcodedesc.BINARY_DIVIDE.index:
self.BINARY_DIVIDE(oparg, next_instr)
- elif opcode == self.opcodedesc.BINARY_FLOOR_DIVIDE.index:
+ elif opcode == opcodedesc.BINARY_FLOOR_DIVIDE.index:
self.BINARY_FLOOR_DIVIDE(oparg, next_instr)
- elif opcode == self.opcodedesc.BINARY_LSHIFT.index:
+ elif opcode == opcodedesc.BINARY_LSHIFT.index:
self.BINARY_LSHIFT(oparg, next_instr)
- elif opcode == self.opcodedesc.BINARY_MODULO.index:
+ elif opcode == opcodedesc.BINARY_MODULO.index:
self.BINARY_MODULO(oparg, next_instr)
- elif opcode == self.opcodedesc.BINARY_MULTIPLY.index:
+ elif opcode == opcodedesc.BINARY_MULTIPLY.index:
self.BINARY_MULTIPLY(oparg, next_instr)
- elif opcode == self.opcodedesc.BINARY_OR.index:
+ elif opcode == opcodedesc.BINARY_OR.index:
self.BINARY_OR(oparg, next_instr)
- elif opcode == self.opcodedesc.BINARY_POWER.index:
+ elif opcode == opcodedesc.BINARY_POWER.index:
self.BINARY_POWER(oparg, next_instr)
- elif opcode == self.opcodedesc.BINARY_RSHIFT.index:
+ elif opcode == opcodedesc.BINARY_RSHIFT.index:
self.BINARY_RSHIFT(oparg, next_instr)
- elif opcode == self.opcodedesc.BINARY_SUBSCR.index:
+ elif opcode == opcodedesc.BINARY_SUBSCR.index:
self.BINARY_SUBSCR(oparg, next_instr)
- elif opcode == self.opcodedesc.BINARY_SUBTRACT.index:
+ elif opcode == opcodedesc.BINARY_SUBTRACT.index:
self.BINARY_SUBTRACT(oparg, next_instr)
- elif opcode == self.opcodedesc.BINARY_TRUE_DIVIDE.index:
+ elif opcode == opcodedesc.BINARY_TRUE_DIVIDE.index:
self.BINARY_TRUE_DIVIDE(oparg, next_instr)
- elif opcode == self.opcodedesc.BINARY_XOR.index:
+ elif opcode == opcodedesc.BINARY_XOR.index:
self.BINARY_XOR(oparg, next_instr)
- elif opcode == self.opcodedesc.BUILD_CLASS.index:
+ elif opcode == opcodedesc.BUILD_CLASS.index:
self.BUILD_CLASS(oparg, next_instr)
- elif opcode == self.opcodedesc.BUILD_LIST.index:
+ elif opcode == opcodedesc.BUILD_LIST.index:
self.BUILD_LIST(oparg, next_instr)
- elif opcode == self.opcodedesc.BUILD_LIST_FROM_ARG.index:
+ elif opcode == opcodedesc.BUILD_LIST_FROM_ARG.index:
self.BUILD_LIST_FROM_ARG(oparg, next_instr)
- elif opcode == self.opcodedesc.BUILD_MAP.index:
+ elif opcode == opcodedesc.BUILD_MAP.index:
self.BUILD_MAP(oparg, next_instr)
- elif opcode == self.opcodedesc.BUILD_SET.index:
+ elif opcode == opcodedesc.BUILD_SET.index:
self.BUILD_SET(oparg, next_instr)
- elif opcode == self.opcodedesc.BUILD_SLICE.index:
+ elif opcode == opcodedesc.BUILD_SLICE.index:
self.BUILD_SLICE(oparg, next_instr)
- elif opcode == self.opcodedesc.BUILD_TUPLE.index:
+ elif opcode == opcodedesc.BUILD_TUPLE.index:
self.BUILD_TUPLE(oparg, next_instr)
- elif opcode == self.opcodedesc.CALL_FUNCTION.index:
+ elif opcode == opcodedesc.CALL_FUNCTION.index:
self.CALL_FUNCTION(oparg, next_instr)
- elif opcode == self.opcodedesc.CALL_FUNCTION_KW.index:
+ elif opcode == opcodedesc.CALL_FUNCTION_KW.index:
self.CALL_FUNCTION_KW(oparg, next_instr)
- elif opcode == self.opcodedesc.CALL_FUNCTION_VAR.index:
+ elif opcode == opcodedesc.CALL_FUNCTION_VAR.index:
self.CALL_FUNCTION_VAR(oparg, next_instr)
- elif opcode == self.opcodedesc.CALL_FUNCTION_VAR_KW.index:
+ elif opcode == opcodedesc.CALL_FUNCTION_VAR_KW.index:
self.CALL_FUNCTION_VAR_KW(oparg, next_instr)
- elif opcode == self.opcodedesc.CALL_METHOD.index:
+ elif opcode == opcodedesc.CALL_METHOD.index:
self.CALL_METHOD(oparg, next_instr)
- elif opcode == self.opcodedesc.COMPARE_OP.index:
+ elif opcode == opcodedesc.COMPARE_OP.index:
self.COMPARE_OP(oparg, next_instr)
- elif opcode == self.opcodedesc.DELETE_ATTR.index:
+ elif opcode == opcodedesc.DELETE_ATTR.index:
self.DELETE_ATTR(oparg, next_instr)
- elif opcode == self.opcodedesc.DELETE_FAST.index:
+ elif opcode == opcodedesc.DELETE_FAST.index:
self.DELETE_FAST(oparg, next_instr)
- elif opcode == self.opcodedesc.DELETE_GLOBAL.index:
+ elif opcode == opcodedesc.DELETE_GLOBAL.index:
self.DELETE_GLOBAL(oparg, next_instr)
- elif opcode == self.opcodedesc.DELETE_NAME.index:
+ elif opcode == opcodedesc.DELETE_NAME.index:
self.DELETE_NAME(oparg, next_instr)
- elif opcode == self.opcodedesc.DELETE_SLICE_0.index:
+ elif opcode == opcodedesc.DELETE_SLICE_0.index:
self.DELETE_SLICE_0(oparg, next_instr)
- elif opcode == self.opcodedesc.DELETE_SLICE_1.index:
+ elif opcode == opcodedesc.DELETE_SLICE_1.index:
self.DELETE_SLICE_1(oparg, next_instr)
- elif opcode == self.opcodedesc.DELETE_SLICE_2.index:
+ elif opcode == opcodedesc.DELETE_SLICE_2.index:
self.DELETE_SLICE_2(oparg, next_instr)
- elif opcode == self.opcodedesc.DELETE_SLICE_3.index:
+ elif opcode == opcodedesc.DELETE_SLICE_3.index:
self.DELETE_SLICE_3(oparg, next_instr)
- elif opcode == self.opcodedesc.DELETE_SUBSCR.index:
+ elif opcode == opcodedesc.DELETE_SUBSCR.index:
self.DELETE_SUBSCR(oparg, next_instr)
- elif opcode == self.opcodedesc.DUP_TOP.index:
+ elif opcode == opcodedesc.DUP_TOP.index:
self.DUP_TOP(oparg, next_instr)
- elif opcode == self.opcodedesc.DUP_TOPX.index:
+ elif opcode == opcodedesc.DUP_TOPX.index:
self.DUP_TOPX(oparg, next_instr)
- elif opcode == self.opcodedesc.EXEC_STMT.index:
+ elif opcode == opcodedesc.EXEC_STMT.index:
self.EXEC_STMT(oparg, next_instr)
- elif opcode == self.opcodedesc.GET_ITER.index:
+ elif opcode == opcodedesc.GET_ITER.index:
self.GET_ITER(oparg, next_instr)
- elif opcode == self.opcodedesc.IMPORT_FROM.index:
+ elif opcode == opcodedesc.IMPORT_FROM.index:
self.IMPORT_FROM(oparg, next_instr)
- elif opcode == self.opcodedesc.IMPORT_NAME.index:
+ elif opcode == opcodedesc.IMPORT_NAME.index:
self.IMPORT_NAME(oparg, next_instr)
- elif opcode == self.opcodedesc.IMPORT_STAR.index:
+ elif opcode == opcodedesc.IMPORT_STAR.index:
self.IMPORT_STAR(oparg, next_instr)
- elif opcode == self.opcodedesc.INPLACE_ADD.index:
+ elif opcode == opcodedesc.INPLACE_ADD.index:
self.INPLACE_ADD(oparg, next_instr)
- elif opcode == self.opcodedesc.INPLACE_AND.index:
+ elif opcode == opcodedesc.INPLACE_AND.index:
self.INPLACE_AND(oparg, next_instr)
- elif opcode == self.opcodedesc.INPLACE_DIVIDE.index:
+ elif opcode == opcodedesc.INPLACE_DIVIDE.index:
self.INPLACE_DIVIDE(oparg, next_instr)
- elif opcode == self.opcodedesc.INPLACE_FLOOR_DIVIDE.index:
+ elif opcode == opcodedesc.INPLACE_FLOOR_DIVIDE.index:
self.INPLACE_FLOOR_DIVIDE(oparg, next_instr)
- elif opcode == self.opcodedesc.INPLACE_LSHIFT.index:
+ elif opcode == opcodedesc.INPLACE_LSHIFT.index:
self.INPLACE_LSHIFT(oparg, next_instr)
- elif opcode == self.opcodedesc.INPLACE_MODULO.index:
+ elif opcode == opcodedesc.INPLACE_MODULO.index:
self.INPLACE_MODULO(oparg, next_instr)
- elif opcode == self.opcodedesc.INPLACE_MULTIPLY.index:
+ elif opcode == opcodedesc.INPLACE_MULTIPLY.index:
self.INPLACE_MULTIPLY(oparg, next_instr)
- elif opcode == self.opcodedesc.INPLACE_OR.index:
+ elif opcode == opcodedesc.INPLACE_OR.index:
self.INPLACE_OR(oparg, next_instr)
- elif opcode == self.opcodedesc.INPLACE_POWER.index:
+ elif opcode == opcodedesc.INPLACE_POWER.index:
self.INPLACE_POWER(oparg, next_instr)
- elif opcode == self.opcodedesc.INPLACE_RSHIFT.index:
+ elif opcode == opcodedesc.INPLACE_RSHIFT.index:
self.INPLACE_RSHIFT(oparg, next_instr)
- elif opcode == self.opcodedesc.INPLACE_SUBTRACT.index:
+ elif opcode == opcodedesc.INPLACE_SUBTRACT.index:
self.INPLACE_SUBTRACT(oparg, next_instr)
- elif opcode == self.opcodedesc.INPLACE_TRUE_DIVIDE.index:
+ elif opcode == opcodedesc.INPLACE_TRUE_DIVIDE.index:
self.INPLACE_TRUE_DIVIDE(oparg, next_instr)
- elif opcode == self.opcodedesc.INPLACE_XOR.index:
+ elif opcode == opcodedesc.INPLACE_XOR.index:
self.INPLACE_XOR(oparg, next_instr)
- elif opcode == self.opcodedesc.LIST_APPEND.index:
+ elif opcode == opcodedesc.LIST_APPEND.index:
self.LIST_APPEND(oparg, next_instr)
- elif opcode == self.opcodedesc.LOAD_ATTR.index:
+ elif opcode == opcodedesc.LOAD_ATTR.index:
self.LOAD_ATTR(oparg, next_instr)
- elif opcode == self.opcodedesc.LOAD_CLOSURE.index:
+ elif opcode == opcodedesc.LOAD_CLOSURE.index:
self.LOAD_CLOSURE(oparg, next_instr)
- elif opcode == self.opcodedesc.LOAD_CONST.index:
+ elif opcode == opcodedesc.LOAD_CONST.index:
self.LOAD_CONST(oparg, next_instr)
- elif opcode == self.opcodedesc.LOAD_DEREF.index:
+ elif opcode == opcodedesc.LOAD_DEREF.index:
self.LOAD_DEREF(oparg, next_instr)
- elif opcode == self.opcodedesc.LOAD_FAST.index:
+ elif opcode == opcodedesc.LOAD_FAST.index:
self.LOAD_FAST(oparg, next_instr)
- elif opcode == self.opcodedesc.LOAD_GLOBAL.index:
+ elif opcode == opcodedesc.LOAD_GLOBAL.index:
self.LOAD_GLOBAL(oparg, next_instr)
- elif opcode == self.opcodedesc.LOAD_LOCALS.index:
+ elif opcode == opcodedesc.LOAD_LOCALS.index:
self.LOAD_LOCALS(oparg, next_instr)
- elif opcode == self.opcodedesc.LOAD_NAME.index:
+ elif opcode == opcodedesc.LOAD_NAME.index:
self.LOAD_NAME(oparg, next_instr)
- elif opcode == self.opcodedesc.LOOKUP_METHOD.index:
+ elif opcode == opcodedesc.LOOKUP_METHOD.index:
self.LOOKUP_METHOD(oparg, next_instr)
- elif opcode == self.opcodedesc.MAKE_CLOSURE.index:
+ elif opcode == opcodedesc.MAKE_CLOSURE.index:
self.MAKE_CLOSURE(oparg, next_instr)
- elif opcode == self.opcodedesc.MAKE_FUNCTION.index:
+ elif opcode == opcodedesc.MAKE_FUNCTION.index:
self.MAKE_FUNCTION(oparg, next_instr)
- elif opcode == self.opcodedesc.MAP_ADD.index:
+ elif opcode == opcodedesc.MAP_ADD.index:
self.MAP_ADD(oparg, next_instr)
- elif opcode == self.opcodedesc.NOP.index:
+ elif opcode == opcodedesc.NOP.index:
self.NOP(oparg, next_instr)
- elif opcode == self.opcodedesc.POP_BLOCK.index:
+ elif opcode == opcodedesc.POP_BLOCK.index:
self.POP_BLOCK(oparg, next_instr)
- elif opcode == self.opcodedesc.POP_TOP.index:
+ elif opcode == opcodedesc.POP_TOP.index:
self.POP_TOP(oparg, next_instr)
- elif opcode == self.opcodedesc.PRINT_EXPR.index:
+ elif opcode == opcodedesc.PRINT_EXPR.index:
self.PRINT_EXPR(oparg, next_instr)
- elif opcode == self.opcodedesc.PRINT_ITEM.index:
+ elif opcode == opcodedesc.PRINT_ITEM.index:
self.PRINT_ITEM(oparg, next_instr)
- elif opcode == self.opcodedesc.PRINT_ITEM_TO.index:
+ elif opcode == opcodedesc.PRINT_ITEM_TO.index:
self.PRINT_ITEM_TO(oparg, next_instr)
- elif opcode == self.opcodedesc.PRINT_NEWLINE.index:
+ elif opcode == opcodedesc.PRINT_NEWLINE.index:
self.PRINT_NEWLINE(oparg, next_instr)
- elif opcode == self.opcodedesc.PRINT_NEWLINE_TO.index:
+ elif opcode == opcodedesc.PRINT_NEWLINE_TO.index:
self.PRINT_NEWLINE_TO(oparg, next_instr)
- elif opcode == self.opcodedesc.RAISE_VARARGS.index:
+ elif opcode == opcodedesc.RAISE_VARARGS.index:
self.RAISE_VARARGS(oparg, next_instr)
- elif opcode == self.opcodedesc.ROT_FOUR.index:
+ elif opcode == opcodedesc.ROT_FOUR.index:
self.ROT_FOUR(oparg, next_instr)
- elif opcode == self.opcodedesc.ROT_THREE.index:
+ elif opcode == opcodedesc.ROT_THREE.index:
self.ROT_THREE(oparg, next_instr)
- elif opcode == self.opcodedesc.ROT_TWO.index:
+ elif opcode == opcodedesc.ROT_TWO.index:
self.ROT_TWO(oparg, next_instr)
- elif opcode == self.opcodedesc.SETUP_EXCEPT.index:
+ elif opcode == opcodedesc.SETUP_EXCEPT.index:
self.SETUP_EXCEPT(oparg, next_instr)
- elif opcode == self.opcodedesc.SETUP_FINALLY.index:
+ elif opcode == opcodedesc.SETUP_FINALLY.index:
self.SETUP_FINALLY(oparg, next_instr)
- elif opcode == self.opcodedesc.SETUP_LOOP.index:
+ elif opcode == opcodedesc.SETUP_LOOP.index:
self.SETUP_LOOP(oparg, next_instr)
- elif opcode == self.opcodedesc.SETUP_WITH.index:
+ elif opcode == opcodedesc.SETUP_WITH.index:
self.SETUP_WITH(oparg, next_instr)
- elif opcode == self.opcodedesc.SET_ADD.index:
+ elif opcode == opcodedesc.SET_ADD.index:
self.SET_ADD(oparg, next_instr)
- elif opcode == self.opcodedesc.SLICE_0.index:
+ elif opcode == opcodedesc.SLICE_0.index:
self.SLICE_0(oparg, next_instr)
- elif opcode == self.opcodedesc.SLICE_1.index:
+ elif opcode == opcodedesc.SLICE_1.index:
self.SLICE_1(oparg, next_instr)
- elif opcode == self.opcodedesc.SLICE_2.index:
+ elif opcode == opcodedesc.SLICE_2.index:
self.SLICE_2(oparg, next_instr)
- elif opcode == self.opcodedesc.SLICE_3.index:
+ elif opcode == opcodedesc.SLICE_3.index:
self.SLICE_3(oparg, next_instr)
- elif opcode == self.opcodedesc.STOP_CODE.index:
+ elif opcode == opcodedesc.STOP_CODE.index:
self.STOP_CODE(oparg, next_instr)
- elif opcode == self.opcodedesc.STORE_ATTR.index:
+ elif opcode == opcodedesc.STORE_ATTR.index:
self.STORE_ATTR(oparg, next_instr)
- elif opcode == self.opcodedesc.STORE_DEREF.index:
+ elif opcode == opcodedesc.STORE_DEREF.index:
self.STORE_DEREF(oparg, next_instr)
- elif opcode == self.opcodedesc.STORE_FAST.index:
+ elif opcode == opcodedesc.STORE_FAST.index:
self.STORE_FAST(oparg, next_instr)
- elif opcode == self.opcodedesc.STORE_GLOBAL.index:
+ elif opcode == opcodedesc.STORE_GLOBAL.index:
self.STORE_GLOBAL(oparg, next_instr)
- elif opcode == self.opcodedesc.STORE_MAP.index:
+ elif opcode == opcodedesc.STORE_MAP.index:
self.STORE_MAP(oparg, next_instr)
- elif opcode == self.opcodedesc.STORE_NAME.index:
+ elif opcode == opcodedesc.STORE_NAME.index:
self.STORE_NAME(oparg, next_instr)
- elif opcode == self.opcodedesc.STORE_SLICE_0.index:
+ elif opcode == opcodedesc.STORE_SLICE_0.index:
self.STORE_SLICE_0(oparg, next_instr)
- elif opcode == self.opcodedesc.STORE_SLICE_1.index:
+ elif opcode == opcodedesc.STORE_SLICE_1.index:
self.STORE_SLICE_1(oparg, next_instr)
- elif opcode == self.opcodedesc.STORE_SLICE_2.index:
+ elif opcode == opcodedesc.STORE_SLICE_2.index:
self.STORE_SLICE_2(oparg, next_instr)
- elif opcode == self.opcodedesc.STORE_SLICE_3.index:
+ elif opcode == opcodedesc.STORE_SLICE_3.index:
self.STORE_SLICE_3(oparg, next_instr)
- elif opcode == self.opcodedesc.STORE_SUBSCR.index:
+ elif opcode == opcodedesc.STORE_SUBSCR.index:
self.STORE_SUBSCR(oparg, next_instr)
- elif opcode == self.opcodedesc.UNARY_CONVERT.index:
+ elif opcode == opcodedesc.UNARY_CONVERT.index:
self.UNARY_CONVERT(oparg, next_instr)
- elif opcode == self.opcodedesc.UNARY_INVERT.index:
+ elif opcode == opcodedesc.UNARY_INVERT.index:
self.UNARY_INVERT(oparg, next_instr)
- elif opcode == self.opcodedesc.UNARY_NEGATIVE.index:
+ elif opcode == opcodedesc.UNARY_NEGATIVE.index:
self.UNARY_NEGATIVE(oparg, next_instr)
- elif opcode == self.opcodedesc.UNARY_NOT.index:
+ elif opcode == opcodedesc.UNARY_NOT.index:
self.UNARY_NOT(oparg, next_instr)
- elif opcode == self.opcodedesc.UNARY_POSITIVE.index:
+ elif opcode == opcodedesc.UNARY_POSITIVE.index:
self.UNARY_POSITIVE(oparg, next_instr)
- elif opcode == self.opcodedesc.UNPACK_SEQUENCE.index:
+ elif opcode == opcodedesc.UNPACK_SEQUENCE.index:
self.UNPACK_SEQUENCE(oparg, next_instr)
- elif opcode == self.opcodedesc.WITH_CLEANUP.index:
+ elif opcode == opcodedesc.WITH_CLEANUP.index:
self.WITH_CLEANUP(oparg, next_instr)
- elif opcode == self.opcodedesc.YIELD_VALUE.index:
+ elif opcode == opcodedesc.YIELD_VALUE.index:
self.YIELD_VALUE(oparg, next_instr)
else:
self.MISSING_OPCODE(oparg, next_instr)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit