Skip to content

Commit d145ceb

Browse files
committed
update opcode tables
1 parent f6db78b commit d145ceb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

xdis/opcodes/opcode_311.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,14 @@
163163
rm_op(l, "LOAD_CLOSURE", 135)
164164
def_op(l, "LOAD_CLOSURE", 136, 0, 1)
165165

166+
## Update tables
167+
loc["hasconst"].append(172) # KW_NAMES
168+
loc["hasfree"].extend((135, 136, 137, 138, 139))
169+
loc["hasjabs"] = []
170+
171+
# removed jrel ops 35, 37, 143, 88, 154
172+
loc["hasjrel"] = [93, 110, 111, 112, 114, 115, 123, 128, 129, 134, 140, 173, 174, 175, 176]
173+
166174
# fmt: on
167175
def format_extended_is_op(arg):
168176
return "is" if arg == 0 else "is not"
@@ -172,6 +180,7 @@ def format_extended_contains_op(arg):
172180
return "in" if arg == 0 else "not in"
173181

174182

183+
175184
opcode_arg_fmt = {
176185
"BUILD_MAP_UNPACK_WITH_CALL": format_BUILD_MAP_UNPACK_WITH_CALL,
177186
"CALL_FUNCTION_EX": format_CALL_FUNCTION_EX,

0 commit comments

Comments
 (0)