Index: src/crankshaft/mips64/lithium-codegen-mips64.cc |
diff --git a/src/crankshaft/mips64/lithium-codegen-mips64.cc b/src/crankshaft/mips64/lithium-codegen-mips64.cc |
index c8383d1efdfec9c8b2ed703beef45dc29b5bf02b..b493349341f7288633c28904b893d864042e4f01 100644 |
--- a/src/crankshaft/mips64/lithium-codegen-mips64.cc |
+++ b/src/crankshaft/mips64/lithium-codegen-mips64.cc |
@@ -178,8 +178,9 @@ void LCodeGen::DoPrologue(LPrologue* instr) { |
__ CallRuntime(Runtime::kNewScriptContext); |
deopt_mode = Safepoint::kLazyDeopt; |
} else { |
- if (slots <= FastNewFunctionContextStub::kMaximumSlots) { |
- FastNewFunctionContextStub stub(isolate()); |
+ if (slots <= FastNewFunctionContextStub::MaximumSlots()) { |
+ FastNewFunctionContextStub stub(isolate(), |
+ info()->scope()->scope_type()); |
__ li(FastNewFunctionContextDescriptor::SlotsRegister(), |
Operand(slots)); |
__ CallStub(&stub); |
@@ -187,6 +188,7 @@ void LCodeGen::DoPrologue(LPrologue* instr) { |
need_write_barrier = false; |
} else { |
__ push(a1); |
+ __ Push(Smi::FromInt(info()->scope()->scope_type())); |
__ CallRuntime(Runtime::kNewFunctionContext); |
} |
} |