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

Unified Diff: src/parsing/preparser.h

Issue 2169823002: FunctionState doesn't need to know AstNodeFactory. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 4 years, 5 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/parsing/parser-base.h ('k') | src/parsing/preparser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/preparser.h
diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h
index 280f1df5f855c4e096b926a342c1d71d43072367..1046459cce390fff6d31f197e5695b9e945ef714 100644
--- a/src/parsing/preparser.h
+++ b/src/parsing/preparser.h
@@ -1049,9 +1049,8 @@ class PreParser : public ParserBase<PreParserTraits> {
scope = NewScopeWithParent(scope, MODULE_SCOPE);
}
- PreParserFactory factory(nullptr);
FunctionState top_scope(&function_state_, &scope_state_, scope,
- kNormalFunction, &factory);
+ kNormalFunction);
bool ok = true;
int start_position = scanner()->peek_location().beg_pos;
parsing_module_ = is_module;
« no previous file with comments | « src/parsing/parser-base.h ('k') | src/parsing/preparser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698