Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index 6c25f3cb3ee69753182dc916530960fab3f7d613..257560e46c34e7c039cc8e4d9e41d45652d32528 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -1664,13 +1664,16 @@ void CEntryStub::Generate(MacroAssembler* masm) { |
// Enter the exit frame that transitions from JavaScript to C++. |
if (argv_in_register()) { |
DCHECK(!save_doubles()); |
+ DCHECK(!is_builtin_exit()); |
__ EnterApiExitFrame(arg_stack_space); |
// Move argc and argv into the correct registers. |
__ mov(esi, ecx); |
__ mov(edi, eax); |
} else { |
- __ EnterExitFrame(arg_stack_space, save_doubles()); |
+ __ EnterExitFrame( |
+ arg_stack_space, save_doubles(), |
+ is_builtin_exit() ? StackFrame::BUILTIN_EXIT : StackFrame::EXIT); |
} |
// ebx: pointer to C function (C callee-saved) |