| Index: src/crankshaft/x87/lithium-codegen-x87.cc
|
| diff --git a/src/crankshaft/x87/lithium-codegen-x87.cc b/src/crankshaft/x87/lithium-codegen-x87.cc
|
| index c2bf140a3abc66daf65459d38a43c2b1233f02ef..7428cbe579f9c2691fffcfd1d58416290ff0b195 100644
|
| --- a/src/crankshaft/x87/lithium-codegen-x87.cc
|
| +++ b/src/crankshaft/x87/lithium-codegen-x87.cc
|
| @@ -146,8 +146,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(),
|
| Immediate(slots));
|
| __ CallStub(&stub);
|
| @@ -155,6 +156,7 @@ void LCodeGen::DoPrologue(LPrologue* instr) {
|
| need_write_barrier = false;
|
| } else {
|
| __ push(edi);
|
| + __ Push(Smi::FromInt(info()->scope()->scope_type()));
|
| __ CallRuntime(Runtime::kNewFunctionContext);
|
| }
|
| }
|
|
|