Index: src/mips/stub-cache-mips.cc |
diff --git a/src/mips/stub-cache-mips.cc b/src/mips/stub-cache-mips.cc |
index 251c6ff5d8c9b33fdb05752fa2baa5c0d4cec021..3dd78278372558473a9ab918f24b20cd86970596 100644 |
--- a/src/mips/stub-cache-mips.cc |
+++ b/src/mips/stub-cache-mips.cc |
@@ -1614,8 +1614,8 @@ MaybeObject* CallStubCompiler::CompileArrayPushCall(Object* object, |
__ Addu(end_elements, elements, end_elements); |
const int kEndElementsOffset = |
FixedArray::kHeaderSize - kHeapObjectTag - argc * kPointerSize; |
- __ sw(t0, MemOperand(end_elements, kEndElementsOffset)); |
- __ Addu(end_elements, end_elements, kPointerSize); |
+ __ Addu(end_elements, end_elements, kEndElementsOffset); |
+ __ sw(t0, MemOperand(end_elements)); |
// Check for a smi. |
__ JumpIfNotSmi(t0, &with_write_barrier); |