Index: src/arm/stub-cache-arm.cc |
diff --git a/src/arm/stub-cache-arm.cc b/src/arm/stub-cache-arm.cc |
index 265265d591002ade05f68d778702faf41bc1b84f..2fc80fb9cd336d8db99557701a0eb182fa0fa8bc 100644 |
--- a/src/arm/stub-cache-arm.cc |
+++ b/src/arm/stub-cache-arm.cc |
@@ -911,12 +911,12 @@ static void GenerateFastApiCall(MacroAssembler* masm, |
__ str(receiver, MemOperand(sp, FCA::kHolderIndex * kPointerSize)); |
// Write receiver to stack frame. |
int index = stack_space - 1; |
- __ str(receiver, MemOperand(sp, index * kPointerSize)); |
+ __ str(receiver, MemOperand(sp, index-- * kPointerSize)); |
// Write the arguments to stack frame. |
for (int i = 0; i < argc; i++) { |
ASSERT(!receiver.is(values[i])); |
ASSERT(!scratch.is(values[i])); |
- __ str(receiver, MemOperand(sp, index-- * kPointerSize)); |
+ __ str(values[i], MemOperand(sp, index-- * kPointerSize)); |
} |
GenerateFastApiDirectCall(masm, optimization, argc, true); |