Index: src/mips/full-codegen-mips.cc |
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc |
index 7310eee88a4e2ec7952cd6346403b109cf928447..97df4714581319b29b0f1d7e9bf70ee96cc349b6 100644 |
--- a/src/mips/full-codegen-mips.cc |
+++ b/src/mips/full-codegen-mips.cc |
@@ -1815,7 +1815,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 (expr->depth() > 1) { |
+ if (expr->depth() > 1 || length > JSObject::kInitialMaxFastElementArray) { |
__ li(a0, Operand(Smi::FromInt(flags))); |
__ Push(a3, a2, a1, a0); |
__ CallRuntime(Runtime::kHiddenCreateArrayLiteral, 4); |