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

Unified Diff: src/ast/scopes.h

Issue 2221003002: Don't preallocate temps, params, decls space if we're ScopeInfo backed (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 4 years, 4 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/scopes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/scopes.h
diff --git a/src/ast/scopes.h b/src/ast/scopes.h
index 5be698fc1027b767726716467f95da37f142a5db..3650e2bdd8f82cf671eca910aff3c5429556fa04 100644
--- a/src/ast/scopes.h
+++ b/src/ast/scopes.h
@@ -819,6 +819,7 @@ class DeclarationScope : public Scope {
// adjusting the scope of temporaries used when desugaring parameter
// initializers.
void AddTemporary(Variable* var) {
+ DCHECK(!already_resolved());
// Temporaries are only placed in ClosureScopes.
DCHECK_EQ(GetClosureScope(), this);
temps_.Add(var, zone());
« no previous file with comments | « no previous file | src/ast/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698