Skip to content

Commit 271a7dc

Browse files
committed
gh-148438: implement _RECORD_BOUND_METHOD in JIT
1 parent 8268445 commit 271a7dc

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

Lib/test/test_capi/test_opt.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1711,8 +1711,6 @@ def testfunc(n):
17111711
self.assertIsNotNone(ex)
17121712
uops = get_opnames(ex)
17131713
self.assertIn("_PUSH_FRAME", uops)
1714-
self.assertIn("_CHECK_FUNCTION_VERSION_INLINE", uops)
1715-
self.assertNotIn("_CHECK_METHOD_VERSION", uops)
17161714

17171715
def test_record_bound_method_exact_args(self):
17181716
class MyClass:

Python/optimizer_bytecodes.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,8 +1032,6 @@ dummy_func(void) {
10321032
if (PyFunction_Check(func) &&
10331033
((PyFunctionObject *)func)->func_version == func_version) {
10341034
sym_set_const(callable, bound_method);
1035-
ADD_OP(_CHECK_FUNCTION_VERSION_INLINE, 0, func_version);
1036-
uop_buffer_last(&ctx->out_buffer)->operand1 = (uintptr_t)func;
10371035
}
10381036
}
10391037
}

Python/optimizer_cases.c.h

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)