Index: src/mips/code-stubs-mips.cc |
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc |
index ebc4c79c8b988bba6cf3812612755958af5cb4d6..e4f68f9d43077827379dc3b0688dc5b3dbc9bc01 100644 |
--- a/src/mips/code-stubs-mips.cc |
+++ b/src/mips/code-stubs-mips.cc |
@@ -2795,8 +2795,9 @@ void CEntryStub::GenerateCore(MacroAssembler* masm, |
if (do_gc) { |
// Move result passed in v0 into a0 to call PerformGC. |
__ mov(a0, v0); |
- __ PrepareCallCFunction(1, 0, a1); |
- __ CallCFunction(ExternalReference::perform_gc_function(isolate), 1, 0); |
+ __ PrepareCallCFunction(2, 0, a1); |
+ __ li(a1, Operand(ExternalReference::isolate_address(masm->isolate()))); |
+ __ CallCFunction(ExternalReference::perform_gc_function(isolate), 2, 0); |
} |
ExternalReference scope_depth = |