Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index e30025f90c7f6e137005835f9d34c1f5d8e0826f..2c44ab22824d06e01ce82170468a145d483feae5 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -5491,61 +5491,6 @@ void LCodeGen::DoDeferredAllocate(LAllocate* instr) { |
} |
-void LCodeGen::DoArrayLiteral(LArrayLiteral* instr) { |
- Handle<FixedArray> literals = instr->hydrogen()->literals(); |
- ElementsKind boilerplate_elements_kind = |
- instr->hydrogen()->boilerplate_elements_kind(); |
- AllocationSiteMode allocation_site_mode = |
- instr->hydrogen()->allocation_site_mode(); |
- |
- // Deopt if the array literal boilerplate ElementsKind is of a type different |
- // than the expected one. The check isn't necessary if the boilerplate has |
- // already been converted to TERMINAL_FAST_ELEMENTS_KIND. |
- if (CanTransitionToMoreGeneralFastElementsKind( |
- boilerplate_elements_kind, true)) { |
- __ LoadHeapObject(r1, instr->hydrogen()->boilerplate_object()); |
- // Load map into r2. |
- __ ldr(r2, FieldMemOperand(r1, HeapObject::kMapOffset)); |
- // Load the map's "bit field 2". |
- __ ldrb(r2, FieldMemOperand(r2, Map::kBitField2Offset)); |
- // Retrieve elements_kind from bit field 2. |
- __ ubfx(r2, r2, Map::kElementsKindShift, Map::kElementsKindBitCount); |
- __ cmp(r2, Operand(boilerplate_elements_kind)); |
- DeoptimizeIf(ne, instr->environment()); |
- } |
- |
- // Set up the parameters to the stub/runtime call. |
- __ LoadHeapObject(r3, literals); |
- __ mov(r2, Operand(Smi::FromInt(instr->hydrogen()->literal_index()))); |
- // Boilerplate already exists, constant elements are never accessed. |
- // Pass an empty fixed array. |
- __ mov(r1, Operand(isolate()->factory()->empty_fixed_array())); |
- |
- // Pick the right runtime function or stub to call. |
- int length = instr->hydrogen()->length(); |
- if (instr->hydrogen()->IsCopyOnWrite()) { |
- ASSERT(instr->hydrogen()->depth() == 1); |
- FastCloneShallowArrayStub::Mode mode = |
- FastCloneShallowArrayStub::COPY_ON_WRITE_ELEMENTS; |
- FastCloneShallowArrayStub stub(mode, DONT_TRACK_ALLOCATION_SITE, length); |
- CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
- } else if (instr->hydrogen()->depth() > 1) { |
- __ Push(r3, r2, r1); |
- CallRuntime(Runtime::kCreateArrayLiteral, 3, instr); |
- } else if (length > FastCloneShallowArrayStub::kMaximumClonedLength) { |
- __ Push(r3, r2, r1); |
- CallRuntime(Runtime::kCreateArrayLiteralShallow, 3, instr); |
- } else { |
- FastCloneShallowArrayStub::Mode mode = |
- boilerplate_elements_kind == FAST_DOUBLE_ELEMENTS |
- ? FastCloneShallowArrayStub::CLONE_DOUBLE_ELEMENTS |
- : FastCloneShallowArrayStub::CLONE_ELEMENTS; |
- FastCloneShallowArrayStub stub(mode, allocation_site_mode, length); |
- CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
- } |
-} |
- |
- |
void LCodeGen::DoToFastProperties(LToFastProperties* instr) { |
ASSERT(ToRegister(instr->value()).is(r0)); |
__ push(r0); |