Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index 3679a6f7310d01e029eb6ef43a158c1ce475e6cf..0a3f532fd362205905b00c567584554877ec8bd6 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -1819,31 +1819,12 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
__ ldr(r3, FieldMemOperand(r3, JSFunction::kLiteralsOffset)); |
__ mov(r2, Operand(Smi::FromInt(expr->literal_index()))); |
__ mov(r1, Operand(constant_elements)); |
- if (has_fast_elements && constant_elements_values->map() == |
- isolate()->heap()->fixed_cow_array_map()) { |
- FastCloneShallowArrayStub stub( |
- FastCloneShallowArrayStub::COPY_ON_WRITE_ELEMENTS, |
- allocation_site_mode, |
- length); |
- __ CallStub(&stub); |
- __ IncrementCounter( |
- isolate()->counters()->cow_arrays_created_stub(), 1, r1, r2); |
- } else if (expr->depth() > 1 || Serializer::enabled() || |
- length > FastCloneShallowArrayStub::kMaximumClonedLength) { |
+ if (expr->depth() > 1) { |
__ mov(r0, Operand(Smi::FromInt(flags))); |
__ Push(r3, r2, r1, r0); |
__ CallRuntime(Runtime::kHiddenCreateArrayLiteral, 4); |
} else { |
- ASSERT(IsFastSmiOrObjectElementsKind(constant_elements_kind) || |
- FLAG_smi_only_arrays); |
- FastCloneShallowArrayStub::Mode mode = |
- FastCloneShallowArrayStub::CLONE_ANY_ELEMENTS; |
- |
- if (has_fast_elements) { |
- mode = FastCloneShallowArrayStub::CLONE_ELEMENTS; |
- } |
- |
- FastCloneShallowArrayStub stub(mode, allocation_site_mode, length); |
+ FastCloneShallowArrayStub stub(allocation_site_mode); |
__ CallStub(&stub); |
} |