Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2ec50b4

Browse files
gh-114058: Improve method information in redundancy eliminator (GH-115848)
1 parent acd6f41 commit 2ec50b4

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

Python/tier2_redundancy_eliminator_bytecodes.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,21 +296,25 @@ dummy_func(void) {
296296
}
297297

298298
op(_LOAD_ATTR_METHOD_WITH_VALUES, (descr/4, owner -- attr, self if (1))) {
299+
(void)descr;
299300
OUT_OF_SPACE_IF_NULL(attr = sym_new_known_notnull(ctx));
300-
OUT_OF_SPACE_IF_NULL(self = sym_new_known_notnull(ctx));
301+
self = owner;
301302
}
302303

303304
op(_LOAD_ATTR_METHOD_NO_DICT, (descr/4, owner -- attr, self if (1))) {
305+
(void)descr;
304306
OUT_OF_SPACE_IF_NULL(attr = sym_new_known_notnull(ctx));
305-
OUT_OF_SPACE_IF_NULL(self = sym_new_known_notnull(ctx));
307+
self = owner;
306308
}
307309

308310
op(_LOAD_ATTR_METHOD_LAZY_DICT, (descr/4, owner -- attr, self if (1))) {
311+
(void)descr;
309312
OUT_OF_SPACE_IF_NULL(attr = sym_new_known_notnull(ctx));
310-
OUT_OF_SPACE_IF_NULL(self = sym_new_known_notnull(ctx));
313+
self = owner;
311314
}
312315

313316
op(_INIT_CALL_BOUND_METHOD_EXACT_ARGS, (callable, unused, unused[oparg] -- func, self, unused[oparg])) {
317+
(void)callable;
314318
OUT_OF_SPACE_IF_NULL(func = sym_new_known_notnull(ctx));
315319
OUT_OF_SPACE_IF_NULL(self = sym_new_known_notnull(ctx));
316320
}

Python/tier2_redundancy_eliminator_cases.c.h

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

0 commit comments

Comments
 (0)