| Index: src/arm64/full-codegen-arm64.cc
|
| diff --git a/src/arm64/full-codegen-arm64.cc b/src/arm64/full-codegen-arm64.cc
|
| index 2099fde186898ae49305d47dfaa83667b7fbbeca..fee1f491da8d8a3abdb837611aeff29d2a2f95f7 100644
|
| --- a/src/arm64/full-codegen-arm64.cc
|
| +++ b/src/arm64/full-codegen-arm64.cc
|
| @@ -1683,8 +1683,8 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
|
| int properties_count = constant_properties->length() / 2;
|
| const int max_cloned_properties =
|
| FastCloneShallowObjectStub::kMaximumClonedProperties;
|
| - 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 > max_cloned_properties) {
|
| __ Push(x3, x2, x1, x0);
|
| __ CallRuntime(Runtime::kHiddenCreateObjectLiteral, 4);
|
| @@ -1834,7 +1834,7 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) {
|
| __ CallStub(&stub);
|
| __ IncrementCounter(
|
| isolate()->counters()->cow_arrays_created_stub(), 1, x10, x11);
|
| - } else if ((expr->depth() > 1) || Serializer::enabled() ||
|
| + } else if ((expr->depth() > 1) || Serializer::enabled(isolate()) ||
|
| length > FastCloneShallowArrayStub::kMaximumClonedLength) {
|
| __ Mov(x0, Smi::FromInt(flags));
|
| __ Push(x3, x2, x1, x0);
|
|
|