diff --git a/PythonBytecode.txt b/PythonBytecode.txt index d703c31f..7b48bdaf 100644 --- a/PythonBytecode.txt +++ b/PythonBytecode.txt @@ -10,7 +10,7 @@ Python MAGIC Python MAGIC Python MAGIC 3.7 0x0A0D0D42 3.8 0x0A0D0D55 3.9 0x0A0D0D61 - 3.10 0x0A0D0DF6 + 3.10 0x0A0D0D6F 1.0 1.1 1.2 1.3 1.4 1.5 1.6 diff --git a/bytecode_ops.inl b/bytecode_ops.inl index 2babb74f..270e5575 100644 --- a/bytecode_ops.inl +++ b/bytecode_ops.inl @@ -58,6 +58,11 @@ OPCODE(BINARY_FLOOR_DIVIDE) OPCODE(BINARY_TRUE_DIVIDE) OPCODE(INPLACE_FLOOR_DIVIDE) OPCODE(INPLACE_TRUE_DIVIDE) +OPCODE(GET_LEN) +OPCODE(MATCH_MAPPING) +OPCODE(MATCH_SEQUENCE) +OPCODE(MATCH_KEYS) +OPCODE(COPY_DICT_WITHOUT_KEYS) OPCODE(STORE_MAP) OPCODE(INPLACE_ADD) OPCODE(INPLACE_SUBTRACT) @@ -108,6 +113,7 @@ OPCODE_A(STORE_ATTR) OPCODE_A(DELETE_ATTR) OPCODE_A(STORE_GLOBAL) OPCODE_A(DELETE_GLOBAL) +OPCODE_A(ROT_N) OPCODE_A(UNPACK_VARARG) OPCODE_A(LOAD_CONST) OPCODE_A(LOAD_NAME) @@ -133,6 +139,7 @@ OPCODE_A(RESERVE_FAST) OPCODE_A(LOAD_FAST) OPCODE_A(STORE_FAST) OPCODE_A(DELETE_FAST) +OPCODE_A(GEN_START) OPCODE_A(SET_LINENO) OPCODE_A(STORE_ANNOTATION) OPCODE_A(RAISE_VARARGS) @@ -164,6 +171,7 @@ OPCODE_A(MAP_ADD) OPCODE_A(UNPACK_EX) OPCODE_A(LIST_APPEND) OPCODE_A(LOAD_CLASSDEREF) +OPCODE_A(MATCH_CLASS) OPCODE_A(BUILD_LIST_UNPACK) OPCODE_A(BUILD_MAP_UNPACK) OPCODE_A(BUILD_MAP_UNPACK_WITH_CALL) diff --git a/bytes/python_310.map b/bytes/python_310.map index 92a7eb3c..aedd2793 100644 --- a/bytes/python_310.map +++ b/bytes/python_310.map @@ -21,6 +21,11 @@ 27 BINARY_TRUE_DIVIDE 28 INPLACE_FLOOR_DIVIDE 29 INPLACE_TRUE_DIVIDE +30 GET_LEN +31 MATCH_MAPPING +32 MATCH_SEQUENCE +33 MATCH_KEYS +34 COPY_DICT_WITHOUT_KEYS 49 WITH_EXCEPT_START 50 GET_AITER 51 GET_ANEXT @@ -66,7 +71,7 @@ 96 DELETE_ATTR_A 97 STORE_GLOBAL_A 98 DELETE_GLOBAL_A -99 ROT_TWO +99 ROT_N_A 100 LOAD_CONST_A 101 LOAD_NAME_A 102 BUILD_TUPLE_A @@ -86,12 +91,12 @@ 116 LOAD_GLOBAL_A 117 IS_OP_A 118 CONTAINS_OP_A -119 RERAISE 121 JUMP_IF_NOT_EXC_MATCH_A 122 SETUP_FINALLY_A 124 LOAD_FAST_A 125 STORE_FAST_A 126 DELETE_FAST_A +129 GEN_START_A 130 RAISE_VARARGS_A 131 CALL_FUNCTION_A 132 MAKE_FUNCTION_A @@ -108,6 +113,7 @@ 146 SET_ADD_A 147 MAP_ADD_A 148 LOAD_CLASSDEREF_A +152 MATCH_CLASS_A 154 SETUP_ASYNC_WITH_A 155 FORMAT_VALUE_A 156 BUILD_CONST_KEY_MAP_A diff --git a/pyc_module.h b/pyc_module.h index d2a0dc34..05046e75 100644 --- a/pyc_module.h +++ b/pyc_module.h @@ -32,7 +32,7 @@ enum PycMagic { MAGIC_3_7 = 0x0A0D0D42, MAGIC_3_8 = 0x0A0D0D55, MAGIC_3_9 = 0x0A0D0D61, - MAGIC_3_10 = 0x0A0D0D6F + MAGIC_3_10 = 0x0A0D0D6F, }; class PycModule {