Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index 81b3b0be7ddbe520f39efa15f90533cfbaedb0d4..76225da08271ce1b3d3dcde16ecf6170fa95cb0e 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -1628,7 +1628,7 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
: ObjectLiteral::kNoFlags; |
int properties_count = constant_properties->length() / 2; |
if (expr->may_store_doubles() || expr->depth() > 1 || |
- Serializer::enabled(isolate()) || flags != ObjectLiteral::kFastElements || |
+ masm()->serializer_enabled() || flags != ObjectLiteral::kFastElements || |
properties_count > FastCloneShallowObjectStub::kMaximumClonedProperties) { |
__ movp(rdi, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); |
__ Push(FieldOperand(rdi, JSFunction::kLiteralsOffset)); |