| Index: src/mips/full-codegen-mips.cc
|
| diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc
|
| index 26a7c7fd8062dd086c3b99b520cb88d4b3a0fe1f..511f86193d095716232a86a1a2cb2a6009a63e76 100644
|
| --- a/src/mips/full-codegen-mips.cc
|
| +++ b/src/mips/full-codegen-mips.cc
|
| @@ -1666,8 +1666,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);
|
| @@ -1821,7 +1821,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);
|
|
|