Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index ccde8b6b227901c07fd5be6e9beb1d5537400963..5e3b62bf121d743a1903de347b0088cfb79958d1 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -1802,7 +1802,7 @@ 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 (expr->depth() > 1) { |
+ if (expr->depth() > 1 || length > JSObject::kInitialMaxFastElementArray) { |
__ mov(r0, Operand(Smi::FromInt(flags))); |
__ Push(r3, r2, r1, r0); |
__ CallRuntime(Runtime::kHiddenCreateArrayLiteral, 4); |