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

This commit is contained in:
Neko Asakura
2026-03-24 06:31:41 -04:00
committed by GitHub
parent 07a555d4fc
commit 6d73bc2267
10 changed files with 1236 additions and 1199 deletions
+6
View File
@@ -1356,6 +1356,12 @@ dummy_func(void) {
i = iterable;
}
op(_DICT_MERGE, (callable, unused, unused, dict, unused[oparg - 1], update -- callable, unused, unused, dict, unused[oparg - 1], u)) {
(void)callable;
(void)dict;
u = update;
}
op(_UNPACK_SEQUENCE_TWO_TUPLE, (seq -- val1, val0)) {
if (PyJitRef_IsUnique(seq) && sym_tuple_length(seq) == 2) {
ADD_OP(_UNPACK_SEQUENCE_UNIQUE_TWO_TUPLE, oparg, 0);