Skip to content

Commit e3890f9

Browse files
authored
Bytecode pseudo opcodes (#6715)
1 parent 13a875f commit e3890f9

File tree

11 files changed

+652
-416
lines changed

11 files changed

+652
-416
lines changed

Lib/_opcode_metadata.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,20 @@
138138
'JUMP_IF_NOT_EXC_MATCH': 131,
139139
'SET_EXC_INFO': 134,
140140
'SUBSCRIPT': 135,
141-
'LOAD_SUPER_METHOD': 136,
142-
'LOAD_ZERO_SUPER_ATTR': 137,
143-
'LOAD_ZERO_SUPER_METHOD': 138,
144141
'RESUME': 149,
145-
'JUMP': 252,
146142
'LOAD_CLOSURE': 253,
147-
'LOAD_ATTR_METHOD': 254,
148-
'POP_BLOCK': 255,
143+
'JUMP': 256,
144+
'JUMP_NO_INTERRUPT': 257,
145+
'RESERVED_258': 258,
146+
'LOAD_ATTR_METHOD': 259,
147+
'LOAD_SUPER_METHOD': 260,
148+
'LOAD_ZERO_SUPER_ATTR': 261,
149+
'LOAD_ZERO_SUPER_METHOD': 262,
150+
'POP_BLOCK': 263,
151+
'SETUP_CLEANUP': 264,
152+
'SETUP_FINALLY': 265,
153+
'SETUP_WITH': 266,
154+
'STORE_FAST_MAYBE_NULL': 267,
149155
}
150156

151157
# CPython 3.13 compatible: opcodes < 44 have no argument

Lib/test/test__opcode.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ def check_bool_function_result(self, func, ops, expected):
1616
self.assertIsInstance(func(op), bool)
1717
self.assertEqual(func(op), expected)
1818

19-
@unittest.expectedFailure # TODO: RUSTPYTHON; Only supporting u8 ATM
2019
def test_invalid_opcodes(self):
2120
invalid = [-100, -1, 255, 512, 513, 1000]
2221
self.check_bool_function_result(_opcode.is_valid, invalid, False)

0 commit comments

Comments
 (0)