mirror of
https://github.com/python/cpython.git
synced 2024-12-18 14:24:33 +08:00
8a4cd700a7
* Add DICT_UPDATE and DICT_MERGE bytecodes. Use them for ** unpacking. * Remove BUILD_MAP_UNPACK and BUILD_MAP_UNPACK_WITH_CALL, as they are now unused. * Update magic number for ** unpacking opcodes. * Update dis.rst to incorporate new bytecodes. * Add blurb entry.
259 lines
6.3 KiB
C
Generated
259 lines
6.3 KiB
C
Generated
static void *opcode_targets[256] = {
|
|
&&_unknown_opcode,
|
|
&&TARGET_POP_TOP,
|
|
&&TARGET_ROT_TWO,
|
|
&&TARGET_ROT_THREE,
|
|
&&TARGET_DUP_TOP,
|
|
&&TARGET_DUP_TOP_TWO,
|
|
&&TARGET_ROT_FOUR,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&TARGET_NOP,
|
|
&&TARGET_UNARY_POSITIVE,
|
|
&&TARGET_UNARY_NEGATIVE,
|
|
&&TARGET_UNARY_NOT,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&TARGET_UNARY_INVERT,
|
|
&&TARGET_BINARY_MATRIX_MULTIPLY,
|
|
&&TARGET_INPLACE_MATRIX_MULTIPLY,
|
|
&&_unknown_opcode,
|
|
&&TARGET_BINARY_POWER,
|
|
&&TARGET_BINARY_MULTIPLY,
|
|
&&_unknown_opcode,
|
|
&&TARGET_BINARY_MODULO,
|
|
&&TARGET_BINARY_ADD,
|
|
&&TARGET_BINARY_SUBTRACT,
|
|
&&TARGET_BINARY_SUBSCR,
|
|
&&TARGET_BINARY_FLOOR_DIVIDE,
|
|
&&TARGET_BINARY_TRUE_DIVIDE,
|
|
&&TARGET_INPLACE_FLOOR_DIVIDE,
|
|
&&TARGET_INPLACE_TRUE_DIVIDE,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&TARGET_RERAISE,
|
|
&&TARGET_WITH_EXCEPT_START,
|
|
&&TARGET_GET_AITER,
|
|
&&TARGET_GET_ANEXT,
|
|
&&TARGET_BEFORE_ASYNC_WITH,
|
|
&&_unknown_opcode,
|
|
&&TARGET_END_ASYNC_FOR,
|
|
&&TARGET_INPLACE_ADD,
|
|
&&TARGET_INPLACE_SUBTRACT,
|
|
&&TARGET_INPLACE_MULTIPLY,
|
|
&&_unknown_opcode,
|
|
&&TARGET_INPLACE_MODULO,
|
|
&&TARGET_STORE_SUBSCR,
|
|
&&TARGET_DELETE_SUBSCR,
|
|
&&TARGET_BINARY_LSHIFT,
|
|
&&TARGET_BINARY_RSHIFT,
|
|
&&TARGET_BINARY_AND,
|
|
&&TARGET_BINARY_XOR,
|
|
&&TARGET_BINARY_OR,
|
|
&&TARGET_INPLACE_POWER,
|
|
&&TARGET_GET_ITER,
|
|
&&TARGET_GET_YIELD_FROM_ITER,
|
|
&&TARGET_PRINT_EXPR,
|
|
&&TARGET_LOAD_BUILD_CLASS,
|
|
&&TARGET_YIELD_FROM,
|
|
&&TARGET_GET_AWAITABLE,
|
|
&&TARGET_LOAD_ASSERTION_ERROR,
|
|
&&TARGET_INPLACE_LSHIFT,
|
|
&&TARGET_INPLACE_RSHIFT,
|
|
&&TARGET_INPLACE_AND,
|
|
&&TARGET_INPLACE_XOR,
|
|
&&TARGET_INPLACE_OR,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&TARGET_LIST_TO_TUPLE,
|
|
&&TARGET_RETURN_VALUE,
|
|
&&TARGET_IMPORT_STAR,
|
|
&&TARGET_SETUP_ANNOTATIONS,
|
|
&&TARGET_YIELD_VALUE,
|
|
&&TARGET_POP_BLOCK,
|
|
&&_unknown_opcode,
|
|
&&TARGET_POP_EXCEPT,
|
|
&&TARGET_STORE_NAME,
|
|
&&TARGET_DELETE_NAME,
|
|
&&TARGET_UNPACK_SEQUENCE,
|
|
&&TARGET_FOR_ITER,
|
|
&&TARGET_UNPACK_EX,
|
|
&&TARGET_STORE_ATTR,
|
|
&&TARGET_DELETE_ATTR,
|
|
&&TARGET_STORE_GLOBAL,
|
|
&&TARGET_DELETE_GLOBAL,
|
|
&&_unknown_opcode,
|
|
&&TARGET_LOAD_CONST,
|
|
&&TARGET_LOAD_NAME,
|
|
&&TARGET_BUILD_TUPLE,
|
|
&&TARGET_BUILD_LIST,
|
|
&&TARGET_BUILD_SET,
|
|
&&TARGET_BUILD_MAP,
|
|
&&TARGET_LOAD_ATTR,
|
|
&&TARGET_COMPARE_OP,
|
|
&&TARGET_IMPORT_NAME,
|
|
&&TARGET_IMPORT_FROM,
|
|
&&TARGET_JUMP_FORWARD,
|
|
&&TARGET_JUMP_IF_FALSE_OR_POP,
|
|
&&TARGET_JUMP_IF_TRUE_OR_POP,
|
|
&&TARGET_JUMP_ABSOLUTE,
|
|
&&TARGET_POP_JUMP_IF_FALSE,
|
|
&&TARGET_POP_JUMP_IF_TRUE,
|
|
&&TARGET_LOAD_GLOBAL,
|
|
&&TARGET_IS_OP,
|
|
&&TARGET_CONTAINS_OP,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&TARGET_JUMP_IF_NOT_EXC_MATCH,
|
|
&&TARGET_SETUP_FINALLY,
|
|
&&_unknown_opcode,
|
|
&&TARGET_LOAD_FAST,
|
|
&&TARGET_STORE_FAST,
|
|
&&TARGET_DELETE_FAST,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&TARGET_RAISE_VARARGS,
|
|
&&TARGET_CALL_FUNCTION,
|
|
&&TARGET_MAKE_FUNCTION,
|
|
&&TARGET_BUILD_SLICE,
|
|
&&_unknown_opcode,
|
|
&&TARGET_LOAD_CLOSURE,
|
|
&&TARGET_LOAD_DEREF,
|
|
&&TARGET_STORE_DEREF,
|
|
&&TARGET_DELETE_DEREF,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&TARGET_CALL_FUNCTION_KW,
|
|
&&TARGET_CALL_FUNCTION_EX,
|
|
&&TARGET_SETUP_WITH,
|
|
&&TARGET_EXTENDED_ARG,
|
|
&&TARGET_LIST_APPEND,
|
|
&&TARGET_SET_ADD,
|
|
&&TARGET_MAP_ADD,
|
|
&&TARGET_LOAD_CLASSDEREF,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&TARGET_SETUP_ASYNC_WITH,
|
|
&&TARGET_FORMAT_VALUE,
|
|
&&TARGET_BUILD_CONST_KEY_MAP,
|
|
&&TARGET_BUILD_STRING,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&TARGET_LOAD_METHOD,
|
|
&&TARGET_CALL_METHOD,
|
|
&&TARGET_LIST_EXTEND,
|
|
&&TARGET_SET_UPDATE,
|
|
&&TARGET_DICT_MERGE,
|
|
&&TARGET_DICT_UPDATE,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode,
|
|
&&_unknown_opcode
|
|
};
|