| 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 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 PreParserStatement NewReturnStatement(PreParserExpression expression, | 589 PreParserStatement NewReturnStatement(PreParserExpression expression, |
| 590 int pos) { | 590 int pos) { |
| 591 return PreParserStatement::Jump(); | 591 return PreParserStatement::Jump(); |
| 592 } | 592 } |
| 593 PreParserExpression NewFunctionLiteral( | 593 PreParserExpression NewFunctionLiteral( |
| 594 PreParserIdentifier name, Scope* scope, PreParserStatementList body, | 594 PreParserIdentifier name, Scope* scope, PreParserStatementList body, |
| 595 int materialized_literal_count, int expected_property_count, | 595 int materialized_literal_count, int expected_property_count, |
| 596 int parameter_count, | 596 int parameter_count, |
| 597 FunctionLiteral::ParameterFlag has_duplicate_parameters, | 597 FunctionLiteral::ParameterFlag has_duplicate_parameters, |
| 598 FunctionLiteral::FunctionType function_type, | 598 FunctionLiteral::FunctionType function_type, |
| 599 FunctionLiteral::EagerCompileHint eager_compile_hint, FunctionKind kind, | 599 FunctionLiteral::EagerCompileHint eager_compile_hint, int position) { |
| 600 int position) { | |
| 601 return PreParserExpression::Default(); | 600 return PreParserExpression::Default(); |
| 602 } | 601 } |
| 603 | 602 |
| 604 PreParserExpression NewSpread(PreParserExpression expression, int pos, | 603 PreParserExpression NewSpread(PreParserExpression expression, int pos, |
| 605 int expr_pos) { | 604 int expr_pos) { |
| 606 return PreParserExpression::Spread(expression); | 605 return PreParserExpression::Spread(expression); |
| 607 } | 606 } |
| 608 | 607 |
| 609 PreParserExpression NewEmptyParentheses(int pos) { | 608 PreParserExpression NewEmptyParentheses(int pos) { |
| 610 return PreParserExpression::Default(); | 609 return PreParserExpression::Default(); |
| (...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1458 function_state_->NextMaterializedLiteralIndex(); | 1457 function_state_->NextMaterializedLiteralIndex(); |
| 1459 function_state_->NextMaterializedLiteralIndex(); | 1458 function_state_->NextMaterializedLiteralIndex(); |
| 1460 } | 1459 } |
| 1461 return EmptyExpression(); | 1460 return EmptyExpression(); |
| 1462 } | 1461 } |
| 1463 | 1462 |
| 1464 } // namespace internal | 1463 } // namespace internal |
| 1465 } // namespace v8 | 1464 } // namespace v8 |
| 1466 | 1465 |
| 1467 #endif // V8_PARSING_PREPARSER_H | 1466 #endif // V8_PARSING_PREPARSER_H |
| OLD | NEW |