Index: src/preparser.h |
diff --git a/src/preparser.h b/src/preparser.h |
index 33c737f8633e970cb3c63ea85a0efb3b5cc65be9..2f1b1bfdb6afeb212ef8c168be9868f0c6f91f08 100644 |
--- a/src/preparser.h |
+++ b/src/preparser.h |
@@ -1654,8 +1654,9 @@ class PreParser : public ParserBase<PreParserTraits> { |
// keyword and parameters, and have consumed the initial '{'. |
// At return, unless an error occurred, the scanner is positioned before the |
// the final '}'. |
- PreParseResult PreParseLazyFunction(LanguageMode language_mode, |
- FunctionKind kind, ParserRecorder* log); |
+ PreParseResult PreParseLazyFunction( |
+ LanguageMode language_mode, FunctionKind kind, ParserRecorder* log, |
+ Scanner::BookmarkScope* bookmark = nullptr); |
private: |
friend class PreParserTraits; |
@@ -1670,7 +1671,8 @@ class PreParser : public ParserBase<PreParserTraits> { |
// By making the 'exception handling' explicit, we are forced to check |
// for failure at the call sites. |
Statement ParseStatementListItem(bool* ok); |
- void ParseStatementList(int end_token, bool* ok); |
+ void ParseStatementList(int end_token, bool* ok, |
+ Scanner::BookmarkScope* bookmark = nullptr); |
Statement ParseStatement(bool* ok); |
Statement ParseSubStatement(bool* ok); |
Statement ParseFunctionDeclaration(bool* ok); |
@@ -1713,7 +1715,8 @@ class PreParser : public ParserBase<PreParserTraits> { |
bool name_is_strict_reserved, FunctionKind kind, int function_token_pos, |
FunctionLiteral::FunctionType function_type, |
FunctionLiteral::ArityRestriction arity_restriction, bool* ok); |
- void ParseLazyFunctionLiteralBody(bool* ok); |
+ void ParseLazyFunctionLiteralBody(bool* ok, |
+ Scanner::BookmarkScope* bookmark = nullptr); |
PreParserExpression ParseClassLiteral(PreParserIdentifier name, |
Scanner::Location class_name_location, |