gh-145866: Convert DICT_UPDATE to leave its inputs on the stack to be cleaned up by _POP_TOP (GH-146190)

This commit is contained in:
Sacul 2026-03-26 19:38:44 +08:00 committed by GitHub
parent 8de70b31c5
commit 1516c26399
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 1254 additions and 1223 deletions

View file

@ -1832,6 +1832,11 @@ dummy_func(void) {
n = names;
}
op(_DICT_UPDATE, (dict, unused[oparg - 1], update -- dict, unused[oparg - 1], upd)) {
(void)dict;
upd = update;
}
op(_RECORD_TOS, (tos -- tos)) {
sym_set_recorded_value(tos, (PyObject *)this_instr->operand0);
}