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
28
Python/generated_cases.c.h
generated
28
Python/generated_cases.c.h
generated
|
@ -989,13 +989,8 @@
|
|||
PyObject *retval;
|
||||
// _SAVE_CURRENT_IP
|
||||
{
|
||||
#if TIER_ONE
|
||||
TIER_ONE_ONLY
|
||||
frame->prev_instr = next_instr - 1;
|
||||
#endif
|
||||
#if TIER_TWO
|
||||
// Relies on a preceding _SET_IP
|
||||
frame->prev_instr--;
|
||||
#endif
|
||||
}
|
||||
// _POP_FRAME
|
||||
retval = stack_pointer[-1];
|
||||
|
@ -1056,13 +1051,8 @@
|
|||
}
|
||||
// _SAVE_CURRENT_IP
|
||||
{
|
||||
#if TIER_ONE
|
||||
TIER_ONE_ONLY
|
||||
frame->prev_instr = next_instr - 1;
|
||||
#endif
|
||||
#if TIER_TWO
|
||||
// Relies on a preceding _SET_IP
|
||||
frame->prev_instr--;
|
||||
#endif
|
||||
}
|
||||
// _POP_FRAME
|
||||
retval = value;
|
||||
|
@ -3941,13 +3931,8 @@
|
|||
// _SAVE_CURRENT_IP
|
||||
next_instr += 3;
|
||||
{
|
||||
#if TIER_ONE
|
||||
TIER_ONE_ONLY
|
||||
frame->prev_instr = next_instr - 1;
|
||||
#endif
|
||||
#if TIER_TWO
|
||||
// Relies on a preceding _SET_IP
|
||||
frame->prev_instr--;
|
||||
#endif
|
||||
}
|
||||
// _PUSH_FRAME
|
||||
STACK_SHRINK(oparg);
|
||||
|
@ -4019,13 +4004,8 @@
|
|||
// _SAVE_CURRENT_IP
|
||||
next_instr += 3;
|
||||
{
|
||||
#if TIER_ONE
|
||||
TIER_ONE_ONLY
|
||||
frame->prev_instr = next_instr - 1;
|
||||
#endif
|
||||
#if TIER_TWO
|
||||
// Relies on a preceding _SET_IP
|
||||
frame->prev_instr--;
|
||||
#endif
|
||||
}
|
||||
// _PUSH_FRAME
|
||||
STACK_SHRINK(oparg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue