Index: src/a64/code-stubs-a64.cc |
diff --git a/src/a64/code-stubs-a64.cc b/src/a64/code-stubs-a64.cc |
index 6a74e7ad0e12ae3de8c0afa4740edec426cba982..2996df9b82d6863bb54e67739a22c9ba7415f4c8 100644 |
--- a/src/a64/code-stubs-a64.cc |
+++ b/src/a64/code-stubs-a64.cc |
@@ -1989,77 +1989,6 @@ void FunctionPrototypeStub::Generate(MacroAssembler* masm) { |
} |
-void StoreArrayLengthStub::Generate(MacroAssembler* masm) { |
- ASM_LOCATION("StoreArrayLengthStub::Generate"); |
- // 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 |
- // -- x2 : receiver |
- // -- x1 : key |
- // -- x0 : value |
- // ----------------------------------- |
- Register key = x1; |
- receiver = x2; |
- value = x0; |
- __ Cmp(key, Operand(masm->isolate()->factory()->length_string())); |
- __ B(ne, &miss); |
- } else { |
- ASSERT(kind() == Code::STORE_IC); |
- // ----------- S t a t e ------------- |
- // -- lr : return address |
- // -- x2 : key |
- // -- x1 : receiver |
- // -- x0 : value |
- // ----------------------------------- |
- receiver = x1; |
- value = x0; |
- } |
- |
- // Check that the receiver isn't a smi. |
- __ JumpIfSmi(receiver, &miss); |
- |
- // Check that the object is a JS array. |
- __ CompareObjectType(receiver, x10, x11, 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(x10, FieldMemOperand(receiver, JSArray::kElementsOffset)); |
- __ CompareObjectType(x10, x11, x12, FIXED_ARRAY_TYPE); |
- __ B(ne, &miss); |
- |
- // Check that the array has fast properties, otherwise the length |
- // property might have been redefined. |
- __ Ldr(x10, FieldMemOperand(receiver, JSArray::kPropertiesOffset)); |
- __ Ldr(x10, FieldMemOperand(x10, FixedArray::kMapOffset)); |
- __ CompareRoot(x10, 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())); |
-} |
- |
- |
void InstanceofStub::Generate(MacroAssembler* masm) { |
// Stack on entry: |
// jssp[0]: function. |