Index: src/parsing/preparser.h |
diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h |
index 38b3dc6faabe915ad677bf70244c107e7488d7c6..63c5c60df4f9bfe5b180310f9dd8b675b590d161 100644 |
--- a/src/parsing/preparser.h |
+++ b/src/parsing/preparser.h |
@@ -124,7 +124,7 @@ class PreParserIdentifier { |
friend class PreParserFactory; |
}; |
- |
+class PreParserStatement; |
class PreParserExpression { |
public: |
PreParserExpression() |
@@ -338,6 +338,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 { |
@@ -535,6 +536,8 @@ class PreParserStatement { |
Type code_; |
}; |
+V8_INLINE void PreParserExpression::set_parameter_init_block( |
+ PreParserStatement block) {} |
class PreParserFactory { |
public: |
@@ -1013,7 +1016,6 @@ class PreParser : public ParserBase<PreParser> { |
V8_INLINE void PrepareAsyncFunctionBody(PreParserStatementList body, |
FunctionKind kind, int pos) {} |
V8_INLINE void RewriteAsyncFunctionBody(PreParserStatementList body, |
- PreParserStatement block, |
PreParserExpression return_value, |
bool* ok) {} |
V8_INLINE PreParserExpression RewriteYieldStar(PreParserExpression generator, |
@@ -1080,11 +1082,10 @@ class PreParser : public ParserBase<PreParser> { |
int pos, FunctionKind kind, PreParserStatementList body, bool* ok) { |
ParseStatementList(body, Token::RBRACE, ok); |
} |
- V8_INLINE void CreateFunctionNameAssignment( |
- PreParserIdentifier function_name, int pos, |
+ V8_INLINE void CreateFunctionNameVariable( |
+ PreParserIdentifier function_name, |
FunctionLiteral::FunctionType function_type, |
- DeclarationScope* function_scope, PreParserStatementList result, |
- int index) {} |
+ DeclarationScope* function_scope) {} |
V8_INLINE PreParserExpression RewriteDoExpression(PreParserStatement body, |
int pos, bool* ok) { |
@@ -1367,11 +1368,6 @@ class PreParser : public ParserBase<PreParser> { |
return PreParserStatement::Default(); |
} |
- V8_INLINE PreParserStatement |
- BuildRejectPromiseOnException(PreParserStatement init_block) { |
- return PreParserStatement::Default(); |
- } |
- |
V8_INLINE void InsertSloppyBlockFunctionVarBindings(DeclarationScope* scope) { |
scope->HoistSloppyBlockFunctions(nullptr); |
} |
@@ -1561,10 +1557,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, |