Revision: 9843
Author:   [email protected]
Date:     Mon Oct 31 05:34:13 2011
Log: MIPS: Fixed wrong register usage in StringDictionaryLookupStub::GenerateNegativeLookup.

This fixes a lot of test failures triggered by r9834, for example mjsunit/const-redecl.js.

BUG=
TEST=

Review URL: http://codereview.chromium.org/8417050
Patch from Gergely Kis <[email protected]>.
http://code.google.com/p/v8/source/detail?r=9843

Modified:
 /branches/bleeding_edge/src/mips/code-stubs-mips.cc

=======================================
--- /branches/bleeding_edge/src/mips/code-stubs-mips.cc Fri Oct 28 01:03:13 2011 +++ /branches/bleeding_edge/src/mips/code-stubs-mips.cc Mon Oct 31 05:34:13 2011
@@ -6979,8 +6979,8 @@
     // Having undefined at this place means the name is not contained.
     ASSERT_EQ(kSmiTagSize, 1);
     Register tmp = properties;
-    __ sll(tmp, index, 1);
-    __ Addu(tmp, properties, tmp);
+    __ sll(scratch0, index, 1);
+    __ Addu(tmp, properties, scratch0);
     __ lw(entity_name, FieldMemOperand(tmp, kElementsStartOffset));

     ASSERT(!tmp.is(entity_name));
@@ -6995,8 +6995,8 @@
__ lw(entity_name, FieldMemOperand(entity_name, HeapObject::kMapOffset));
       __ lbu(entity_name,
              FieldMemOperand(entity_name, Map::kInstanceTypeOffset));
-      __ And(tmp, entity_name, Operand(kIsSymbolMask));
-      __ Branch(miss, eq, tmp, Operand(zero_reg));
+      __ And(scratch0, entity_name, Operand(kIsSymbolMask));
+      __ Branch(miss, eq, scratch0, Operand(zero_reg));

       // Restore the properties.
       __ lw(properties,

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to