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:
parent
d08b095bce
commit
3cd77583e1
@ -174,9 +174,9 @@ void LoadIC::GenerateStringLength(MacroAssembler* masm) {
|
|||||||
// Check that the object is a string.
|
// Check that the object is a string.
|
||||||
__ ldr(r1, FieldMemOperand(r0, HeapObject::kMapOffset));
|
__ ldr(r1, FieldMemOperand(r0, HeapObject::kMapOffset));
|
||||||
__ ldrb(r1, FieldMemOperand(r1, Map::kInstanceTypeOffset));
|
__ 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.
|
// 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);
|
__ b(ne, &miss);
|
||||||
|
|
||||||
__ and_(r1, r1, Operand(kStringSizeMask));
|
__ and_(r1, r1, Operand(kStringSizeMask));
|
||||||
|
Loading…
Reference in New Issue
Block a user