summaryrefslogtreecommitdiffstats
path: root/Python/optimizer_bytecodes.c
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-08-12 17:35:52 (GMT)
committerGitHub <noreply@github.com>2024-08-12 17:35:52 (GMT)
commit1795d6cebaee07f30804d490fa90e3e516dfed79 (patch)
treeb1eaeb5ea0400a3d56972ee8073c4e808952b3da /Python/optimizer_bytecodes.c
parent53ebb6232a8ebc03827cf2251bfc67f1886ffd70 (diff)
downloadcpython-1795d6cebaee07f30804d490fa90e3e516dfed79.zip
cpython-1795d6cebaee07f30804d490fa90e3e516dfed79.tar.gz
cpython-1795d6cebaee07f30804d490fa90e3e516dfed79.tar.bz2
GH-122869: Add missing tier two optimizer cases (GH-122936)
Diffstat (limited to 'Python/optimizer_bytecodes.c')
-rw-r--r--Python/optimizer_bytecodes.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/Python/optimizer_bytecodes.c b/Python/optimizer_bytecodes.c
index c982e37..010733e 100644
--- a/Python/optimizer_bytecodes.c
+++ b/Python/optimizer_bytecodes.c
@@ -329,6 +329,13 @@ dummy_func(void) {
}
}
+ op(_BINARY_SUBSCR_INIT_CALL, (container, sub -- new_frame: _Py_UOpsAbstractFrame *)) {
+ (void)container;
+ (void)sub;
+ new_frame = NULL;
+ ctx->done = true;
+ }
+
op(_TO_BOOL, (value -- res)) {
if (!optimize_to_bool(this_instr, ctx, value, &res)) {
res = sym_new_type(ctx, &PyBool_Type);
@@ -538,6 +545,13 @@ dummy_func(void) {
self = owner;
}
+ op(_LOAD_ATTR_PROPERTY_FRAME, (fget/4, owner -- new_frame: _Py_UOpsAbstractFrame *)) {
+ (void)fget;
+ (void)owner;
+ new_frame = NULL;
+ ctx->done = true;
+ }
+
op(_INIT_CALL_BOUND_METHOD_EXACT_ARGS, (callable, unused, unused[oparg] -- func, self, unused[oparg])) {
(void)callable;
func = sym_new_not_null(ctx);