| Index: src/crankshaft/arm/lithium-codegen-arm.cc
|
| diff --git a/src/crankshaft/arm/lithium-codegen-arm.cc b/src/crankshaft/arm/lithium-codegen-arm.cc
|
| index e5f88a7f2e91cce7bc8fbbf85542df6cf39a03fd..433d9be29a5396eceb7fc033a7a100821e867fbb 100644
|
| --- a/src/crankshaft/arm/lithium-codegen-arm.cc
|
| +++ b/src/crankshaft/arm/lithium-codegen-arm.cc
|
| @@ -164,8 +164,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);
|
| @@ -173,6 +174,7 @@ void LCodeGen::DoPrologue(LPrologue* instr) {
|
| need_write_barrier = false;
|
| } else {
|
| __ push(r1);
|
| + __ Push(Smi::FromInt(info()->scope()->scope_type()));
|
| __ CallRuntime(Runtime::kNewFunctionContext);
|
| }
|
| }
|
|
|