mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
GH-131798: Split CALL_LEN into several uops (GH-133180)
This commit is contained in:
parent
893034cf93
commit
9cc77aaf9d
11 changed files with 314 additions and 281 deletions
|
@ -2147,7 +2147,7 @@ specialize_c_call(PyObject *callable, _Py_CODEUNIT *instr, int nargs)
|
|||
}
|
||||
/* len(o) */
|
||||
PyInterpreterState *interp = _PyInterpreterState_GET();
|
||||
if (callable == interp->callable_cache.len) {
|
||||
if (callable == interp->callable_cache.len && instr->op.arg == 1) {
|
||||
specialize(instr, CALL_LEN);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue