mirror of
https://github.com/python/cpython.git
synced 2025-12-31 12:33:28 +00:00
gh-134584: Cleanups for GH-135860 (GH-142604)
This commit is contained in:
parent
c98182be8d
commit
e02a35c365
9 changed files with 41 additions and 35 deletions
|
|
@ -4068,15 +4068,17 @@ dummy_func(
|
|||
DEOPT_IF(callable_o != (PyObject *)&PyTuple_Type);
|
||||
}
|
||||
|
||||
op(_CALL_TUPLE_1, (callable, null, arg -- res)) {
|
||||
op(_CALL_TUPLE_1, (callable, null, arg -- res, a)) {
|
||||
PyObject *arg_o = PyStackRef_AsPyObjectBorrow(arg);
|
||||
|
||||
assert(oparg == 1);
|
||||
STAT_INC(CALL, hit);
|
||||
PyObject *res_o = PySequence_Tuple(arg_o);
|
||||
PyStackRef_CLOSE(arg);
|
||||
if (res_o == NULL) {
|
||||
ERROR_NO_POP();
|
||||
}
|
||||
a = arg;
|
||||
INPUTS_DEAD();
|
||||
ERROR_IF(res_o == NULL);
|
||||
res = PyStackRef_FromPyObjectSteal(res_o);
|
||||
}
|
||||
|
||||
|
|
@ -4086,6 +4088,7 @@ dummy_func(
|
|||
_GUARD_NOS_NULL +
|
||||
_GUARD_CALLABLE_TUPLE_1 +
|
||||
_CALL_TUPLE_1 +
|
||||
POP_TOP +
|
||||
_CHECK_PERIODIC_AT_END;
|
||||
|
||||
op(_CHECK_AND_ALLOCATE_OBJECT, (type_version/2, callable, self_or_null, unused[oparg] -- callable, self_or_null, unused[oparg])) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue