| Index: src/arm/ic-arm.cc
|
| diff --git a/src/arm/ic-arm.cc b/src/arm/ic-arm.cc
|
| index 1867bafab914097401c409e58911a39a85e2b77a..4a5d9204d480adb768d96a1d94eaec7f621c5f1f 100644
|
| --- a/src/arm/ic-arm.cc
|
| +++ b/src/arm/ic-arm.cc
|
| @@ -1538,62 +1538,6 @@ void StoreIC::GenerateMiss(MacroAssembler* masm) {
|
| }
|
|
|
|
|
| -void StoreIC::GenerateArrayLength(MacroAssembler* masm) {
|
| - // ----------- S t a t e -------------
|
| - // -- r0 : value
|
| - // -- r1 : receiver
|
| - // -- r2 : name
|
| - // -- lr : return address
|
| - // -----------------------------------
|
| - //
|
| - // This accepts as a receiver anything JSArray::SetElementsLength accepts
|
| - // (currently anything except for external arrays which means anything with
|
| - // elements of FixedArray type). Value must be a number, but only smis are
|
| - // accepted as the most common case.
|
| -
|
| - Label miss;
|
| -
|
| - Register receiver = r1;
|
| - Register value = r0;
|
| - Register scratch = r3;
|
| -
|
| - // Check that the receiver isn't a smi.
|
| - __ JumpIfSmi(receiver, &miss);
|
| -
|
| - // Check that the object is a JS array.
|
| - __ CompareObjectType(receiver, scratch, scratch, JS_ARRAY_TYPE);
|
| - __ b(ne, &miss);
|
| -
|
| - // Check that elements are FixedArray.
|
| - // We rely on StoreIC_ArrayLength below to deal with all types of
|
| - // fast elements (including COW).
|
| - __ ldr(scratch, FieldMemOperand(receiver, JSArray::kElementsOffset));
|
| - __ CompareObjectType(scratch, scratch, scratch, FIXED_ARRAY_TYPE);
|
| - __ b(ne, &miss);
|
| -
|
| - // Check that the array has fast properties, otherwise the length
|
| - // property might have been redefined.
|
| - __ ldr(scratch, FieldMemOperand(receiver, JSArray::kPropertiesOffset));
|
| - __ ldr(scratch, FieldMemOperand(scratch, FixedArray::kMapOffset));
|
| - __ CompareRoot(scratch, Heap::kHashTableMapRootIndex);
|
| - __ b(eq, &miss);
|
| -
|
| - // Check that value is a smi.
|
| - __ JumpIfNotSmi(value, &miss);
|
| -
|
| - // Prepare tail call to StoreIC_ArrayLength.
|
| - __ Push(receiver, value);
|
| -
|
| - ExternalReference ref =
|
| - ExternalReference(IC_Utility(kStoreIC_ArrayLength), masm->isolate());
|
| - __ TailCallExternalReference(ref, 2, 1);
|
| -
|
| - __ bind(&miss);
|
| -
|
| - GenerateMiss(masm);
|
| -}
|
| -
|
| -
|
| void StoreIC::GenerateNormal(MacroAssembler* masm) {
|
| // ----------- S t a t e -------------
|
| // -- r0 : value
|
|
|