mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
GH-118095: Unify the behavior of tier 2 FOR_ITER branch micro-ops (GH-118420)
* Target _FOR_ITER_TIER_TWO at POP_TOP following the matching END_FOR * Modify _GUARD_NOT_EXHAUSTED_RANGE, _GUARD_NOT_EXHAUSTED_LIST and _GUARD_NOT_EXHAUSTED_TUPLE so that they also target the POP_TOP following the matching END_FOR
This commit is contained in:
parent
9789440de3
commit
72867c962c
5 changed files with 56 additions and 21 deletions
|
@ -2610,9 +2610,7 @@ dummy_func(
|
|||
_PyErr_Clear(tstate);
|
||||
}
|
||||
/* iterator ended normally */
|
||||
Py_DECREF(iter);
|
||||
STACK_SHRINK(1);
|
||||
/* The translator sets the deopt target just past END_FOR */
|
||||
/* The translator sets the deopt target just past the matching END_FOR */
|
||||
DEOPT_IF(true);
|
||||
}
|
||||
// Common case: no jump, leave it to the code generator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue