mirror of
https://github.com/python/cpython.git
synced 2026-05-09 06:01:08 -04:00
gh-134584: Cleanups for GH-135860 (GH-142604)
This commit is contained in:
+6
-3
@@ -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])) {
|
||||
|
||||
Reference in New Issue
Block a user