| Index: src/arm/ic-arm.cc
|
| ===================================================================
|
| --- src/arm/ic-arm.cc (revision 5553)
|
| +++ src/arm/ic-arm.cc (working copy)
|
| @@ -1004,8 +1004,9 @@
|
| // Check that the receiver isn't a smi.
|
| __ BranchOnSmi(r1, &slow);
|
|
|
| - // Check that the key is a smi.
|
| - __ BranchOnNotSmi(r0, &slow);
|
| + // Check that the key is an array index, that is Uint32.
|
| + __ tst(r0, Operand(kSmiTagMask | kSmiSignMask));
|
| + __ b(ne, &slow);
|
|
|
| // Get the map of the receiver.
|
| __ ldr(r2, FieldMemOperand(r1, HeapObject::kMapOffset));
|
|
|