Index: src/preparser.h |
diff --git a/src/preparser.h b/src/preparser.h |
index c60318be3e35b02e965becaac68f05ec40007840..b6d322d5803a961e272a735d8950c926846100a2 100644 |
--- a/src/preparser.h |
+++ b/src/preparser.h |
@@ -1750,8 +1750,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; |
@@ -1766,7 +1767,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); |
@@ -1808,7 +1810,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, |