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 ca152913473bde1a04a9f14175ad307873554321..97e54a6003a3241f290d7a4aa1a0e895f4bbea4d 100644 |
--- a/src/full-codegen/mips64/full-codegen-mips64.cc |
+++ b/src/full-codegen/mips64/full-codegen-mips64.cc |
@@ -194,7 +194,9 @@ void FullCodeGenerator::Generate() { |
__ push(a3); // Preserve new target. |
} |
if (slots <= FastNewFunctionContextStub::kMaximumSlots) { |
- FastNewFunctionContextStub stub(isolate(), slots); |
+ FastNewFunctionContextStub stub(isolate()); |
+ __ li(FastNewFunctionContextDescriptor::SlotsRegister(), |
+ Operand(slots)); |
__ CallStub(&stub); |
// Result of FastNewFunctionContextStub is always in new space. |
need_write_barrier = false; |