gh-136125: Use _PyObject_GetMethodStackRef for LOAD_ATTR (GH-136127)

This commit is contained in:
Ken Jin 2025-07-02 01:20:46 +08:00 committed by GitHub
parent 17cf0a343b
commit e0d6500b2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 29 additions and 32 deletions

View file

@ -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;