Commit 38db0a4b authored by palfia@homejinni.com's avatar palfia@homejinni.com

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
parent 8a4df124
...@@ -899,12 +899,12 @@ static void GenerateFastApiCall(MacroAssembler* masm, ...@@ -899,12 +899,12 @@ static void GenerateFastApiCall(MacroAssembler* masm,
__ sw(receiver, MemOperand(sp, FCA::kHolderIndex * kPointerSize)); __ sw(receiver, MemOperand(sp, FCA::kHolderIndex * kPointerSize));
// Write receiver to stack frame. // Write receiver to stack frame.
int index = stack_space - 1; int index = stack_space - 1;
__ sw(receiver, MemOperand(sp, index * kPointerSize)); __ sw(receiver, MemOperand(sp, index-- * kPointerSize));
// Write the arguments to stack frame. // Write the arguments to stack frame.
for (int i = 0; i < argc; i++) { for (int i = 0; i < argc; i++) {
ASSERT(!receiver.is(values[i])); ASSERT(!receiver.is(values[i]));
ASSERT(!scratch.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); GenerateFastApiDirectCall(masm, optimization, argc, true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment