mirror of
https://github.com/python/cpython.git
synced 2025-08-25 11:15:02 +00:00
gh-87092: Make jump target label equal to the offset of the target in the instructions sequence (#102093)
This commit is contained in:
parent
6b2d7c0ddb
commit
9f799ab020
4 changed files with 116 additions and 113 deletions
|
@ -37,11 +37,11 @@ class IsolatedCodeGenTests(CodegenTestCase):
|
|||
('GET_ITER', None, 1),
|
||||
loop_lbl := self.Label(),
|
||||
('FOR_ITER', exit_lbl := self.Label(), 1),
|
||||
('STORE_NAME', None, 1),
|
||||
('STORE_NAME', 1, 1),
|
||||
('PUSH_NULL', None, 2),
|
||||
('LOAD_NAME', None, 2),
|
||||
('LOAD_NAME', None, 2),
|
||||
('CALL', None, 2),
|
||||
('LOAD_NAME', 2, 2),
|
||||
('LOAD_NAME', 1, 2),
|
||||
('CALL', 1, 2),
|
||||
('POP_TOP', None),
|
||||
('JUMP', loop_lbl),
|
||||
exit_lbl,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue