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

Unified Diff: src/parsing/parser-base.h

Issue 2266973002: Allocate script scopes using a separate constructor (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: update test 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 | « src/ast/scopes.cc ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/parser-base.h
diff --git a/src/parsing/parser-base.h b/src/parsing/parser-base.h
index e629ef2cbe588b80dbbdbdd10d7b31ff634ed8d5..c221d931cce4575eea2c337b994973a16ea786fb 100644
--- a/src/parsing/parser-base.h
+++ b/src/parsing/parser-base.h
@@ -607,7 +607,7 @@ class ParserBase : public Traits {
};
DeclarationScope* NewScriptScope() {
- return new (zone()) DeclarationScope(zone(), nullptr, SCRIPT_SCOPE);
+ return new (zone()) DeclarationScope(zone());
}
DeclarationScope* NewVarblockScope() {
« no previous file with comments | « src/ast/scopes.cc ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698