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

Unified Diff: src/parsing/preparser.h

Issue 2372733002: [parser] Refactor of (Parse|Desugar)*(Async|Arrow)* (Closed)
Patch Set: Rebase Created 4 years, 3 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 3785f5820a70c414ae699f364e411af1b7d4d48d..12a216cfef8c4f9f16f5659b4d58fe2202743364 100644
--- a/src/parsing/preparser.h
+++ b/src/parsing/preparser.h
@@ -838,9 +838,6 @@ class PreParser : public ParserBase<PreParser> {
// By making the 'exception handling' explicit, we are forced to check
// for failure at the call sites.
Statement ParseFunctionDeclaration(bool* ok);
- Statement ParseAsyncFunctionDeclaration(ZoneList<const AstRawString*>* names,
- bool default_export, bool* ok);
- Expression ParseAsyncFunctionExpression(bool* ok);
Statement ParseClassDeclaration(ZoneList<const AstRawString*>* names,
bool default_export, bool* ok);
Expression ParseConditionalExpression(bool accept_IN, bool* ok);
@@ -889,10 +886,6 @@ class PreParser : public ParserBase<PreParser> {
V8_INLINE void MarkCollectedTailCallExpressions() {}
V8_INLINE void MarkTailPosition(PreParserExpression expression) {}
- void ParseAsyncArrowSingleExpressionBody(PreParserStatementList body,
- bool accept_IN,
- int pos, bool* ok);
-
V8_INLINE PreParserExpressionList
PrepareSpreadArguments(PreParserExpressionList list) {
return list;
@@ -926,6 +919,12 @@ class PreParser : public ParserBase<PreParser> {
RewriteAwaitExpression(PreParserExpression value, int pos) {
return value;
}
+ V8_INLINE void PrepareAsyncFunctionBody(PreParserStatementList body,
+ FunctionKind kind, int pos) {}
+ V8_INLINE void RewriteAsyncFunctionBody(PreParserStatementList body,
+ PreParserStatement block,
+ PreParserExpression return_value,
+ bool* ok) {}
V8_INLINE PreParserExpression RewriteYieldStar(PreParserExpression generator,
PreParserExpression expression,
int pos) {
@@ -1362,13 +1361,12 @@ class PreParser : public ParserBase<PreParser> {
}
}
- V8_INLINE void ParseArrowFunctionFormalParameterList(
+ V8_INLINE void DeclareArrowFunctionFormalParameters(
PreParserFormalParameters* parameters, PreParserExpression params,
const Scanner::Location& params_loc, Scanner::Location* duplicate_loc,
- const Scope::Snapshot& scope_snapshot, bool* ok) {
+ bool* ok) {
// TODO(wingo): Detect duplicated identifiers in paramlists. Detect
- // parameter
- // lists that are too long.
+ // parameter lists that are too long.
}
V8_INLINE void ReindexLiterals(const PreParserFormalParameters& parameters) {}
« 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