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

@ -590,9 +590,9 @@ dummy_func(void) {
}
}
op(_LOAD_ATTR, (owner -- attr, self_or_null[oparg&1])) {
op(_LOAD_ATTR, (owner -- attr[1], self_or_null[oparg&1])) {
(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);
}