| Index: src/parsing/preparser.h
|
| diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h
|
| index 30117a685b5af4c476e8dee4acbcb31ca1901ea8..74d95723f1888100dcb198750a5e519cd5f8f321 100644
|
| --- a/src/parsing/preparser.h
|
| +++ b/src/parsing/preparser.h
|
| @@ -123,7 +123,7 @@ class PreParserIdentifier {
|
| friend class PreParserFactory;
|
| };
|
|
|
| -
|
| +class PreParserStatement;
|
| class PreParserExpression {
|
| public:
|
| PreParserExpression()
|
| @@ -337,6 +337,7 @@ class PreParserExpression {
|
|
|
| int position() const { return kNoSourcePosition; }
|
| void set_function_token_position(int position) {}
|
| + void set_parameter_init_block(PreParserStatement block);
|
|
|
| private:
|
| enum Type {
|
| @@ -534,6 +535,8 @@ class PreParserStatement {
|
| Type code_;
|
| };
|
|
|
| +V8_INLINE void PreParserExpression::set_parameter_init_block(
|
| + PreParserStatement block) {}
|
|
|
| class PreParserFactory {
|
| public:
|
| @@ -636,9 +639,9 @@ class PreParserFactory {
|
| // default value inside an arrow function parameter list.
|
| return PreParserExpression::Assignment(left.variables_);
|
| }
|
| - PreParserExpression NewYield(PreParserExpression generator_object,
|
| - PreParserExpression expression, int pos,
|
| - Yield::OnException on_exception) {
|
| + PreParserExpression NewYield(PreParserExpression expression, int pos,
|
| + Yield::OnException on_exception,
|
| + Yield::YieldType type) {
|
| return PreParserExpression::Default();
|
| }
|
| PreParserExpression NewConditional(PreParserExpression condition,
|
| @@ -1012,8 +1015,7 @@ class PreParser : public ParserBase<PreParser> {
|
| PreParserStatement block,
|
| PreParserExpression return_value,
|
| bool* ok) {}
|
| - V8_INLINE PreParserExpression RewriteYieldStar(PreParserExpression generator,
|
| - PreParserExpression expression,
|
| + V8_INLINE PreParserExpression RewriteYieldStar(PreParserExpression expression,
|
| int pos) {
|
| return PreParserExpression::Default();
|
| }
|
| @@ -1076,11 +1078,10 @@ class PreParser : public ParserBase<PreParser> {
|
| int pos, FunctionKind kind, PreParserStatementList body, bool* ok) {
|
| ParseStatementList(body, Token::RBRACE, ok);
|
| }
|
| - V8_INLINE void CreateFunctionNameAssignment(
|
| + V8_INLINE void CreateFunctionNameVariable(
|
| PreParserIdentifier function_name, int pos,
|
| FunctionLiteral::FunctionType function_type,
|
| - DeclarationScope* function_scope, PreParserStatementList result,
|
| - int index) {}
|
| + DeclarationScope* function_scope) {}
|
|
|
| V8_INLINE PreParserExpression RewriteDoExpression(PreParserStatement body,
|
| int pos, bool* ok) {
|
| @@ -1534,10 +1535,6 @@ class PreParser : public ParserBase<PreParser> {
|
| return PreParserStatement::Jump();
|
| }
|
|
|
| - V8_INLINE void AddParameterInitializationBlock(
|
| - const PreParserFormalParameters& parameters, PreParserStatementList body,
|
| - bool is_async, bool* ok) {}
|
| -
|
| V8_INLINE void AddFormalParameter(PreParserFormalParameters* parameters,
|
| PreParserExpression pattern,
|
| PreParserExpression initializer,
|
|
|