Index: src/parsing/preparser.h |
diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h |
index f118139706da1c3d05379521a2e723495ff21435..293db7456884e6d55aa3bc40c5453de00c2601c8 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: |
@@ -633,9 +636,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, |
@@ -1009,8 +1012,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(); |
} |
@@ -1073,11 +1075,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) { |
@@ -1531,10 +1532,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, |