| 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 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 | 651 |
| 652 V8_INLINE Expression* RewriteExponentiation(Expression* left, | 652 V8_INLINE Expression* RewriteExponentiation(Expression* left, |
| 653 Expression* right, int pos); | 653 Expression* right, int pos); |
| 654 V8_INLINE Expression* RewriteAssignExponentiation(Expression* left, | 654 V8_INLINE Expression* RewriteAssignExponentiation(Expression* left, |
| 655 Expression* right, int pos); | 655 Expression* right, int pos); |
| 656 | 656 |
| 657 V8_INLINE Expression* RewriteAwaitExpression(Expression* value, int pos); | 657 V8_INLINE Expression* RewriteAwaitExpression(Expression* value, int pos); |
| 658 | 658 |
| 659 V8_INLINE void QueueDestructuringAssignmentForRewriting( | 659 V8_INLINE void QueueDestructuringAssignmentForRewriting( |
| 660 Expression* assignment); | 660 Expression* assignment); |
| 661 V8_INLINE void QueueNonPatternForRewriting(Expression* expr); | 661 V8_INLINE void QueueNonPatternForRewriting(Expression* expr, bool* ok); |
| 662 | 662 |
| 663 void SetFunctionNameFromPropertyName(ObjectLiteralProperty* property, | 663 void SetFunctionNameFromPropertyName(ObjectLiteralProperty* property, |
| 664 const AstRawString* name); | 664 const AstRawString* name); |
| 665 | 665 |
| 666 void SetFunctionNameFromIdentifierRef(Expression* value, | 666 void SetFunctionNameFromIdentifierRef(Expression* value, |
| 667 Expression* identifier); | 667 Expression* identifier); |
| 668 | 668 |
| 669 // Rewrite expressions that are not used as patterns | 669 // Rewrite expressions that are not used as patterns |
| 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 ZoneList<typename Type::ExpressionClassifier::Error>* |
| 674 GetReportedErrorList() const; |
| 673 V8_INLINE Zone* zone() const; | 675 V8_INLINE Zone* zone() const; |
| 674 | 676 |
| 675 V8_INLINE ZoneList<Expression*>* GetNonPatternList() const; | 677 V8_INLINE ZoneList<Expression*>* GetNonPatternList() const; |
| 676 | 678 |
| 677 Expression* RewriteYieldStar( | 679 Expression* RewriteYieldStar( |
| 678 Expression* generator, Expression* expression, int pos); | 680 Expression* generator, Expression* expression, int pos); |
| 679 | 681 |
| 680 private: | 682 private: |
| 681 Parser* parser_; | 683 Parser* parser_; |
| 682 | 684 |
| (...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1291 | 1293 |
| 1292 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { | 1294 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { |
| 1293 return parser_->ParseDoExpression(ok); | 1295 return parser_->ParseDoExpression(ok); |
| 1294 } | 1296 } |
| 1295 | 1297 |
| 1296 | 1298 |
| 1297 } // namespace internal | 1299 } // namespace internal |
| 1298 } // namespace v8 | 1300 } // namespace v8 |
| 1299 | 1301 |
| 1300 #endif // V8_PARSING_PARSER_H_ | 1302 #endif // V8_PARSING_PARSER_H_ |
| OLD | NEW |