summaryrefslogtreecommitdiffstats
path: root/Python/executor_cases.c.h
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2023-10-12 09:34:32 (GMT)
committerGitHub <noreply@github.com>2023-10-12 09:34:32 (GMT)
commit19b7ead5eb2fd1a0d19403e800a6f3adffbaac69 (patch)
tree06d2c2db6d13cab161597286d03225659c3e91f9 /Python/executor_cases.c.h
parentfb7843ee895ac7f6eeb58f356b1a320eea081cfc (diff)
downloadcpython-19b7ead5eb2fd1a0d19403e800a6f3adffbaac69.zip
cpython-19b7ead5eb2fd1a0d19403e800a6f3adffbaac69.tar.gz
cpython-19b7ead5eb2fd1a0d19403e800a6f3adffbaac69.tar.bz2
GH-109214: Convert _SAVE_CURRENT_IP to _SET_IP in tier 2 trace creation. (GH-110755)
Diffstat (limited to 'Python/executor_cases.c.h')
-rw-r--r--Python/executor_cases.c.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h
index e2f4f98..119e77b 100644
--- a/Python/executor_cases.c.h
+++ b/Python/executor_cases.c.h
@@ -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);