Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: runtime/vm/parser.h

Issue 1285293004: Migrate most uses of StackZone(Isolate*) to Thread*. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Final cleanup. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/native_entry.h ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/native_entry.h ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698