GH-109214: Convert _SAVE_CURRENT_IP to _SET_IP in tier 2 trace creation. (GH-110755)
This commit is contained in:
@@ -803,7 +803,6 @@ dummy_func(
|
||||
}
|
||||
|
||||
macro(RETURN_VALUE) =
|
||||
_SET_IP + // Tier 2 only; special-cased oparg
|
||||
_SAVE_CURRENT_IP + // Sets frame->prev_instr
|
||||
_POP_FRAME;
|
||||
|
||||
@@ -828,7 +827,6 @@ dummy_func(
|
||||
|
||||
macro(RETURN_CONST) =
|
||||
LOAD_CONST +
|
||||
_SET_IP + // Tier 2 only; special-cased oparg
|
||||
_SAVE_CURRENT_IP + // Sets frame->prev_instr
|
||||
_POP_FRAME;
|
||||
|
||||
@@ -3099,7 +3097,6 @@ dummy_func(
|
||||
_CHECK_FUNCTION_EXACT_ARGS +
|
||||
_CHECK_STACK_SPACE +
|
||||
_INIT_CALL_PY_EXACT_ARGS +
|
||||
_SET_IP + // Tier 2 only; special-cased oparg
|
||||
_SAVE_CURRENT_IP + // Sets frame->prev_instr
|
||||
_PUSH_FRAME;
|
||||
|
||||
@@ -3109,7 +3106,6 @@ dummy_func(
|
||||
_CHECK_FUNCTION_EXACT_ARGS +
|
||||
_CHECK_STACK_SPACE +
|
||||
_INIT_CALL_PY_EXACT_ARGS +
|
||||
_SET_IP + // Tier 2 only; special-cased oparg
|
||||
_SAVE_CURRENT_IP + // Sets frame->prev_instr
|
||||
_PUSH_FRAME;
|
||||
|
||||
@@ -3948,17 +3944,13 @@ dummy_func(
|
||||
}
|
||||
|
||||
op(_SET_IP, (--)) {
|
||||
TIER_TWO_ONLY
|
||||
frame->prev_instr = ip_offset + oparg;
|
||||
}
|
||||
|
||||
op(_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
|
||||
}
|
||||
|
||||
op(_EXIT_TRACE, (--)) {
|
||||
|
||||
Reference in New Issue
Block a user