Index: src/crankshaft/ppc/lithium-codegen-ppc.cc |
diff --git a/src/crankshaft/ppc/lithium-codegen-ppc.cc b/src/crankshaft/ppc/lithium-codegen-ppc.cc |
index 2f6292beab13d239ac68f310e5e54fe9f7952bf6..190eab2c30d71a206e0bb56bcf81d10efb202ce7 100644 |
--- a/src/crankshaft/ppc/lithium-codegen-ppc.cc |
+++ b/src/crankshaft/ppc/lithium-codegen-ppc.cc |
@@ -186,8 +186,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()); |
__ mov(FastNewFunctionContextDescriptor::SlotsRegister(), |
Operand(slots)); |
__ CallStub(&stub); |
@@ -195,6 +196,7 @@ void LCodeGen::DoPrologue(LPrologue* instr) { |
need_write_barrier = false; |
} else { |
__ push(r4); |
+ __ Push(Smi::FromInt(info()->scope()->scope_type())); |
__ CallRuntime(Runtime::kNewFunctionContext); |
} |
} |