MIPS64: Correct register use.
authorpaul.lind@imgtec.com <paul.lind@imgtec.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 21 Jul 2014 03:09:19 +0000 (03:09 +0000)
committerpaul.lind@imgtec.com <paul.lind@imgtec.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 21 Jul 2014 03:09:19 +0000 (03:09 +0000)
TEST: mozilla/js1_5/Regress/regress-366601.
TEST: mozilla/ecma_3/ExecutionContexts/10.1.3-1

BUG=
R=paul.lind@imgtec.com

Review URL: https://codereview.chromium.org/403993002

Patch from Yu Yin <xwafish@gmail.com>.

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22489 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/mips64/codegen-mips64.cc
src/mips64/ic-mips64.cc

index facce27..f9aa24c 100644 (file)
@@ -569,7 +569,7 @@ void ElementsTransitionGenerator::GenerateMapChangeElementsTransition(
 
   // Set transitioned map.
   __ sd(target_map, FieldMemOperand(receiver, HeapObject::kMapOffset));
-  __ RecordWriteField(a2,
+  __ RecordWriteField(receiver,
                       HeapObject::kMapOffset,
                       target_map,
                       t1,
index 49d9c4a..ba7272a 100644 (file)
@@ -445,7 +445,7 @@ void KeyedLoadIC::GenerateSloppyArguments(MacroAssembler* masm) {
   __ bind(&notin);
   // The unmapped lookup expects that the parameter map is in a2.
   MemOperand unmapped_location =
-      GenerateUnmappedArgumentsLookup(masm, a0, a0, a3, &slow);
+      GenerateUnmappedArgumentsLookup(masm, key, a0, a3, &slow);
   __ ld(a0, unmapped_location);
   __ LoadRoot(a3, Heap::kTheHoleValueRootIndex);
   __ Branch(&slow, eq, a0, Operand(a3));