| Index: src/arm64/builtins-arm64.cc
|
| diff --git a/src/arm64/builtins-arm64.cc b/src/arm64/builtins-arm64.cc
|
| index 8297fc3e2bc4d92869a8b9b06c13ee06674355c2..b2f1b2a036632c288342f4700f0a1702fe59fe1b 100644
|
| --- a/src/arm64/builtins-arm64.cc
|
| +++ b/src/arm64/builtins-arm64.cc
|
| @@ -780,7 +780,7 @@ static void Generate_CheckStackOverflow(MacroAssembler* masm,
|
| __ SmiTag(argc);
|
| }
|
| __ Push(function, argc);
|
| - __ InvokeBuiltin(Context::STACK_OVERFLOW_BUILTIN_INDEX, CALL_FUNCTION);
|
| + __ CallRuntime(Runtime::kThrowStackOverflow, 0);
|
| // We should never return from the APPLY_OVERFLOW builtin.
|
| if (__ emit_debug_code()) {
|
| __ Unreachable();
|
| @@ -945,7 +945,7 @@ void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) {
|
| __ Sub(x10, jssp, Operand(x11));
|
| __ CompareRoot(x10, Heap::kRealStackLimitRootIndex);
|
| __ B(hs, &ok);
|
| - __ InvokeBuiltin(Context::STACK_OVERFLOW_BUILTIN_INDEX, CALL_FUNCTION);
|
| + __ CallRuntime(Runtime::kThrowStackOverflow, 0);
|
| __ Bind(&ok);
|
|
|
| // If ok, push undefined as the initial value for all register file entries.
|
| @@ -1863,7 +1863,7 @@ void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) {
|
| {
|
| FrameScope frame(masm, StackFrame::MANUAL);
|
| EnterArgumentsAdaptorFrame(masm);
|
| - __ InvokeBuiltin(Context::STACK_OVERFLOW_BUILTIN_INDEX, CALL_FUNCTION);
|
| + __ CallRuntime(Runtime::kThrowStackOverflow, 0);
|
| __ Unreachable();
|
| }
|
| }
|
|
|