| 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 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 | 639 |
| 640 // Rewrite all DestructuringAssignments in the current FunctionState. | 640 // Rewrite all DestructuringAssignments in the current FunctionState. |
| 641 V8_INLINE void RewriteDestructuringAssignments(); | 641 V8_INLINE void RewriteDestructuringAssignments(); |
| 642 | 642 |
| 643 V8_INLINE void QueueDestructuringAssignmentForRewriting( | 643 V8_INLINE void QueueDestructuringAssignmentForRewriting( |
| 644 Expression* assignment); | 644 Expression* assignment); |
| 645 | 645 |
| 646 void SetFunctionNameFromPropertyName(ObjectLiteralProperty* property, | 646 void SetFunctionNameFromPropertyName(ObjectLiteralProperty* property, |
| 647 const AstRawString* name); | 647 const AstRawString* name); |
| 648 | 648 |
| 649 void SetFunctionNameFromIdentifierRef(Expression* value, |
| 650 Expression* identifier); |
| 651 |
| 649 private: | 652 private: |
| 650 Parser* parser_; | 653 Parser* parser_; |
| 651 }; | 654 }; |
| 652 | 655 |
| 653 | 656 |
| 654 class Parser : public ParserBase<ParserTraits> { | 657 class Parser : public ParserBase<ParserTraits> { |
| 655 public: | 658 public: |
| 656 explicit Parser(ParseInfo* info); | 659 explicit Parser(ParseInfo* info); |
| 657 ~Parser() { | 660 ~Parser() { |
| 658 delete reusable_preparser_; | 661 delete reusable_preparser_; |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1189 | 1192 |
| 1190 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { | 1193 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { |
| 1191 return parser_->ParseDoExpression(ok); | 1194 return parser_->ParseDoExpression(ok); |
| 1192 } | 1195 } |
| 1193 | 1196 |
| 1194 | 1197 |
| 1195 } // namespace internal | 1198 } // namespace internal |
| 1196 } // namespace v8 | 1199 } // namespace v8 |
| 1197 | 1200 |
| 1198 #endif // V8_PARSING_PARSER_H_ | 1201 #endif // V8_PARSING_PARSER_H_ |
| OLD | NEW |