Fix mistake in ARM version of string length stub.

Review URL: http://codereview.chromium.org/8193

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@606 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
erik.corry@gmail.com 2008-10-27 14:01:04 +00:00
parent d08b095bce
commit 3cd77583e1

View 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));