| Index: src/crankshaft/s390/lithium-codegen-s390.cc
|
| diff --git a/src/crankshaft/s390/lithium-codegen-s390.cc b/src/crankshaft/s390/lithium-codegen-s390.cc
|
| index 7bc99718bef100c055eb062d0e947d2a5448819d..68e534013f8caf552c0c17c8ce886823ea5083cd 100644
|
| --- a/src/crankshaft/s390/lithium-codegen-s390.cc
|
| +++ b/src/crankshaft/s390/lithium-codegen-s390.cc
|
| @@ -177,8 +177,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);
|
| @@ -186,6 +187,7 @@ void LCodeGen::DoPrologue(LPrologue* instr) {
|
| need_write_barrier = false;
|
| } else {
|
| __ push(r3);
|
| + __ Push(Smi::FromInt(info()->scope()->scope_type()));
|
| __ CallRuntime(Runtime::kNewFunctionContext);
|
| }
|
| }
|
|
|