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 "lib/invocation_mirror.h" | 10 #include "lib/invocation_mirror.h" |
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 void EnsureSavedCurrentContext(); | 630 void EnsureSavedCurrentContext(); |
631 AstNode* CreateAssignmentNode(AstNode* original, AstNode* rhs); | 631 AstNode* CreateAssignmentNode(AstNode* original, AstNode* rhs); |
632 AstNode* InsertClosureCallNodes(AstNode* condition); | 632 AstNode* InsertClosureCallNodes(AstNode* condition); |
633 | 633 |
634 ConstructorCallNode* CreateConstructorCallNode( | 634 ConstructorCallNode* CreateConstructorCallNode( |
635 intptr_t token_pos, | 635 intptr_t token_pos, |
636 const AbstractTypeArguments& type_arguments, | 636 const AbstractTypeArguments& type_arguments, |
637 const Function& constructor, | 637 const Function& constructor, |
638 ArgumentListNode* arguments); | 638 ArgumentListNode* arguments); |
639 | 639 |
| 640 RawInstance* TryCanonicalize(const Instance& instance, intptr_t token_pos); |
| 641 |
640 Isolate* isolate() const { return isolate_; } | 642 Isolate* isolate() const { return isolate_; } |
641 | 643 |
642 Isolate* isolate_; // Cached current isolate. | 644 Isolate* isolate_; // Cached current isolate. |
643 | 645 |
644 Script& script_; | 646 Script& script_; |
645 TokenStream::Iterator tokens_iterator_; | 647 TokenStream::Iterator tokens_iterator_; |
646 Token::Kind token_kind_; // Cached token kind for current token. | 648 Token::Kind token_kind_; // Cached token kind for current token. |
647 Block* current_block_; | 649 Block* current_block_; |
648 | 650 |
649 // is_top_level_ is true if parsing the "top level" of a compilation unit, | 651 // is_top_level_ is true if parsing the "top level" of a compilation unit, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 // code at all points in the try block where an exit from the block is | 684 // code at all points in the try block where an exit from the block is |
683 // done using 'return', 'break' or 'continue' statements. | 685 // done using 'return', 'break' or 'continue' statements. |
684 TryBlocks* try_blocks_list_; | 686 TryBlocks* try_blocks_list_; |
685 | 687 |
686 DISALLOW_COPY_AND_ASSIGN(Parser); | 688 DISALLOW_COPY_AND_ASSIGN(Parser); |
687 }; | 689 }; |
688 | 690 |
689 } // namespace dart | 691 } // namespace dart |
690 | 692 |
691 #endif // VM_PARSER_H_ | 693 #endif // VM_PARSER_H_ |
OLD | NEW |