| 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 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 650 void SetFunctionNameFromPropertyName(ObjectLiteralProperty* property, | 650 void SetFunctionNameFromPropertyName(ObjectLiteralProperty* property, |
| 651 const AstRawString* name); | 651 const AstRawString* name); |
| 652 | 652 |
| 653 void SetFunctionNameFromIdentifierRef(Expression* value, | 653 void SetFunctionNameFromIdentifierRef(Expression* value, |
| 654 Expression* identifier); | 654 Expression* identifier); |
| 655 | 655 |
| 656 // Rewrite expressions that are not used as patterns | 656 // Rewrite expressions that are not used as patterns |
| 657 V8_INLINE void RewriteNonPattern(Type::ExpressionClassifier* classifier, | 657 V8_INLINE void RewriteNonPattern(Type::ExpressionClassifier* classifier, |
| 658 bool* ok); | 658 bool* ok); |
| 659 | 659 |
| 660 V8_INLINE ZoneList<typename Type::ExpressionClassifier::Error>* |
| 661 GetReportedErrorList() const; |
| 660 V8_INLINE Zone* zone() const; | 662 V8_INLINE Zone* zone() const; |
| 661 | 663 |
| 662 V8_INLINE ZoneList<Expression*>* GetNonPatternList() const; | 664 V8_INLINE ZoneList<Expression*>* GetNonPatternList() const; |
| 663 | 665 |
| 664 Expression* RewriteYieldStar( | 666 Expression* RewriteYieldStar( |
| 665 Expression* generator, Expression* expression, int pos); | 667 Expression* generator, Expression* expression, int pos); |
| 666 | 668 |
| 667 private: | 669 private: |
| 668 Parser* parser_; | 670 Parser* parser_; |
| 669 | 671 |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1222 | 1224 |
| 1223 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { | 1225 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { |
| 1224 return parser_->ParseDoExpression(ok); | 1226 return parser_->ParseDoExpression(ok); |
| 1225 } | 1227 } |
| 1226 | 1228 |
| 1227 | 1229 |
| 1228 } // namespace internal | 1230 } // namespace internal |
| 1229 } // namespace v8 | 1231 } // namespace v8 |
| 1230 | 1232 |
| 1231 #endif // V8_PARSING_PARSER_H_ | 1233 #endif // V8_PARSING_PARSER_H_ |
| OLD | NEW |