Fix mistake in ARM version of string length stub.
authorerik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 27 Oct 2008 14:01:04 +0000 (14:01 +0000)
committererik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 27 Oct 2008 14:01:04 +0000 (14:01 +0000)
Review URL: http://codereview.chromium.org/8193

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

src/ic-arm.cc

index ef69f3542e35f4a995ad2eed26016c343d1e74a8..7063d6e7f3d092f58557a6fbef9e22edd76cfb2b 100644 (file)
@@ -174,9 +174,9 @@ void LoadIC::GenerateStringLength(MacroAssembler* masm) {
   // Check that the object is a string.
   __ ldr(r1, FieldMemOperand(r0, HeapObject::kMapOffset));
   __ ldrb(r1, FieldMemOperand(r1, Map::kInstanceTypeOffset));
-  __ and_(r1, r1, Operand(kIsNotStringMask));
+  __ and_(r3, r1, Operand(kIsNotStringMask));
   // The cast is to resolve the overload for the argument of 0x0.
-  __ cmp(r1, Operand(static_cast<int32_t>(kStringTag)));
+  __ cmp(r3, Operand(static_cast<int32_t>(kStringTag)));
   __ b(ne, &miss);
 
   __ and_(r1, r1, Operand(kStringSizeMask));