| Index: src/full-codegen/full-codegen.cc
|
| diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc
|
| index e9a043ab343ad16aaf27223e3ef97a67a33dbd8e..9a38642df5910a483ca3f5e7dc6ab27051e2513c 100644
|
| --- a/src/full-codegen/full-codegen.cc
|
| +++ b/src/full-codegen/full-codegen.cc
|
| @@ -144,13 +144,8 @@ int FullCodeGenerator::NewHandlerTableEntry() {
|
|
|
| bool FullCodeGenerator::MustCreateObjectLiteralWithRuntime(
|
| ObjectLiteral* expr) const {
|
| - // FastCloneShallowObjectStub doesn't copy elements, and object literals don't
|
| - // support copy-on-write (COW) elements for now.
|
| - // TODO(mvstanton): make object literals support COW elements.
|
| - return masm()->serializer_enabled() || !expr->fast_elements() ||
|
| - !expr->has_shallow_properties() ||
|
| - expr->properties_count() >
|
| - FastCloneShallowObjectStub::kMaximumClonedProperties;
|
| + return masm()->serializer_enabled() ||
|
| + !FastCloneShallowObjectStub::IsSupported(expr);
|
| }
|
|
|
|
|
|
|