Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index 17a74bed6dd9006ba282b7c18154cf0242585907..b149df0336cabc2e74804be218e7ba5a33ed6816 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -4067,68 +4067,6 @@ void RecordWriteStub::CheckNeedsToInformIncrementalMarker( |
} |
-void StoreArrayLiteralElementStub::Generate(MacroAssembler* masm) { |
- // ----------- S t a t e ------------- |
- // -- r0 : element value to store |
- // -- r3 : element index as smi |
- // -- sp[0] : array literal index in function as smi |
- // -- sp[4] : array literal |
- // clobbers r1, r2, r4 |
- // ----------------------------------- |
- |
- Label element_done; |
- Label double_elements; |
- Label smi_element; |
- Label slow_elements; |
- Label fast_elements; |
- |
- // Get array literal index, array literal and its map. |
- __ ldr(r4, MemOperand(sp, 0 * kPointerSize)); |
- __ ldr(r1, MemOperand(sp, 1 * kPointerSize)); |
- __ ldr(r2, FieldMemOperand(r1, JSObject::kMapOffset)); |
- |
- __ CheckFastElements(r2, r5, &double_elements); |
- // FAST_*_SMI_ELEMENTS or FAST_*_ELEMENTS |
- __ JumpIfSmi(r0, &smi_element); |
- __ CheckFastSmiElements(r2, r5, &fast_elements); |
- |
- // Store into the array literal requires a elements transition. Call into |
- // the runtime. |
- __ bind(&slow_elements); |
- // call. |
- __ Push(r1, r3, r0); |
- __ ldr(r5, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
- __ ldr(r5, FieldMemOperand(r5, JSFunction::kLiteralsOffset)); |
- __ Push(r5, r4); |
- __ TailCallRuntime(Runtime::kStoreArrayLiteralElement, 5, 1); |
- |
- // Array literal has ElementsKind of FAST_*_ELEMENTS and value is an object. |
- __ bind(&fast_elements); |
- __ ldr(r5, FieldMemOperand(r1, JSObject::kElementsOffset)); |
- __ add(r6, r5, Operand::PointerOffsetFromSmiKey(r3)); |
- __ add(r6, r6, Operand(FixedArray::kHeaderSize - kHeapObjectTag)); |
- __ str(r0, MemOperand(r6, 0)); |
- // Update the write barrier for the array store. |
- __ RecordWrite(r5, r6, r0, kLRHasNotBeenSaved, kDontSaveFPRegs, |
- EMIT_REMEMBERED_SET, OMIT_SMI_CHECK); |
- __ Ret(); |
- |
- // Array literal has ElementsKind of FAST_*_SMI_ELEMENTS or FAST_*_ELEMENTS, |
- // and value is Smi. |
- __ bind(&smi_element); |
- __ ldr(r5, FieldMemOperand(r1, JSObject::kElementsOffset)); |
- __ add(r6, r5, Operand::PointerOffsetFromSmiKey(r3)); |
- __ str(r0, FieldMemOperand(r6, FixedArray::kHeaderSize)); |
- __ Ret(); |
- |
- // Array literal has ElementsKind of FAST_DOUBLE_ELEMENTS. |
- __ bind(&double_elements); |
- __ ldr(r5, FieldMemOperand(r1, JSObject::kElementsOffset)); |
- __ StoreNumberToDoubleElements(r0, r3, r5, r6, d0, &slow_elements); |
- __ Ret(); |
-} |
- |
- |
void StubFailureTrampolineStub::Generate(MacroAssembler* masm) { |
CEntryStub ces(isolate(), 1, kSaveFPRegs); |
__ Call(ces.GetCode(), RelocInfo::CODE_TARGET); |