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

Unified Diff: src/factory.cc

Issue 2651523002: [ast] Count index keys in AST not runtime. (Closed)
Patch Set: Treat getters with numbers as their name correctly. 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 | « src/ast/ast.cc ('k') | src/runtime/runtime-literals.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index fac61a6ee8a212b677d04e78f2f52a76c59e821c..8ee9f7dad6d927bf4b2f1bb28f7af22f8f13ab47 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -187,7 +187,7 @@ Handle<FixedArray> Factory::NewUninitializedFixedArray(int size) {
Handle<BoilerplateDescription> Factory::NewBoilerplateDescription(
int boilerplate, int all_properties, bool has_seen_proto) {
- DCHECK_GE(all_properties, boilerplate);
+ DCHECK_GE(all_properties, 0);
int backing_store_size = all_properties - (has_seen_proto ? 1 : 0);
DCHECK_GE(backing_store_size, 0);
« no previous file with comments | « src/ast/ast.cc ('k') | src/runtime/runtime-literals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698