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_PARSER_H_ | 5 #ifndef V8_PARSING_PARSER_H_ |
6 #define V8_PARSING_PARSER_H_ | 6 #define V8_PARSING_PARSER_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/ast/ast.h" | 9 #include "src/ast/ast.h" |
10 #include "src/ast/scopes.h" | 10 #include "src/ast/scopes.h" |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 Expression* initializer, | 551 Expression* initializer, |
552 int initializer_end_position, bool is_rest); | 552 int initializer_end_position, bool is_rest); |
553 V8_INLINE void DeclareFormalParameter( | 553 V8_INLINE void DeclareFormalParameter( |
554 Scope* scope, const ParserFormalParameters::Parameter& parameter, | 554 Scope* scope, const ParserFormalParameters::Parameter& parameter, |
555 Type::ExpressionClassifier* classifier); | 555 Type::ExpressionClassifier* classifier); |
556 void ParseArrowFunctionFormalParameters(ParserFormalParameters* parameters, | 556 void ParseArrowFunctionFormalParameters(ParserFormalParameters* parameters, |
557 Expression* params, int end_pos, | 557 Expression* params, int end_pos, |
558 bool* ok); | 558 bool* ok); |
559 void ParseArrowFunctionFormalParameterList( | 559 void ParseArrowFunctionFormalParameterList( |
560 ParserFormalParameters* parameters, Expression* params, | 560 ParserFormalParameters* parameters, Expression* params, |
561 const Scanner::Location& params_loc, | 561 const Scanner::Location& params_loc, Scanner::Location* duplicate_loc, |
562 Scanner::Location* duplicate_loc, bool* ok); | 562 const Scope::Snapshot& scope_snapshot, bool* ok); |
563 | 563 |
564 V8_INLINE Expression* ParseAsyncFunctionExpression(bool* ok); | 564 V8_INLINE Expression* ParseAsyncFunctionExpression(bool* ok); |
565 | 565 |
566 V8_INLINE DoExpression* ParseDoExpression(bool* ok); | 566 V8_INLINE DoExpression* ParseDoExpression(bool* ok); |
567 | 567 |
568 void ReindexLiterals(const ParserFormalParameters& parameters); | 568 void ReindexLiterals(const ParserFormalParameters& parameters); |
569 | 569 |
570 // Temporary glue; these functions will move to ParserBase. | 570 // Temporary glue; these functions will move to ParserBase. |
571 Expression* ParseV8Intrinsic(bool* ok); | 571 Expression* ParseV8Intrinsic(bool* ok); |
572 FunctionLiteral* ParseFunctionLiteral( | 572 FunctionLiteral* ParseFunctionLiteral( |
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1319 | 1319 |
1320 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { | 1320 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { |
1321 return parser_->ParseDoExpression(ok); | 1321 return parser_->ParseDoExpression(ok); |
1322 } | 1322 } |
1323 | 1323 |
1324 | 1324 |
1325 } // namespace internal | 1325 } // namespace internal |
1326 } // namespace v8 | 1326 } // namespace v8 |
1327 | 1327 |
1328 #endif // V8_PARSING_PARSER_H_ | 1328 #endif // V8_PARSING_PARSER_H_ |
OLD | NEW |