diff options
author | Brandt Bucher <brandtbucher@microsoft.com> | 2022-09-09 21:43:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-09 21:43:10 (GMT) |
commit | 72b29b2611eb7d161958c92993c5050a037d06e4 (patch) | |
tree | 8053a33d165714f5f910fe0eabebe5fcefec15cb /Python | |
parent | b4954b1a9ecdac5714b899652eeb277c32f65bf4 (diff) | |
download | cpython-72b29b2611eb7d161958c92993c5050a037d06e4.zip cpython-72b29b2611eb7d161958c92993c5050a037d06e4.tar.gz cpython-72b29b2611eb7d161958c92993c5050a037d06e4.tar.bz2 |
Replace ad-hoc labels with JUMP_TO_INSTRUCTION (GH-96634)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 8fca585..7d4543e 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -4107,7 +4107,7 @@ handle_eval_breaker: PEEK(oparg + 1) = self; PEEK(oparg + 2) = meth; Py_DECREF(function); - goto call_exact_args; + JUMP_TO_INSTRUCTION(CALL_PY_EXACT_ARGS); } TARGET(KW_NAMES) { @@ -4118,8 +4118,8 @@ handle_eval_breaker: } TARGET(CALL) { + PREDICTED(CALL); int total_args, is_meth; - call_function: is_meth = is_method(stack_pointer, oparg); PyObject *function = PEEK(oparg + 1); if (!is_meth && Py_TYPE(function) == &PyMethod_Type) { @@ -4207,12 +4207,12 @@ handle_eval_breaker: else { STAT_INC(CALL, deferred); DECREMENT_ADAPTIVE_COUNTER(cache); - goto call_function; + JUMP_TO_INSTRUCTION(CALL); } } TARGET(CALL_PY_EXACT_ARGS) { - call_exact_args: + PREDICTED(CALL_PY_EXACT_ARGS); assert(call_shape.kwnames == NULL); DEOPT_IF(tstate->interp->eval_frame, CALL); _PyCallCache *cache = (_PyCallCache *)next_instr; |