OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_PARSING_PREPARSER_H | 5 #ifndef V8_PARSING_PREPARSER_H |
6 #define V8_PARSING_PREPARSER_H | 6 #define V8_PARSING_PREPARSER_H |
7 | 7 |
8 #include "src/ast/ast.h" | 8 #include "src/ast/ast.h" |
9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
10 #include "src/parsing/parser-base.h" | 10 #include "src/parsing/parser-base.h" |
(...skipping 652 matching lines...) Loading... |
663 } | 663 } |
664 PreParserExpression NewCallNew(PreParserExpression expression, | 664 PreParserExpression NewCallNew(PreParserExpression expression, |
665 PreParserExpressionList arguments, | 665 PreParserExpressionList arguments, |
666 int pos) { | 666 int pos) { |
667 return PreParserExpression::Default(); | 667 return PreParserExpression::Default(); |
668 } | 668 } |
669 PreParserStatement NewReturnStatement(PreParserExpression expression, | 669 PreParserStatement NewReturnStatement(PreParserExpression expression, |
670 int pos) { | 670 int pos) { |
671 return PreParserStatement::Jump(); | 671 return PreParserStatement::Jump(); |
672 } | 672 } |
| 673 PreParserStatement NewAsyncReturnStatement(PreParserExpression expression, |
| 674 int pos) { |
| 675 return PreParserStatement::Jump(); |
| 676 } |
673 PreParserExpression NewFunctionLiteral( | 677 PreParserExpression NewFunctionLiteral( |
674 PreParserIdentifier name, Scope* scope, PreParserStatementList body, | 678 PreParserIdentifier name, Scope* scope, PreParserStatementList body, |
675 int materialized_literal_count, int expected_property_count, | 679 int materialized_literal_count, int expected_property_count, |
676 int parameter_count, int function_length, | 680 int parameter_count, int function_length, |
677 FunctionLiteral::ParameterFlag has_duplicate_parameters, | 681 FunctionLiteral::ParameterFlag has_duplicate_parameters, |
678 FunctionLiteral::FunctionType function_type, | 682 FunctionLiteral::FunctionType function_type, |
679 FunctionLiteral::EagerCompileHint eager_compile_hint, int position, | 683 FunctionLiteral::EagerCompileHint eager_compile_hint, int position, |
680 bool has_braces, int function_literal_id) { | 684 bool has_braces, int function_literal_id) { |
681 return PreParserExpression::Default(); | 685 return PreParserExpression::Default(); |
682 } | 686 } |
(...skipping 1010 matching lines...) Loading... |
1693 function_state_->NextMaterializedLiteralIndex(); | 1697 function_state_->NextMaterializedLiteralIndex(); |
1694 function_state_->NextMaterializedLiteralIndex(); | 1698 function_state_->NextMaterializedLiteralIndex(); |
1695 } | 1699 } |
1696 return EmptyExpression(); | 1700 return EmptyExpression(); |
1697 } | 1701 } |
1698 | 1702 |
1699 } // namespace internal | 1703 } // namespace internal |
1700 } // namespace v8 | 1704 } // namespace v8 |
1701 | 1705 |
1702 #endif // V8_PARSING_PREPARSER_H | 1706 #endif // V8_PARSING_PREPARSER_H |
OLD | NEW |