mirror of
https://github.com/python/cpython.git
synced 2026-04-14 15:50:50 +00:00
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:
parent
07a555d4fc
commit
6d73bc2267
10 changed files with 1236 additions and 1199 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue