| 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 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 899 V8_INLINE Expression* SpreadCallNew(Expression* function, | 899 V8_INLINE Expression* SpreadCallNew(Expression* function, |
| 900 ZoneList<v8::internal::Expression*>* args, | 900 ZoneList<v8::internal::Expression*>* args, |
| 901 int pos); | 901 int pos); |
| 902 | 902 |
| 903 // Rewrite all DestructuringAssignments in the current FunctionState. | 903 // Rewrite all DestructuringAssignments in the current FunctionState. |
| 904 V8_INLINE void RewriteDestructuringAssignments(); | 904 V8_INLINE void RewriteDestructuringAssignments(); |
| 905 | 905 |
| 906 V8_INLINE void QueueDestructuringAssignmentForRewriting( | 906 V8_INLINE void QueueDestructuringAssignmentForRewriting( |
| 907 Expression* assignment); | 907 Expression* assignment); |
| 908 | 908 |
| 909 void SetFunctionNameFromPropertyName(ObjectLiteralProperty* property, |
| 910 const AstRawString* name); |
| 911 |
| 909 private: | 912 private: |
| 910 Parser* parser_; | 913 Parser* parser_; |
| 911 }; | 914 }; |
| 912 | 915 |
| 913 | 916 |
| 914 class Parser : public ParserBase<ParserTraits> { | 917 class Parser : public ParserBase<ParserTraits> { |
| 915 public: | 918 public: |
| 916 explicit Parser(ParseInfo* info); | 919 explicit Parser(ParseInfo* info); |
| 917 ~Parser() { | 920 ~Parser() { |
| 918 delete reusable_preparser_; | 921 delete reusable_preparser_; |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1447 | 1450 |
| 1448 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { | 1451 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { |
| 1449 return parser_->ParseDoExpression(ok); | 1452 return parser_->ParseDoExpression(ok); |
| 1450 } | 1453 } |
| 1451 | 1454 |
| 1452 | 1455 |
| 1453 } // namespace internal | 1456 } // namespace internal |
| 1454 } // namespace v8 | 1457 } // namespace v8 |
| 1455 | 1458 |
| 1456 #endif // V8_PARSING_PARSER_H_ | 1459 #endif // V8_PARSING_PARSER_H_ |
| OLD | NEW |