Index: src/mips64/code-stubs-mips64.cc |
diff --git a/src/mips64/code-stubs-mips64.cc b/src/mips64/code-stubs-mips64.cc |
index 33bf9c545436b478ce473acfe542a89f44cca836..ed2029d567c470a8dac7379484bc8105f11b1cc1 100644 |
--- a/src/mips64/code-stubs-mips64.cc |
+++ b/src/mips64/code-stubs-mips64.cc |
@@ -2771,6 +2771,8 @@ void CallICStub::HandleArrayCase(MacroAssembler* masm, Label* miss) { |
__ LoadGlobalFunction(Context::ARRAY_FUNCTION_INDEX, at); |
__ Branch(miss, ne, a1, Operand(at)); |
+ __ li(a0, Operand(arg_count())); |
+ |
// Increment the call count for monomorphic function calls. |
__ dsrl(t0, a3, 32 - kPointerSizeLog2); |
__ Daddu(a3, a2, Operand(t0)); |