Index: src/mips/full-codegen-mips.cc |
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc |
index ff280ce76c1013415ab7e046fd738ff6c6f79e33..21a96dc75d136c9064804da9e5a395e1f211a436 100644 |
--- a/src/mips/full-codegen-mips.cc |
+++ b/src/mips/full-codegen-mips.cc |
@@ -1805,18 +1805,7 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
__ lw(a3, FieldMemOperand(a3, JSFunction::kLiteralsOffset)); |
__ li(a2, Operand(Smi::FromInt(expr->literal_index()))); |
__ li(a1, Operand(constant_elements)); |
- if (has_fast_elements && constant_elements_values->map() == |
- isolate()->heap()->fixed_cow_array_map()) { |
- FastCloneShallowArrayStub stub( |
- isolate(), |
- FastCloneShallowArrayStub::COPY_ON_WRITE_ELEMENTS, |
- allocation_site_mode, |
- length); |
- __ CallStub(&stub); |
- __ IncrementCounter(isolate()->counters()->cow_arrays_created_stub(), |
- 1, a1, a2); |
- } else if (expr->depth() > 1 || Serializer::enabled(isolate()) || |
- length > FastCloneShallowArrayStub::kMaximumClonedLength) { |
+ if (expr->depth() > 1) { |
__ li(a0, Operand(Smi::FromInt(flags))); |
__ Push(a3, a2, a1, a0); |
__ CallRuntime(Runtime::kHiddenCreateArrayLiteral, 4); |