mirror of
https://github.com/python/cpython.git
synced 2025-09-03 15:31:08 +00:00
bpo-47009: Let PRECALL_NO_KW_LIST_APPEND do its own POP_TOP (GH-32239)
This commit is contained in:
parent
96e09837fb
commit
6c6e0408a6
2 changed files with 8 additions and 5 deletions
|
@ -5040,15 +5040,15 @@ handle_eval_breaker:
|
|||
PyObject *list = SECOND();
|
||||
DEOPT_IF(!PyList_Check(list), PRECALL);
|
||||
STAT_INC(PRECALL, hit);
|
||||
SKIP_CALL();
|
||||
// PRECALL + CALL + POP_TOP
|
||||
JUMPBY(INLINE_CACHE_ENTRIES_PRECALL + 1 + INLINE_CACHE_ENTRIES_CALL + 1);
|
||||
assert(next_instr[-1] == POP_TOP);
|
||||
PyObject *arg = POP();
|
||||
if (_PyList_AppendTakeRef((PyListObject *)list, arg) < 0) {
|
||||
goto error;
|
||||
}
|
||||
STACK_SHRINK(2);
|
||||
Py_DECREF(list);
|
||||
STACK_SHRINK(1);
|
||||
Py_INCREF(Py_None);
|
||||
SET_TOP(Py_None);
|
||||
Py_DECREF(callable);
|
||||
NOTRACE_DISPATCH();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue