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

This commit is contained in:
Sacul 2026-03-19 19:17:58 +08:00 committed by GitHub
parent 982459132b
commit 0d37e423d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 1030 additions and 981 deletions

View file

@ -1823,9 +1823,14 @@
}
case _SET_UPDATE: {
CHECK_STACK_BOUNDS(-1);
stack_pointer += -1;
ASSERT_WITHIN_STACK_BOUNDS(__FILE__, __LINE__);
JitOptRef iterable;
JitOptRef set;
JitOptRef i;
iterable = stack_pointer[-1];
set = stack_pointer[-2 - (oparg-1)];
(void)set;
i = iterable;
stack_pointer[-1] = i;
break;
}