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

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

Issue 1284713003: Refactor VMTagScope to Thread* rather than Isolate*. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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/object.cc ('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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 return (num_copied_params_ == 0) 143 return (num_copied_params_ == 0)
144 ? function().num_fixed_parameters() : 0; 144 ? function().num_fixed_parameters() : 0;
145 } 145 }
146 146
147 void AllocateVariables(); 147 void AllocateVariables();
148 void AllocateIrregexpVariables(intptr_t num_stack_locals); 148 void AllocateIrregexpVariables(intptr_t num_stack_locals);
149 149
150 void record_await() { have_seen_await_expr_ = true; } 150 void record_await() { have_seen_await_expr_ = true; }
151 bool have_seen_await() const { return have_seen_await_expr_; } 151 bool have_seen_await() const { return have_seen_await_expr_; }
152 152
153 Thread* thread() const { return thread_; }
153 Isolate* isolate() const { return thread_->isolate(); } 154 Isolate* isolate() const { return thread_->isolate(); }
154 Zone* zone() const { return thread_->zone(); } 155 Zone* zone() const { return thread_->zone(); }
155 156
156 private: 157 private:
157 Thread* thread_; 158 Thread* thread_;
158 const Function& function_; 159 const Function& function_;
159 Code& code_; 160 Code& code_;
160 SequenceNode* node_sequence_; 161 SequenceNode* node_sequence_;
161 RegExpCompileData* regexp_compile_data_; 162 RegExpCompileData* regexp_compile_data_;
162 LocalVariable* instantiator_; 163 LocalVariable* instantiator_;
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 881
881 // Indentation of parser trace. 882 // Indentation of parser trace.
882 intptr_t trace_indent_; 883 intptr_t trace_indent_;
883 884
884 DISALLOW_COPY_AND_ASSIGN(Parser); 885 DISALLOW_COPY_AND_ASSIGN(Parser);
885 }; 886 };
886 887
887 } // namespace dart 888 } // namespace dart
888 889
889 #endif // VM_PARSER_H_ 890 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698