| Index: src/a64/full-codegen-a64.cc
|
| diff --git a/src/a64/full-codegen-a64.cc b/src/a64/full-codegen-a64.cc
|
| index a68288b7084a4cd188e5131a1c3e9653fe73675f..db1cb50ae71747a8b48c18355cf816f5d49c06ed 100644
|
| --- a/src/a64/full-codegen-a64.cc
|
| +++ b/src/a64/full-codegen-a64.cc
|
| @@ -1790,13 +1790,11 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) {
|
| __ CallStub(&stub);
|
| __ IncrementCounter(
|
| isolate()->counters()->cow_arrays_created_stub(), 1, x10, x11);
|
| - } else if (expr->depth() > 1) {
|
| - __ Push(x3, x2, x1);
|
| - __ CallRuntime(Runtime::kCreateArrayLiteral, 3);
|
| - } else if (Serializer::enabled() ||
|
| + } else if (expr->depth() > 1 ||
|
| + Serializer::enabled() ||
|
| length > FastCloneShallowArrayStub::kMaximumClonedLength) {
|
| __ Push(x3, x2, x1);
|
| - __ CallRuntime(Runtime::kCreateArrayLiteralShallow, 3);
|
| + __ CallRuntime(Runtime::kCreateArrayLiteral, 3);
|
| } else {
|
| ASSERT(IsFastSmiOrObjectElementsKind(constant_elements_kind) ||
|
| FLAG_smi_only_arrays);
|
|
|