Skip to content

Commit 36e5637

Browse files
committed
Update optimizer_bytecodes.c
1 parent c0614f3 commit 36e5637

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

Python/optimizer_bytecodes.c

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -897,9 +897,14 @@ dummy_func(void) {
897897
}
898898
}
899899

900-
op(_LOAD_SPECIAL, (owner -- attr, self_or_null)) {
901-
attr = sym_new_not_null(ctx);
902-
self_or_null = sym_new_unknown(ctx);
900+
op(_INSERT_NULL, (self -- method_and_self[2])) {
901+
method_and_self[1] = self;
902+
method_and_self[0] = sym_new_null(ctx);
903+
}
904+
905+
op(_LOAD_SPECIAL, (method_and_self[2] -- method_and_self[2])) {
906+
method_and_self[0] = sym_new_not_null(ctx);
907+
method_and_self[1] = sym_new_unknown(ctx);
903908
}
904909

905910
op(_JUMP_TO_TOP, (--)) {

Python/optimizer_cases.c.h

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

0 commit comments

Comments
 (0)