| Index: src/arm/codegen-arm.cc
|
| ===================================================================
|
| --- src/arm/codegen-arm.cc (revision 6016)
|
| +++ src/arm/codegen-arm.cc (working copy)
|
| @@ -5592,6 +5592,12 @@
|
| __ tst(tmp2, Operand(kSmiTagMask));
|
| deferred->Branch(nz);
|
|
|
| + // Check that both indices are valid.
|
| + __ ldr(tmp2, FieldMemOperand(object, JSArray::kLengthOffset));
|
| + __ cmp(tmp2, index1);
|
| + __ cmp(tmp2, index2, hi);
|
| + deferred->Branch(ls);
|
| +
|
| // Bring the offsets into the fixed array in tmp1 into index1 and
|
| // index2.
|
| __ mov(tmp2, Operand(FixedArray::kHeaderSize - kHeapObjectTag));
|
|
|