| 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/scopes.h" | 8 #include "src/ast/scopes.h" |
| 9 #include "src/parsing/parser-base.h" | 9 #include "src/parsing/parser-base.h" |
| 10 | 10 |
| (...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 PreParserStatement NewReturnStatement(PreParserExpression expression, | 654 PreParserStatement NewReturnStatement(PreParserExpression expression, |
| 655 int pos) { | 655 int pos) { |
| 656 return PreParserStatement::Jump(); | 656 return PreParserStatement::Jump(); |
| 657 } | 657 } |
| 658 PreParserExpression NewFunctionLiteral( | 658 PreParserExpression NewFunctionLiteral( |
| 659 PreParserIdentifier name, Scope* scope, PreParserStatementList body, | 659 PreParserIdentifier name, Scope* scope, PreParserStatementList body, |
| 660 int materialized_literal_count, int expected_property_count, | 660 int materialized_literal_count, int expected_property_count, |
| 661 int parameter_count, int function_length, | 661 int parameter_count, int function_length, |
| 662 FunctionLiteral::ParameterFlag has_duplicate_parameters, | 662 FunctionLiteral::ParameterFlag has_duplicate_parameters, |
| 663 FunctionLiteral::FunctionType function_type, | 663 FunctionLiteral::FunctionType function_type, |
| 664 FunctionLiteral::EagerCompileHint eager_compile_hint, int position) { | 664 FunctionLiteral::EagerCompileHint eager_compile_hint, int position, |
| 665 bool has_braces) { |
| 665 return PreParserExpression::Default(); | 666 return PreParserExpression::Default(); |
| 666 } | 667 } |
| 667 | 668 |
| 668 PreParserExpression NewSpread(PreParserExpression expression, int pos, | 669 PreParserExpression NewSpread(PreParserExpression expression, int pos, |
| 669 int expr_pos) { | 670 int expr_pos) { |
| 670 return PreParserExpression::Spread(expression); | 671 return PreParserExpression::Spread(expression); |
| 671 } | 672 } |
| 672 | 673 |
| 673 PreParserExpression NewEmptyParentheses(int pos) { | 674 PreParserExpression NewEmptyParentheses(int pos) { |
| 674 return PreParserExpression::Default(); | 675 return PreParserExpression::Default(); |
| (...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1550 function_state_->NextMaterializedLiteralIndex(); | 1551 function_state_->NextMaterializedLiteralIndex(); |
| 1551 function_state_->NextMaterializedLiteralIndex(); | 1552 function_state_->NextMaterializedLiteralIndex(); |
| 1552 } | 1553 } |
| 1553 return EmptyExpression(); | 1554 return EmptyExpression(); |
| 1554 } | 1555 } |
| 1555 | 1556 |
| 1556 } // namespace internal | 1557 } // namespace internal |
| 1557 } // namespace v8 | 1558 } // namespace v8 |
| 1558 | 1559 |
| 1559 #endif // V8_PARSING_PREPARSER_H | 1560 #endif // V8_PARSING_PREPARSER_H |
| OLD | NEW |