Index: src/full-codegen/full-codegen.cc |
diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc |
index 5e2338c2b8d4b214e2fa0afa4eb312469a7ea3be..2edb9c6bd94bbce59600ba32001710dedb5cce0d 100644 |
--- a/src/full-codegen/full-codegen.cc |
+++ b/src/full-codegen/full-codegen.cc |
@@ -148,8 +148,8 @@ bool FullCodeGenerator::MustCreateObjectLiteralWithRuntime( |
// support copy-on-write (COW) elements for now. |
// TODO(mvstanton): make object literals support COW elements. |
return masm()->serializer_enabled() || |
- literal_flags != ObjectLiteral::kShallowProperties || |
- literal_flags != ObjectLiteral::kFastElements || |
+ (literal_flags & ObjectLiteral::kShallowProperties) == 0 || |
+ (literal_flags & ObjectLiteral::kFastElements) == 0 || |
expr->properties_count() > |
FastCloneShallowObjectStub::kMaximumClonedProperties; |
} |