mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
GH-125837: Split LOAD_CONST
into three. (GH-125972)
* Add LOAD_CONST_IMMORTAL opcode * Add LOAD_SMALL_INT opcode * Remove RETURN_CONST opcode
This commit is contained in:
parent
67f5c5bd6f
commit
faa3272fb8
33 changed files with 706 additions and 538 deletions
|
@ -125,13 +125,15 @@ class IsolatedAssembleTests(AssemblerTestCase):
|
|||
# code for "try: pass\n except: pass"
|
||||
insts = [
|
||||
('RESUME', 0),
|
||||
('SETUP_FINALLY', 3),
|
||||
('RETURN_CONST', 0),
|
||||
('SETUP_CLEANUP', 8),
|
||||
('SETUP_FINALLY', 4),
|
||||
('LOAD_CONST', 0),
|
||||
('RETURN_VALUE', None),
|
||||
('SETUP_CLEANUP', 10),
|
||||
('PUSH_EXC_INFO', None),
|
||||
('POP_TOP', None),
|
||||
('POP_EXCEPT', None),
|
||||
('RETURN_CONST', 0),
|
||||
('LOAD_CONST', 0),
|
||||
('RETURN_VALUE', None),
|
||||
('COPY', 3),
|
||||
('POP_EXCEPT', None),
|
||||
('RERAISE', 1),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue