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 ef3559a2a67132cd106a8ed701eb91fd531de870..8d780a24177b430e278cf444807899636d4cf595 100644 |
--- a/src/full-codegen/mips/full-codegen-mips.cc |
+++ b/src/full-codegen/mips/full-codegen-mips.cc |
@@ -194,15 +194,11 @@ void FullCodeGenerator::Generate() { |
if (info->scope()->new_target_var() != nullptr) { |
__ push(a3); // Preserve new target. |
} |
- if (slots <= FastNewFunctionContextStub::kMaximumSlots) { |
- FastNewFunctionContextStub stub(isolate(), slots); |
- __ CallStub(&stub); |
- // Result of FastNewFunctionContextStub is always in new space. |
- need_write_barrier = false; |
- } else { |
- __ push(a1); |
- __ CallRuntime(Runtime::kNewFunctionContext); |
- } |
+ FastNewFunctionContextStub stub(isolate()); |
+ __ li(FastNewFunctionContextDescriptor::SlotsRegister(), Operand(slots)); |
+ __ CallStub(&stub); |
+ // Result of FastNewFunctionContextStub is always in new space. |
+ need_write_barrier = false; |
if (info->scope()->new_target_var() != nullptr) { |
__ pop(a3); // Restore new target. |
} |