diff options
author | Mark Shannon <mark@hotpy.org> | 2024-07-26 11:24:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-26 11:24:12 (GMT) |
commit | afb0aa6ed20bd8e982ecb307f12923cf8dbccd8c (patch) | |
tree | 222f3075796f8167442bcc744c52efe3c7c8eaa5 /Python/ceval_macros.h | |
parent | d9efa45d7457b0dfea467bb1c2d22c69056ffc73 (diff) | |
download | cpython-afb0aa6ed20bd8e982ecb307f12923cf8dbccd8c.zip cpython-afb0aa6ed20bd8e982ecb307f12923cf8dbccd8c.tar.gz cpython-afb0aa6ed20bd8e982ecb307f12923cf8dbccd8c.tar.bz2 |
GH-121131: Clean up and fix some instrumented instructions. (GH-121132)
* Add support for 'prev_instr' to code generator and refactor some INSTRUMENTED instructions
Diffstat (limited to 'Python/ceval_macros.h')
-rw-r--r-- | Python/ceval_macros.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Python/ceval_macros.h b/Python/ceval_macros.h index 595b72b..60efe3d 100644 --- a/Python/ceval_macros.h +++ b/Python/ceval_macros.h @@ -402,7 +402,10 @@ static inline void _Py_LeaveRecursiveCallPy(PyThreadState *tstate) { /* There's no STORE_IP(), it's inlined by the code generator. */ #define LOAD_SP() \ -stack_pointer = _PyFrame_GetStackPointer(frame); +stack_pointer = _PyFrame_GetStackPointer(frame) + +#define SAVE_SP() \ +_PyFrame_SetStackPointer(frame, stack_pointer) /* Tier-switching macros. */ |