mirror of
https://github.com/python/cpython.git
synced 2026-04-20 10:51:00 +00:00
gh-148438: implement _RECORD_BOUND_METHOD in JIT (GH-148457)
This commit is contained in:
parent
18d7d90ef9
commit
63492628be
5 changed files with 128 additions and 8 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue