| 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 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 ObjectLiteralProperty* property, const ExpressionClassifier* classifier, | 656 ObjectLiteralProperty* property, const ExpressionClassifier* classifier, |
| 657 bool* ok); | 657 bool* ok); |
| 658 | 658 |
| 659 Expression* RewriteYieldStar( | 659 Expression* RewriteYieldStar( |
| 660 Expression* generator, Expression* expression, int pos); | 660 Expression* generator, Expression* expression, int pos); |
| 661 | 661 |
| 662 private: | 662 private: |
| 663 Parser* parser_; | 663 Parser* parser_; |
| 664 | 664 |
| 665 void BuildIteratorClose(ZoneList<Statement*>* statements, Variable* iterator, | 665 void BuildIteratorClose(ZoneList<Statement*>* statements, Variable* iterator, |
| 666 Maybe<Variable*> input); | 666 Maybe<Variable*> input, Maybe<Variable*> output); |
| 667 }; | 667 }; |
| 668 | 668 |
| 669 | 669 |
| 670 class Parser : public ParserBase<ParserTraits> { | 670 class Parser : public ParserBase<ParserTraits> { |
| 671 public: | 671 public: |
| 672 explicit Parser(ParseInfo* info); | 672 explicit Parser(ParseInfo* info); |
| 673 ~Parser() { | 673 ~Parser() { |
| 674 delete reusable_preparser_; | 674 delete reusable_preparser_; |
| 675 reusable_preparser_ = NULL; | 675 reusable_preparser_ = NULL; |
| 676 delete cached_parse_data_; | 676 delete cached_parse_data_; |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1219 | 1219 |
| 1220 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { | 1220 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { |
| 1221 return parser_->ParseDoExpression(ok); | 1221 return parser_->ParseDoExpression(ok); |
| 1222 } | 1222 } |
| 1223 | 1223 |
| 1224 | 1224 |
| 1225 } // namespace internal | 1225 } // namespace internal |
| 1226 } // namespace v8 | 1226 } // namespace v8 |
| 1227 | 1227 |
| 1228 #endif // V8_PARSING_PARSER_H_ | 1228 #endif // V8_PARSING_PARSER_H_ |
| OLD | NEW |