mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
GH-109214: Convert _SAVE_CURRENT_IP to _SET_IP in tier 2 trace creation. (GH-110755)
This commit is contained in:
parent
fb7843ee89
commit
19b7ead5eb
8 changed files with 22 additions and 59 deletions
12
Python/executor_cases.c.h
generated
12
Python/executor_cases.c.h
generated
|
@ -3270,21 +3270,11 @@
|
|||
}
|
||||
|
||||
case _SET_IP: {
|
||||
TIER_TWO_ONLY
|
||||
frame->prev_instr = ip_offset + oparg;
|
||||
break;
|
||||
}
|
||||
|
||||
case _SAVE_CURRENT_IP: {
|
||||
#if TIER_ONE
|
||||
frame->prev_instr = next_instr - 1;
|
||||
#endif
|
||||
#if TIER_TWO
|
||||
// Relies on a preceding _SET_IP
|
||||
frame->prev_instr--;
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
|
||||
case _EXIT_TRACE: {
|
||||
frame->prev_instr--; // Back up to just before destination
|
||||
_PyFrame_SetStackPointer(frame, stack_pointer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue