| Index: src/preparser.h
|
| diff --git a/src/preparser.h b/src/preparser.h
|
| index 8184bd8d5f5af2bc93a872c80c71ab3b7cce8001..4684526a7c2c3f5f15d7d5fd22cc245fa227e1d9 100644
|
| --- a/src/preparser.h
|
| +++ b/src/preparser.h
|
| @@ -1821,8 +1821,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;
|
| @@ -1837,7 +1838,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);
|
| @@ -1879,7 +1881,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,
|
|
|