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

Unified Diff: src/parsing/preparser.h

Issue 2339453002: [parser] Refactor of Parse*Statement*, part 7 (Closed)
Patch Set: Change in comment 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 ddc74c53180867f6fb679e7aeaffe5ce90ca0673..9b40af13570fe403a6ad1883b7c5045152766868 100644
--- a/src/parsing/preparser.h
+++ b/src/parsing/preparser.h
@@ -825,7 +825,6 @@ class PreParser : public ParserBase<PreParser> {
Statement ParseClassDeclaration(ZoneList<const AstRawString*>* names,
bool default_export, bool* ok);
Statement ParseForStatement(ZoneList<const AstRawString*>* labels, bool* ok);
- Statement ParseTryStatement(bool* ok);
Expression ParseConditionalExpression(bool accept_IN, bool* ok);
Expression ParseObjectLiteral(bool* ok);
@@ -946,6 +945,13 @@ class PreParser : public ParserBase<PreParser> {
PreParserStatementList cases, Scope* scope) {
return PreParserStatement::Default();
}
+ V8_INLINE void RewriteCatchPattern(CatchInfo* catch_info, bool* ok) {}
+ V8_INLINE void ValidateCatchBlock(const CatchInfo& catch_info, bool* ok) {}
+ V8_INLINE PreParserStatement RewriteTryStatement(
+ PreParserStatement try_block, PreParserStatement catch_block,
+ PreParserStatement finally_block, const CatchInfo& catch_info, int pos) {
+ return PreParserStatement::Default();
+ }
V8_INLINE PreParserExpression RewriteDoExpression(PreParserStatement body,
int pos, bool* ok) {
@@ -1180,7 +1186,7 @@ class PreParser : public ParserBase<PreParser> {
}
V8_INLINE static PreParserStatement NullStatement() {
- return PreParserStatement::Default();
+ return PreParserStatement::Null();
}
V8_INLINE bool IsNullStatement(PreParserStatement stmt) {
@@ -1192,7 +1198,7 @@ class PreParser : public ParserBase<PreParser> {
}
V8_INLINE static PreParserStatement NullBlock() {
- return PreParserStatement::Default();
+ return PreParserStatement::Null();
}
V8_INLINE PreParserIdentifier EmptyIdentifierString() const {
« 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