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

Unified Diff: src/ast/ast.cc

Issue 2651533002: [ast] Simplify NewBoilerplateDescription. (Closed)
Patch Set: Fix DCHECK. Created 3 years, 11 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/factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/ast.cc
diff --git a/src/ast/ast.cc b/src/ast/ast.cc
index d56ef0fbfeb8bf43457d31537ec62922709a12eb..bb6b8f39d935ffc9fbcb7854e3286bbf5f192d2d 100644
--- a/src/ast/ast.cc
+++ b/src/ast/ast.cc
@@ -603,9 +603,9 @@ void ObjectLiteral::BuildConstantProperties(Isolate* isolate) {
}
Handle<BoilerplateDescription> constant_properties =
- isolate->factory()->NewBoilerplateDescription(
- boilerplate_properties_, properties()->length() - index_keys,
- has_seen_proto);
+ isolate->factory()->NewBoilerplateDescription(boilerplate_properties_,
+ properties()->length(),
+ index_keys, has_seen_proto);
int position = 0;
for (int i = 0; i < properties()->length(); i++) {
« no previous file with comments | « no previous file | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698