Index: src/x87/code-stubs-x87.cc |
diff --git a/src/x87/code-stubs-x87.cc b/src/x87/code-stubs-x87.cc |
index acee4c9b8ae8e3007ef82a86916d04b5da85c2b2..f36ef80731a3c4482e3a010493393c9eebabd6e8 100644 |
--- a/src/x87/code-stubs-x87.cc |
+++ b/src/x87/code-stubs-x87.cc |
@@ -2073,7 +2073,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; |
@@ -2084,7 +2084,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). |
@@ -2135,7 +2135,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)); |