mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +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
|
|
@ -146,6 +146,10 @@ dump_item(_PyStackRef item)
|
|||
printf("<NULL>");
|
||||
return;
|
||||
}
|
||||
if (PyStackRef_IsTaggedInt(item)) {
|
||||
printf("%" PRId64, (int64_t)PyStackRef_UntagInt(item));
|
||||
return;
|
||||
}
|
||||
PyObject *obj = PyStackRef_AsPyObjectBorrow(item);
|
||||
if (obj == NULL) {
|
||||
printf("<nil>");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue