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

Unified Diff: src/parser.cc

Issue 14721009: Track computed literal properties. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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
Index: src/parser.cc
diff --git a/src/parser.cc b/src/parser.cc
index 9c55ad7e719265dc535a6d5b3c7990c7a027994b..247e218067315c806255e4df35f0d5e3ad65fa8f 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -3998,7 +3998,8 @@ void Parser::BuildObjectLiteralConstantProperties(
// Ensure objects with doubles are always treated as nested objects.
// TODO(verwaest): Remove once we can store them inline.
- if (FLAG_track_double_fields && value->IsNumber()) {
+ if (FLAG_track_double_fields &&
+ (value->IsNumber() || value->IsUndefined())) {
danno 2013/06/06 07:54:19 Might want to extend the comment above, i.e. doubl
Toon Verwaest 2013/06/06 10:31:41 Done.
*may_store_doubles = true;
}

Powered by Google App Engine
This is Rietveld 408576698