gh-148438: implement _RECORD_BOUND_METHOD in JIT (GH-148457)

This commit is contained in:
Neko Asakura 2026-04-12 14:57:55 -04:00 committed by GitHub
parent 18d7d90ef9
commit 63492628be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 128 additions and 8 deletions

View file

@ -6160,8 +6160,7 @@ dummy_func(
tier2 op(_RECORD_BOUND_METHOD, (callable, self, args[oparg] -- callable, self, args[oparg])) {
PyObject *callable_o = PyStackRef_AsPyObjectBorrow(callable);
if (Py_TYPE(callable_o) == &PyMethod_Type) {
PyObject *func = ((PyMethodObject *)callable_o)->im_func;
RECORD_VALUE(func);
RECORD_VALUE(callable_o);
}
}