| Index: src/full-codegen/mips/full-codegen-mips.cc
|
| diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc
|
| index fdf43c06dfa5ee61d3155191b17822004ec11b18..27d521d118ed0b4dd5c78cdfd165e53d5f57dce0 100644
|
| --- a/src/full-codegen/mips/full-codegen-mips.cc
|
| +++ b/src/full-codegen/mips/full-codegen-mips.cc
|
| @@ -208,8 +208,8 @@ void FullCodeGenerator::Generate() {
|
| if (info->scope()->new_target_var() != nullptr) {
|
| __ push(a3); // Preserve new target.
|
| }
|
| - 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);
|
| @@ -217,6 +217,7 @@ void FullCodeGenerator::Generate() {
|
| need_write_barrier = false;
|
| } else {
|
| __ push(a1);
|
| + __ Push(Smi::FromInt(info->scope()->scope_type()));
|
| __ CallRuntime(Runtime::kNewFunctionContext);
|
| }
|
| if (info->scope()->new_target_var() != nullptr) {
|
|
|