Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2ec50b4

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

File tree

Expand file treeCollapse file tree

2 files changed

+14
-6
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+14
-6
lines changed

‎Python/tier2_redundancy_eliminator_bytecodes.c

Copy file name to clipboardExpand all lines: Python/tier2_redundancy_eliminator_bytecodes.c
+7-3Lines 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

Copy file name to clipboardExpand all lines: Python/tier2_redundancy_eliminator_cases.c.h
+7-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.