| Index: src/full-codegen/mips64/full-codegen-mips64.cc
|
| diff --git a/src/full-codegen/mips64/full-codegen-mips64.cc b/src/full-codegen/mips64/full-codegen-mips64.cc
|
| index 8f289a59efea7e849a9c4f308641c6fe1bf7321f..8429f732efd5ae757577a884158c5dd0b31b26ed 100644
|
| --- a/src/full-codegen/mips64/full-codegen-mips64.cc
|
| +++ b/src/full-codegen/mips64/full-codegen-mips64.cc
|
| @@ -207,8 +207,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);
|
| @@ -216,6 +216,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) {
|
|
|