OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef VM_PARSER_H_ | 5 #ifndef VM_PARSER_H_ |
6 #define VM_PARSER_H_ | 6 #define VM_PARSER_H_ |
7 | 7 |
8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
9 | 9 |
10 #include "platform/assert.h" | 10 #include "platform/assert.h" |
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
651 AstNode* InsertClosureCallNodes(AstNode* condition); | 651 AstNode* InsertClosureCallNodes(AstNode* condition); |
652 | 652 |
653 ConstructorCallNode* CreateConstructorCallNode( | 653 ConstructorCallNode* CreateConstructorCallNode( |
654 intptr_t token_pos, | 654 intptr_t token_pos, |
655 const TypeArguments& type_arguments, | 655 const TypeArguments& type_arguments, |
656 const Function& constructor, | 656 const Function& constructor, |
657 ArgumentListNode* arguments); | 657 ArgumentListNode* arguments); |
658 | 658 |
659 void AddEqualityNullCheck(); | 659 void AddEqualityNullCheck(); |
660 | 660 |
| 661 AstNode* BuildClosureCall(intptr_t token_pos, |
| 662 AstNode* closure, |
| 663 ArgumentListNode* arguments); |
| 664 |
661 RawInstance* TryCanonicalize(const Instance& instance, intptr_t token_pos); | 665 RawInstance* TryCanonicalize(const Instance& instance, intptr_t token_pos); |
662 | 666 |
663 Isolate* isolate() const { return isolate_; } | 667 Isolate* isolate() const { return isolate_; } |
664 | 668 |
665 Isolate* isolate_; // Cached current isolate. | 669 Isolate* isolate_; // Cached current isolate. |
666 | 670 |
667 Script& script_; | 671 Script& script_; |
668 TokenStream::Iterator tokens_iterator_; | 672 TokenStream::Iterator tokens_iterator_; |
669 Token::Kind token_kind_; // Cached token kind for current token. | 673 Token::Kind token_kind_; // Cached token kind for current token. |
670 Block* current_block_; | 674 Block* current_block_; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
716 intptr_t last_used_try_index_; | 720 intptr_t last_used_try_index_; |
717 | 721 |
718 bool unregister_pending_function_; | 722 bool unregister_pending_function_; |
719 | 723 |
720 DISALLOW_COPY_AND_ASSIGN(Parser); | 724 DISALLOW_COPY_AND_ASSIGN(Parser); |
721 }; | 725 }; |
722 | 726 |
723 } // namespace dart | 727 } // namespace dart |
724 | 728 |
725 #endif // VM_PARSER_H_ | 729 #endif // VM_PARSER_H_ |
OLD | NEW |