Commit 95cb4e04 authored by mvstanton's avatar mvstanton Committed by Commit bot

ObjectLiterals in full code went to the runtime unnecessarily.

BUG=
R=mstarzinger@chromium.org

Review URL: https://codereview.chromium.org/1638333002

Cr-Commit-Position: refs/heads/master@{#33546}
parent e3014ad8
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment