gh-134584: Cleanups for GH-135860 (GH-142604)

This commit is contained in:
Ken Jin 2025-12-13 22:38:10 +08:00 committed by GitHub
parent c98182be8d
commit e02a35c365
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 41 additions and 35 deletions

View file

@ -2882,6 +2882,7 @@
case _CALL_TUPLE_1: {
JitOptRef arg;
JitOptRef res;
JitOptRef a;
arg = stack_pointer[-1];
if (sym_matches_type(arg, &PyTuple_Type)) {
res = PyJitRef_StripReferenceInfo(arg);
@ -2889,9 +2890,11 @@
else {
res = sym_new_type(ctx, &PyTuple_Type);
}
CHECK_STACK_BOUNDS(-2);
a = arg;
CHECK_STACK_BOUNDS(-1);
stack_pointer[-3] = res;
stack_pointer += -2;
stack_pointer[-2] = a;
stack_pointer += -1;
ASSERT_WITHIN_STACK_BOUNDS(__FILE__, __LINE__);
break;
}