Commit 41cafb7b authored by erikcorry's avatar erikcorry

MIPS: Fixed a bug in CallStubCompiler::CompileArrayPushCall.

An ARM PreIndex store was badly ported.

Landing http://codereview.chromium.org/7934003/ for Paul Lind.


git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9317 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 433db377
......@@ -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);
......
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