mirror of
https://github.com/python/cpython.git
synced 2025-07-10 04:45:36 +00:00
GH-121131: Clean up and fix some instrumented instructions. (GH-121132)
* Add support for 'prev_instr' to code generator and refactor some INSTRUMENTED instructions
This commit is contained in:
parent
d9efa45d74
commit
afb0aa6ed2
15 changed files with 277 additions and 215 deletions
|
@ -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. */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue