Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index e3c8b33a95d2607c34be590e8af67574a24d600b..2e1dea8f043fad7011fdb6b917d3d31f5a7bccb5 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -3944,7 +3944,9 @@ void MacroAssembler::CallApiFunctionAndReturn(ExternalReference function, |
// (4 bytes) will be placed. This is also built into the Simulator. |
// Set up the pointer to the returned value (a0). It was allocated in |
// EnterExitFrame. |
- addiu(a0, fp, ExitFrameConstants::kStackSpaceOffset); |
+ if (returns_handle) { |
+ addiu(a0, fp, ExitFrameConstants::kStackSpaceOffset); |
+ } |
// Native call returns to the DirectCEntry stub which redirects to the |
// return address pushed on stack (could have moved after GC). |