| Index: src/mips/full-codegen-mips.cc
|
| diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc
|
| index 9df3da88fbb46f3764decbce109532ed61869e72..59926887db722a23fef626b30c028c6ced77c0d2 100644
|
| --- a/src/mips/full-codegen-mips.cc
|
| +++ b/src/mips/full-codegen-mips.cc
|
| @@ -1689,8 +1689,8 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
|
| : ObjectLiteral::kNoFlags;
|
| __ li(a0, Operand(Smi::FromInt(flags)));
|
| int properties_count = constant_properties->length() / 2;
|
| - if (expr->may_store_doubles() || expr->depth() > 1 || Serializer::enabled() ||
|
| - flags != ObjectLiteral::kFastElements ||
|
| + if (expr->may_store_doubles() || expr->depth() > 1 ||
|
| + Serializer::enabled(isolate()) || flags != ObjectLiteral::kFastElements ||
|
| properties_count > FastCloneShallowObjectStub::kMaximumClonedProperties) {
|
| __ Push(a3, a2, a1, a0);
|
| __ CallRuntime(Runtime::kHiddenCreateObjectLiteral, 4);
|
| @@ -1844,7 +1844,7 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) {
|
| __ CallStub(&stub);
|
| __ IncrementCounter(isolate()->counters()->cow_arrays_created_stub(),
|
| 1, a1, a2);
|
| - } else if (expr->depth() > 1 || Serializer::enabled() ||
|
| + } else if (expr->depth() > 1 || Serializer::enabled(isolate()) ||
|
| length > FastCloneShallowArrayStub::kMaximumClonedLength) {
|
| __ li(a0, Operand(Smi::FromInt(flags)));
|
| __ Push(a3, a2, a1, a0);
|
|
|