Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
gh-148438: implement _RECORD_BOUND_METHOD in JIT
  • Loading branch information
NekoAsakura committed Apr 12, 2026
commit 271a7dc856dd54d5d556fff158b4e85f643ff8ae
2 changes: 0 additions & 2 deletions Lib/test/test_capi/test_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1711,8 +1711,6 @@ def testfunc(n):
self.assertIsNotNone(ex)
uops = get_opnames(ex)
self.assertIn("_PUSH_FRAME", uops)
self.assertIn("_CHECK_FUNCTION_VERSION_INLINE", uops)
self.assertNotIn("_CHECK_METHOD_VERSION", uops)

def test_record_bound_method_exact_args(self):
class MyClass:
Expand Down
2 changes: 0 additions & 2 deletions Python/optimizer_bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -1032,8 +1032,6 @@ dummy_func(void) {
if (PyFunction_Check(func) &&
((PyFunctionObject *)func)->func_version == func_version) {
sym_set_const(callable, bound_method);
Comment thread
Fidget-Spinner marked this conversation as resolved.
ADD_OP(_CHECK_FUNCTION_VERSION_INLINE, 0, func_version);
uop_buffer_last(&ctx->out_buffer)->operand1 = (uintptr_t)func;
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions Python/optimizer_cases.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading