Skip to content

Commit

Permalink
make requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
GawdOfROFL committed Oct 10, 2021
1 parent 728309e commit 43667f0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion PythonBytecode.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions bytecode_ops.inl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
10 changes: 8 additions & 2 deletions bytes/python_310.map
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyc_module.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 43667f0

Please sign in to comment.