Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index ae72ba7ad68102a6019610a843992107e654129e..2694be8bfa88d52d3ffd1666a2a15ea82ffbdea4 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -1657,8 +1657,8 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
? ObjectLiteral::kHasFunction |
: ObjectLiteral::kNoFlags; |
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) { |
__ movp(rdi, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); |
__ Push(FieldOperand(rdi, JSFunction::kLiteralsOffset)); |
@@ -1812,7 +1812,7 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
allocation_site_mode, |
length); |
__ CallStub(&stub); |
- } else if (expr->depth() > 1 || Serializer::enabled() || |
+ } else if (expr->depth() > 1 || Serializer::enabled(isolate()) || |
length > FastCloneShallowArrayStub::kMaximumClonedLength) { |
__ movp(rbx, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); |
__ Push(FieldOperand(rbx, JSFunction::kLiteralsOffset)); |