Skip to content

Commit 72b29b2

Browse files
authored
Replace ad-hoc labels with JUMP_TO_INSTRUCTION (GH-96634)
1 parent b4954b1 commit 72b29b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Python/ceval.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4107,7 +4107,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
41074107
PEEK(oparg + 1) = self;
41084108
PEEK(oparg + 2) = meth;
41094109
Py_DECREF(function);
4110-
goto call_exact_args;
4110+
JUMP_TO_INSTRUCTION(CALL_PY_EXACT_ARGS);
41114111
}
41124112

41134113
TARGET(KW_NAMES) {
@@ -4118,8 +4118,8 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
41184118
}
41194119

41204120
TARGET(CALL) {
4121+
PREDICTED(CALL);
41214122
int total_args, is_meth;
4122-
call_function:
41234123
is_meth = is_method(stack_pointer, oparg);
41244124
PyObject *function = PEEK(oparg + 1);
41254125
if (!is_meth && Py_TYPE(function) == &PyMethod_Type) {
@@ -4207,12 +4207,12 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
42074207
else {
42084208
STAT_INC(CALL, deferred);
42094209
DECREMENT_ADAPTIVE_COUNTER(cache);
4210-
goto call_function;
4210+
JUMP_TO_INSTRUCTION(CALL);
42114211
}
42124212
}
42134213

42144214
TARGET(CALL_PY_EXACT_ARGS) {
4215-
call_exact_args:
4215+
PREDICTED(CALL_PY_EXACT_ARGS);
42164216
assert(call_shape.kwnames == NULL);
42174217
DEOPT_IF(tstate->interp->eval_frame, CALL);
42184218
_PyCallCache *cache = (_PyCallCache *)next_instr;

0 commit comments

Comments
 (0)