mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
GH-112354: END_FOR
instruction to only pop one value. (GH-114247)
* Compiler emits END_FOR; POP_TOP instead of END_FOR. To support tier 2 side exits in loops.
This commit is contained in:
parent
6fadd68da5
commit
981d172f7f
16 changed files with 238 additions and 184 deletions
|
@ -49,6 +49,7 @@ class IsolatedCodeGenTests(CodegenTestCase):
|
|||
('JUMP', loop_lbl),
|
||||
exit_lbl,
|
||||
('END_FOR', None),
|
||||
('POP_TOP', None),
|
||||
('LOAD_CONST', 0),
|
||||
('RETURN_VALUE', None),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue