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

This commit is contained in:
Sacul 2026-03-16 19:58:12 +08:00 committed by GitHub
parent 36b5284f04
commit 37121ef77e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 1257 additions and 1215 deletions

View file

@ -1293,9 +1293,17 @@
}
case _CALL_INTRINSIC_1: {
JitOptRef value;
JitOptRef res;
JitOptRef v;
value = stack_pointer[-1];
res = sym_new_not_null(ctx);
v = value;
CHECK_STACK_BOUNDS(1);
stack_pointer[-1] = res;
stack_pointer[0] = v;
stack_pointer += 1;
ASSERT_WITHIN_STACK_BOUNDS(__FILE__, __LINE__);
break;
}