mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-136125: Use _PyObject_GetMethodStackRef
for LOAD_ATTR
(GH-136127)
This commit is contained in:
parent
17cf0a343b
commit
e0d6500b2d
6 changed files with 29 additions and 32 deletions
6
Python/optimizer_cases.c.h
generated
6
Python/optimizer_cases.c.h
generated
|
@ -1414,16 +1414,16 @@
|
|||
|
||||
case _LOAD_ATTR: {
|
||||
JitOptRef owner;
|
||||
JitOptRef attr;
|
||||
JitOptRef *attr;
|
||||
JitOptRef *self_or_null;
|
||||
owner = stack_pointer[-1];
|
||||
attr = &stack_pointer[-1];
|
||||
self_or_null = &stack_pointer[0];
|
||||
(void)owner;
|
||||
attr = sym_new_not_null(ctx);
|
||||
*attr = sym_new_not_null(ctx);
|
||||
if (oparg & 1) {
|
||||
self_or_null[0] = sym_new_unknown(ctx);
|
||||
}
|
||||
stack_pointer[-1] = attr;
|
||||
stack_pointer += (oparg&1);
|
||||
assert(WITHIN_STACK_BOUNDS());
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue