mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
gh-114058: Improve method information in redundancy eliminator (GH-115848)
This commit is contained in:
parent
acd6f41ecf
commit
2ec50b4a66
2 changed files with 14 additions and 6 deletions
|
@ -296,21 +296,25 @@ dummy_func(void) {
|
|||
}
|
||||
|
||||
op(_LOAD_ATTR_METHOD_WITH_VALUES, (descr/4, owner -- attr, self if (1))) {
|
||||
(void)descr;
|
||||
OUT_OF_SPACE_IF_NULL(attr = sym_new_known_notnull(ctx));
|
||||
OUT_OF_SPACE_IF_NULL(self = sym_new_known_notnull(ctx));
|
||||
self = owner;
|
||||
}
|
||||
|
||||
op(_LOAD_ATTR_METHOD_NO_DICT, (descr/4, owner -- attr, self if (1))) {
|
||||
(void)descr;
|
||||
OUT_OF_SPACE_IF_NULL(attr = sym_new_known_notnull(ctx));
|
||||
OUT_OF_SPACE_IF_NULL(self = sym_new_known_notnull(ctx));
|
||||
self = owner;
|
||||
}
|
||||
|
||||
op(_LOAD_ATTR_METHOD_LAZY_DICT, (descr/4, owner -- attr, self if (1))) {
|
||||
(void)descr;
|
||||
OUT_OF_SPACE_IF_NULL(attr = sym_new_known_notnull(ctx));
|
||||
OUT_OF_SPACE_IF_NULL(self = sym_new_known_notnull(ctx));
|
||||
self = owner;
|
||||
}
|
||||
|
||||
op(_INIT_CALL_BOUND_METHOD_EXACT_ARGS, (callable, unused, unused[oparg] -- func, self, unused[oparg])) {
|
||||
(void)callable;
|
||||
OUT_OF_SPACE_IF_NULL(func = sym_new_known_notnull(ctx));
|
||||
OUT_OF_SPACE_IF_NULL(self = sym_new_known_notnull(ctx));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue