Index: src/mips/full-codegen-mips.cc |
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc |
index cbd0788121225de87634145e3225d6091ab6b235..c6a3f1faf8e65d224b54c75c15fadd6507564df3 100644 |
--- a/src/mips/full-codegen-mips.cc |
+++ b/src/mips/full-codegen-mips.cc |
@@ -1793,13 +1793,11 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
__ CallStub(&stub); |
__ IncrementCounter(isolate()->counters()->cow_arrays_created_stub(), |
1, a1, a2); |
- } else if (expr->depth() > 1) { |
+ } else if (expr->depth() > 1 || |
+ Serializer::enabled() || |
+ length > FastCloneShallowArrayStub::kMaximumClonedLength) { |
__ Push(a3, a2, a1); |
__ CallRuntime(Runtime::kCreateArrayLiteral, 3); |
- } else if (Serializer::enabled() || |
- length > FastCloneShallowArrayStub::kMaximumClonedLength) { |
- __ Push(a3, a2, a1); |
- __ CallRuntime(Runtime::kCreateArrayLiteralShallow, 3); |
} else { |
ASSERT(IsFastSmiOrObjectElementsKind(constant_elements_kind) || |
FLAG_smi_only_arrays); |