Index: src/crankshaft/ia32/lithium-codegen-ia32.cc |
diff --git a/src/crankshaft/ia32/lithium-codegen-ia32.cc b/src/crankshaft/ia32/lithium-codegen-ia32.cc |
index b6f9811a1410a88f0e56606f351d450f501e8560..62f7e7ffaafb61558d5bace86ec12d80743af7a7 100644 |
--- a/src/crankshaft/ia32/lithium-codegen-ia32.cc |
+++ b/src/crankshaft/ia32/lithium-codegen-ia32.cc |
@@ -178,14 +178,13 @@ void LCodeGen::DoPrologue(LPrologue* instr) { |
__ Push(info()->scope()->GetScopeInfo(info()->isolate())); |
__ CallRuntime(Runtime::kNewScriptContext); |
deopt_mode = Safepoint::kLazyDeopt; |
- } else if (slots <= FastNewFunctionContextStub::kMaximumSlots) { |
- FastNewFunctionContextStub stub(isolate(), slots); |
+ } else { |
+ FastNewFunctionContextStub stub(isolate()); |
+ __ mov(FastNewFunctionContextDescriptor::SlotsRegister(), |
+ Immediate(slots)); |
__ CallStub(&stub); |
// Result of FastNewFunctionContextStub is always in new space. |
need_write_barrier = false; |
- } else { |
- __ push(edi); |
- __ CallRuntime(Runtime::kNewFunctionContext); |
} |
RecordSafepoint(deopt_mode); |