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

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

Issue 1387643002: Move vm_tags from isolate to thread, since we may have multiple threads in same isolate (GC, backgr… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: More comment cleanups Created 5 years, 2 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/assembler_x64.h ('k') | runtime/vm/isolate.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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_ISOLATE_H_ 5 #ifndef VM_ISOLATE_H_
6 #define VM_ISOLATE_H_ 6 #define VM_ISOLATE_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "vm/atomic.h" 10 #include "vm/atomic.h"
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // DEPRECATED: Use Thread's methods instead. During migration, these default 231 // DEPRECATED: Use Thread's methods instead. During migration, these default
232 // to using the mutator thread. 232 // to using the mutator thread.
233 // NOTE: These are also used by the profiler. 233 // NOTE: These are also used by the profiler.
234 uword top_exit_frame_info() const { 234 uword top_exit_frame_info() const {
235 return mutator_thread_->top_exit_frame_info(); 235 return mutator_thread_->top_exit_frame_info();
236 } 236 }
237 void set_top_exit_frame_info(uword value) { 237 void set_top_exit_frame_info(uword value) {
238 mutator_thread_->set_top_exit_frame_info(value); 238 mutator_thread_->set_top_exit_frame_info(value);
239 } 239 }
240 240
241 uword vm_tag() const {
242 return vm_tag_;
243 }
244 void set_vm_tag(uword tag) {
245 vm_tag_ = tag;
246 }
247 static intptr_t vm_tag_offset() {
248 return OFFSET_OF(Isolate, vm_tag_);
249 }
250
251 ApiState* api_state() const { return api_state_; } 241 ApiState* api_state() const { return api_state_; }
252 void set_api_state(ApiState* value) { api_state_ = value; } 242 void set_api_state(ApiState* value) { api_state_ = value; }
253 243
254 void set_init_callback_data(void* value) { 244 void set_init_callback_data(void* value) {
255 init_callback_data_ = value; 245 init_callback_data_ = value;
256 } 246 }
257 void* init_callback_data() const { 247 void* init_callback_data() const {
258 return init_callback_data_; 248 return init_callback_data_;
259 } 249 }
260 250
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after
1137 uint8_t* serialized_message_; 1127 uint8_t* serialized_message_;
1138 intptr_t serialized_message_len_; 1128 intptr_t serialized_message_len_;
1139 Isolate::Flags isolate_flags_; 1129 Isolate::Flags isolate_flags_;
1140 bool paused_; 1130 bool paused_;
1141 bool errors_are_fatal_; 1131 bool errors_are_fatal_;
1142 }; 1132 };
1143 1133
1144 } // namespace dart 1134 } // namespace dart
1145 1135
1146 #endif // VM_ISOLATE_H_ 1136 #endif // VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « runtime/vm/assembler_x64.h ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698