Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index 81da4658154f791e0915508b6aeafefa3b3932a4..ca8e001af8d0b3e405b4ef46839b2367b8c48677 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -2120,77 +2120,6 @@ void FunctionPrototypeStub::Generate(MacroAssembler* masm) { |
} |
-void StoreArrayLengthStub::Generate(MacroAssembler* masm) { |
- // 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; |
- Register value; |
- if (kind() == Code::KEYED_STORE_IC) { |
- // ----------- S t a t e ------------- |
- // -- lr : return address |
- // -- r0 : value |
- // -- r1 : key |
- // -- r2 : receiver |
- // ----------------------------------- |
- __ cmp(r1, Operand(masm->isolate()->factory()->length_string())); |
- __ b(ne, &miss); |
- receiver = r2; |
- value = r0; |
- } else { |
- ASSERT(kind() == Code::STORE_IC); |
- // ----------- S t a t e ------------- |
- // -- lr : return address |
- // -- r0 : value |
- // -- r1 : receiver |
- // -- r2 : key |
- // ----------------------------------- |
- receiver = r1; |
- 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(IC::kStoreIC_ArrayLength), masm->isolate()); |
- __ TailCallExternalReference(ref, 2, 1); |
- |
- __ bind(&miss); |
- |
- StubCompiler::TailCallBuiltin( |
- masm, BaseLoadStoreStubCompiler::MissBuiltin(kind())); |
-} |
- |
- |
Register InstanceofStub::left() { return r0; } |