From 38db0a4bd8eccc862d8b0dd82d4074e55a845852 Mon Sep 17 00:00:00 2001 From: "palfia@homejinni.com" Date: Thu, 5 Dec 2013 20:27:43 +0000 Subject: [PATCH] MIPS: Fix parameter passing in callback store ics on arm Port r18260 (d708e244) BUG= R=gergely@homejinni.com Review URL: https://codereview.chromium.org/100453009 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18264 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/mips/stub-cache-mips.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mips/stub-cache-mips.cc b/src/mips/stub-cache-mips.cc index 3d4617a..6c38e90 100644 --- a/src/mips/stub-cache-mips.cc +++ b/src/mips/stub-cache-mips.cc @@ -899,12 +899,12 @@ static void GenerateFastApiCall(MacroAssembler* masm, __ sw(receiver, MemOperand(sp, FCA::kHolderIndex * kPointerSize)); // Write receiver to stack frame. int index = stack_space - 1; - __ sw(receiver, MemOperand(sp, index * kPointerSize)); + __ sw(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])); - __ sw(receiver, MemOperand(sp, index-- * kPointerSize)); + __ sw(values[i], MemOperand(sp, index-- * kPointerSize)); } GenerateFastApiDirectCall(masm, optimization, argc, true); -- 2.7.4