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 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
811 ArgumentListNode* arguments); | 811 ArgumentListNode* arguments); |
812 | 812 |
813 void AddEqualityNullCheck(); | 813 void AddEqualityNullCheck(); |
814 | 814 |
815 AstNode* BuildClosureCall(intptr_t token_pos, | 815 AstNode* BuildClosureCall(intptr_t token_pos, |
816 AstNode* closure, | 816 AstNode* closure, |
817 ArgumentListNode* arguments); | 817 ArgumentListNode* arguments); |
818 | 818 |
819 RawInstance* TryCanonicalize(const Instance& instance, intptr_t token_pos); | 819 RawInstance* TryCanonicalize(const Instance& instance, intptr_t token_pos); |
820 | 820 |
| 821 Thread* thread() const { return thread_; } |
821 Isolate* isolate() const { return isolate_; } | 822 Isolate* isolate() const { return isolate_; } |
822 Zone* zone() const { return thread_->zone(); } | 823 Zone* zone() const { return thread_->zone(); } |
823 | 824 |
824 Isolate* isolate_; // Cached current isolate. | 825 Isolate* isolate_; // Cached current isolate. |
825 Thread* thread_; | 826 Thread* thread_; |
826 | 827 |
827 Script& script_; | 828 Script& script_; |
828 TokenStream::Iterator tokens_iterator_; | 829 TokenStream::Iterator tokens_iterator_; |
829 Token::Kind token_kind_; // Cached token kind for current token. | 830 Token::Kind token_kind_; // Cached token kind for current token. |
830 Block* current_block_; | 831 Block* current_block_; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
882 | 883 |
883 // Indentation of parser trace. | 884 // Indentation of parser trace. |
884 intptr_t trace_indent_; | 885 intptr_t trace_indent_; |
885 | 886 |
886 DISALLOW_COPY_AND_ASSIGN(Parser); | 887 DISALLOW_COPY_AND_ASSIGN(Parser); |
887 }; | 888 }; |
888 | 889 |
889 } // namespace dart | 890 } // namespace dart |
890 | 891 |
891 #endif // VM_PARSER_H_ | 892 #endif // VM_PARSER_H_ |
OLD | NEW |