Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Unified Diff: src/ast/ast.h

Issue 1838283003: Migrate FastCloneShallowObjectStub to TurboFan (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/ast/ast.cc » ('j') | src/code-stubs.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/ast.h
diff --git a/src/ast/ast.h b/src/ast/ast.h
index 539a848370a22f39b11dd13467f34c8308183c65..581215600a7c2fa9b5d5f0ecce28e127cfd1251c 100644
--- a/src/ast/ast.h
+++ b/src/ast/ast.h
@@ -1453,7 +1453,8 @@ class ObjectLiteral final : public MaterializedLiteral {
bool may_store_doubles() const { return may_store_doubles_; }
bool has_elements() const { return has_elements_; }
bool has_shallow_properties() const {
- return depth() == 1 && !has_elements() && !may_store_doubles();
+ return depth() == 1 && !has_elements() &&
+ (FLAG_unbox_double_fields || !may_store_doubles());
}
// Decide if a property should be in the object boilerplate.
« no previous file with comments | « no previous file | src/ast/ast.cc » ('j') | src/code-stubs.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698