Skip to content

Commit e985127

Browse files
committed
Add specialization
1 parent 5c20c52 commit e985127

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Python/specialize.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1890,6 +1890,10 @@ specialize_method_descriptor(PyMethodDescrObject *descr, _Py_CODEUNIT *instr,
18901890
instr->op.code = CALL_METHOD_DESCRIPTOR_FAST_WITH_KEYWORDS;
18911891
return 0;
18921892
}
1893+
case METH_METHOD | METH_FASTCALL | METH_KEYWORDS: {
1894+
instr->op.code = CALL_METHOD_CMETHOD;
1895+
return 0;
1896+
}
18931897
}
18941898
SPECIALIZATION_FAIL(CALL, meth_descr_call_fail_kind(descr->d_method->ml_flags));
18951899
return -1;

0 commit comments

Comments
 (0)