summaryrefslogtreecommitdiffstats
path: root/Python/specialize.c
diff options
context:
space:
mode:
authorBrandt Bucher <brandtbucher@microsoft.com>2024-08-22 10:50:55 (GMT)
committerGitHub <noreply@github.com>2024-08-22 10:50:55 (GMT)
commit427b106162c7467de8a84476a053dfba9ef16dfa (patch)
tree3aebf1c6d0b5e7acd0d2efd9de1eaf094b2d7be1 /Python/specialize.c
parent79ddf7571016a04f0e1d5f416ece2d45c4440b1b (diff)
downloadcpython-427b106162c7467de8a84476a053dfba9ef16dfa.zip
cpython-427b106162c7467de8a84476a053dfba9ef16dfa.tar.gz
cpython-427b106162c7467de8a84476a053dfba9ef16dfa.tar.bz2
GH-118093: Specialize calls to non-vectorcall classes as `CALL_NON_PY_GENERAL` (GH-123212)
Specialize classes without vectorcall as CALL_NON_PY_GENERAL
Diffstat (limited to 'Python/specialize.c')
-rw-r--r--Python/specialize.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/Python/specialize.c b/Python/specialize.c
index db794be..26965fe 100644
--- a/Python/specialize.c
+++ b/Python/specialize.c
@@ -562,8 +562,6 @@ _PyCode_Quicken(PyCodeObject *code)
#define SPEC_FAIL_CALL_INIT_NOT_PYTHON 21
#define SPEC_FAIL_CALL_PEP_523 22
#define SPEC_FAIL_CALL_BOUND_METHOD 23
-#define SPEC_FAIL_CALL_STR 24
-#define SPEC_FAIL_CALL_CLASS_NO_VECTORCALL 25
#define SPEC_FAIL_CALL_CLASS_MUTABLE 26
#define SPEC_FAIL_CALL_METHOD_WRAPPER 28
#define SPEC_FAIL_CALL_OPERATOR_WRAPPER 29
@@ -1800,9 +1798,7 @@ specialize_class_call(PyObject *callable, _Py_CODEUNIT *instr, int nargs)
instr->op.code = CALL_BUILTIN_CLASS;
return 0;
}
- SPECIALIZATION_FAIL(CALL, tp == &PyUnicode_Type ?
- SPEC_FAIL_CALL_STR : SPEC_FAIL_CALL_CLASS_NO_VECTORCALL);
- return -1;
+ goto generic;
}
if (Py_TYPE(tp) != &PyType_Type) {
goto generic;