Index: src/arm64/code-stubs-arm64.cc |
diff --git a/src/arm64/code-stubs-arm64.cc b/src/arm64/code-stubs-arm64.cc |
index 43bb45956d4fc0d1e91f398aaca5e001e4392ade..be5f30eaa45d1d9dbb7998ee2e3721e19df5ef06 100644 |
--- a/src/arm64/code-stubs-arm64.cc |
+++ b/src/arm64/code-stubs-arm64.cc |
@@ -925,7 +925,9 @@ void CEntryStub::Generate(MacroAssembler* masm) { |
int extra_stack_space = 3 + (result_size() <= 2 ? 0 : result_size()); |
// Enter the exit frame. |
FrameScope scope(masm, StackFrame::MANUAL); |
- __ EnterExitFrame(save_doubles(), x10, extra_stack_space); |
+ __ EnterExitFrame( |
+ save_doubles(), x10, extra_stack_space, |
+ is_builtin_exit() ? StackFrame::BUILTIN_EXIT : StackFrame::EXIT); |
DCHECK(csp.Is(__ StackPointer())); |
// Poke callee-saved registers into reserved space. |