Commit 3cd77583 authored by erik.corry@gmail.com's avatar erik.corry@gmail.com

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
parent d08b095b
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment