Index: src/arm64/builtins-arm64.cc |
diff --git a/src/arm64/builtins-arm64.cc b/src/arm64/builtins-arm64.cc |
index 97ccf196580b25c15e2e7ab6587652f25065effc..9a0c4a751a72b25dd6bd38714d273898399dfdb0 100644 |
--- a/src/arm64/builtins-arm64.cc |
+++ b/src/arm64/builtins-arm64.cc |
@@ -828,6 +828,9 @@ static void Generate_CheckStackOverflow(MacroAssembler* masm, |
__ B(gt, &enough_stack_space); |
// There is not enough stack space, so use a builtin to throw an appropriate |
// error. |
+ if (argc_is_tagged == kArgcIsUntaggedInt) { |
+ __ SmiTag(argc); |
+ } |
__ Push(function, argc); |
__ InvokeBuiltin(Builtins::STACK_OVERFLOW, CALL_FUNCTION); |
// We should never return from the APPLY_OVERFLOW builtin. |