mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
GH-132508: Use tagged integers on the evaluation stack for the last instruction offset (GH-132545)
This commit is contained in:
parent
caee16f052
commit
ccf1b0b1c1
14 changed files with 129 additions and 60 deletions
|
@ -18,6 +18,7 @@ extern "C" {
|
|||
((int)((IF)->instr_ptr - _PyFrame_GetBytecode((IF))))
|
||||
|
||||
static inline PyCodeObject *_PyFrame_GetCode(_PyInterpreterFrame *f) {
|
||||
assert(!PyStackRef_IsNull(f->f_executable));
|
||||
PyObject *executable = PyStackRef_AsPyObjectBorrow(f->f_executable);
|
||||
assert(PyCode_Check(executable));
|
||||
return (PyCodeObject *)executable;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue