diff options
author | Brandt Bucher <brandtbucher@microsoft.com> | 2024-05-28 19:45:11 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-28 19:45:11 (GMT) |
commit | cfcc054dee87a5a3f18c99d83a2957bf3487de1d (patch) | |
tree | da9460af9efade22f122b64a20233392302c1b4a /Python/executor_cases.c.h | |
parent | d87b0151062e36e67f9e42e1595fba5bf23a485c (diff) | |
download | cpython-cfcc054dee87a5a3f18c99d83a2957bf3487de1d.zip cpython-cfcc054dee87a5a3f18c99d83a2957bf3487de1d.tar.gz cpython-cfcc054dee87a5a3f18c99d83a2957bf3487de1d.tar.bz2 |
GH-119476: Split _CHECK_FUNCTION_VERSION out of _CHECK_FUNCTION_EXACT_ARGS (GH-119510)
Diffstat (limited to 'Python/executor_cases.c.h')
-rw-r--r-- | Python/executor_cases.c.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h index a3d7af2..a00b382 100644 --- a/Python/executor_cases.c.h +++ b/Python/executor_cases.c.h @@ -3240,16 +3240,8 @@ oparg = CURRENT_OPARG(); self_or_null = stack_pointer[-1 - oparg]; callable = stack_pointer[-2 - oparg]; - uint32_t func_version = (uint32_t)CURRENT_OPERAND(); - if (!PyFunction_Check(callable)) { - UOP_STAT_INC(uopcode, miss); - JUMP_TO_JUMP_TARGET(); - } + assert(PyFunction_Check(callable)); PyFunctionObject *func = (PyFunctionObject *)callable; - if (func->func_version != func_version) { - UOP_STAT_INC(uopcode, miss); - JUMP_TO_JUMP_TARGET(); - } PyCodeObject *code = (PyCodeObject *)func->func_code; if (code->co_argcount != oparg + (self_or_null != NULL)) { UOP_STAT_INC(uopcode, miss); |