| Index: src/mips/full-codegen-mips.cc
|
| diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc
|
| index 3e7c8da7a347d9d315ad7465af4bd232c1b5a57e..1fc2b4199948749077d40ae0d4b24cc1af79f620 100644
|
| --- a/src/mips/full-codegen-mips.cc
|
| +++ b/src/mips/full-codegen-mips.cc
|
| @@ -1737,7 +1737,6 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) {
|
| __ lw(a3, FieldMemOperand(a3, JSFunction::kLiteralsOffset));
|
| __ li(a2, Operand(Smi::FromInt(expr->literal_index())));
|
| __ li(a1, Operand(constant_elements));
|
| - __ Push(a3, a2, a1);
|
| if (has_fast_elements && constant_elements_values->map() ==
|
| isolate()->heap()->fixed_cow_array_map()) {
|
| FastCloneShallowArrayStub stub(
|
| @@ -1748,8 +1747,11 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) {
|
| __ IncrementCounter(isolate()->counters()->cow_arrays_created_stub(),
|
| 1, a1, a2);
|
| } else if (expr->depth() > 1) {
|
| + __ Push(a3, a2, a1);
|
| __ CallRuntime(Runtime::kCreateArrayLiteral, 3);
|
| - } else if (length > FastCloneShallowArrayStub::kMaximumClonedLength) {
|
| + } else if (Serializer::enabled() ||
|
| + length > FastCloneShallowArrayStub::kMaximumClonedLength) {
|
| + __ Push(a3, a2, a1);
|
| __ CallRuntime(Runtime::kCreateArrayLiteralShallow, 3);
|
| } else {
|
| ASSERT(IsFastSmiOrObjectElementsKind(constant_elements_kind) ||
|
|
|