diff options
author | Mark Shannon <mark@hotpy.org> | 2024-04-26 17:08:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-26 17:08:50 (GMT) |
commit | 3e06c7f719b99cc7f5e8889319cff4980e41d3e8 (patch) | |
tree | 042c06326ca8b8866405375d8cf6b1f587cfa28d /Python/ceval.c | |
parent | 63add11704078390909a485b57a7de6a0358fc2b (diff) | |
download | cpython-3e06c7f719b99cc7f5e8889319cff4980e41d3e8.zip cpython-3e06c7f719b99cc7f5e8889319cff4980e41d3e8.tar.gz cpython-3e06c7f719b99cc7f5e8889319cff4980e41d3e8.tar.bz2 |
GH-118095: Add dynamic exit support and FOR_ITER_GEN support to tier 2 (GH-118279)
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 2f217c5..d130c73 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -1072,9 +1072,13 @@ jump_to_jump_target: next_uop = current_executor->trace + target; goto tier2_dispatch; +exit_to_tier1_dynamic: + next_instr = frame->instr_ptr; + goto goto_to_tier1; exit_to_tier1: assert(next_uop[-1].format == UOP_FORMAT_TARGET); next_instr = next_uop[-1].target + _PyCode_CODE(_PyFrame_GetCode(frame)); +goto_to_tier1: #ifdef Py_DEBUG if (lltrace >= 2) { printf("DEOPT: [UOp "); |