Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index ad9d4799196f3cfeecba6729dd60eecfff77e6d0..11065ec94797aac3621c55fbb7541e473d71f426 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -2398,7 +2398,7 @@ void CEntryStub::Generate(MacroAssembler* masm) { |
} |
-void JSEntryStub::GenerateBody(MacroAssembler* masm, bool is_construct) { |
+void JSEntryStub::Generate(MacroAssembler* masm) { |
Label invoke, handler_entry, exit; |
Label not_outermost_js, not_outermost_js_2; |
@@ -2409,7 +2409,7 @@ void JSEntryStub::GenerateBody(MacroAssembler* masm, bool is_construct) { |
__ mov(ebp, esp); |
// Push marker in two places. |
- int marker = is_construct ? StackFrame::ENTRY_CONSTRUCT : StackFrame::ENTRY; |
+ int marker = type(); |
__ push(Immediate(Smi::FromInt(marker))); // context slot |
__ push(Immediate(Smi::FromInt(marker))); // function slot |
// Save callee-saved registers (C calling conventions). |
@@ -2460,7 +2460,7 @@ void JSEntryStub::GenerateBody(MacroAssembler* masm, bool is_construct) { |
// pop the faked function when we return. Notice that we cannot store a |
// reference to the trampoline code directly in this stub, because the |
// builtin stubs may not have been generated yet. |
- if (is_construct) { |
+ if (type() == StackFrame::ENTRY_CONSTRUCT) { |
ExternalReference construct_entry(Builtins::kJSConstructEntryTrampoline, |
isolate()); |
__ mov(edx, Immediate(construct_entry)); |