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 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 V8_INLINE void RewriteNonPattern(Type::ExpressionClassifier* classifier, | 670 V8_INLINE void RewriteNonPattern(Type::ExpressionClassifier* classifier, |
671 bool* ok); | 671 bool* ok); |
672 | 672 |
673 V8_INLINE Zone* zone() const; | 673 V8_INLINE Zone* zone() const; |
674 | 674 |
675 V8_INLINE ZoneList<Expression*>* GetNonPatternList() const; | 675 V8_INLINE ZoneList<Expression*>* GetNonPatternList() const; |
676 | 676 |
677 Expression* RewriteYieldStar( | 677 Expression* RewriteYieldStar( |
678 Expression* generator, Expression* expression, int pos); | 678 Expression* generator, Expression* expression, int pos); |
679 | 679 |
680 Expression* RewriteInstanceof(Expression* lhs, Expression* rhs, int pos); | |
681 | |
682 private: | 680 private: |
683 Parser* parser_; | 681 Parser* parser_; |
684 | 682 |
685 void BuildIteratorClose(ZoneList<Statement*>* statements, Variable* iterator, | 683 void BuildIteratorClose(ZoneList<Statement*>* statements, Variable* iterator, |
686 Maybe<Variable*> input, Variable* output); | 684 Maybe<Variable*> input, Variable* output); |
687 void BuildIteratorCloseForCompletion( | 685 void BuildIteratorCloseForCompletion( |
688 ZoneList<Statement*>* statements, Variable* iterator, | 686 ZoneList<Statement*>* statements, Variable* iterator, |
689 Variable* body_threw); | 687 Variable* body_threw); |
690 Statement* CheckCallable(Variable* var, Expression* error, int pos); | 688 Statement* CheckCallable(Variable* var, Expression* error, int pos); |
691 }; | 689 }; |
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1293 | 1291 |
1294 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { | 1292 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { |
1295 return parser_->ParseDoExpression(ok); | 1293 return parser_->ParseDoExpression(ok); |
1296 } | 1294 } |
1297 | 1295 |
1298 | 1296 |
1299 } // namespace internal | 1297 } // namespace internal |
1300 } // namespace v8 | 1298 } // namespace v8 |
1301 | 1299 |
1302 #endif // V8_PARSING_PARSER_H_ | 1300 #endif // V8_PARSING_PARSER_H_ |
OLD | NEW |