OLD | NEW |
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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 uint64_t pause_capability() const { return pause_capability_; } | 214 uint64_t pause_capability() const { return pause_capability_; } |
215 void set_terminate_capability(uint64_t value) { | 215 void set_terminate_capability(uint64_t value) { |
216 terminate_capability_ = value; | 216 terminate_capability_ = value; |
217 } | 217 } |
218 uint64_t terminate_capability() const { return terminate_capability_; } | 218 uint64_t terminate_capability() const { return terminate_capability_; } |
219 | 219 |
220 void SendInternalLibMessage(LibMsgId msg_id, uint64_t capability); | 220 void SendInternalLibMessage(LibMsgId msg_id, uint64_t capability); |
221 | 221 |
222 Heap* heap() const { return heap_; } | 222 Heap* heap() const { return heap_; } |
223 void set_heap(Heap* value) { heap_ = value; } | 223 void set_heap(Heap* value) { heap_ = value; } |
224 static intptr_t heap_offset() { return OFFSET_OF(Isolate, heap_); } | |
225 | 224 |
226 ObjectStore* object_store() const { return object_store_; } | 225 ObjectStore* object_store() const { return object_store_; } |
227 void set_object_store(ObjectStore* value) { object_store_ = value; } | 226 void set_object_store(ObjectStore* value) { object_store_ = value; } |
228 | 227 |
229 ApiState* api_state() const { return api_state_; } | 228 ApiState* api_state() const { return api_state_; } |
230 void set_api_state(ApiState* value) { api_state_ = value; } | 229 void set_api_state(ApiState* value) { api_state_ = value; } |
231 | 230 |
232 void set_init_callback_data(void* value) { | 231 void set_init_callback_data(void* value) { |
233 init_callback_data_ = value; | 232 init_callback_data_ = value; |
234 } | 233 } |
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1024 intptr_t* spawn_count_; | 1023 intptr_t* spawn_count_; |
1025 | 1024 |
1026 Dart_IsolateFlags isolate_flags_; | 1025 Dart_IsolateFlags isolate_flags_; |
1027 bool paused_; | 1026 bool paused_; |
1028 bool errors_are_fatal_; | 1027 bool errors_are_fatal_; |
1029 }; | 1028 }; |
1030 | 1029 |
1031 } // namespace dart | 1030 } // namespace dart |
1032 | 1031 |
1033 #endif // VM_ISOLATE_H_ | 1032 #endif // VM_ISOLATE_H_ |
OLD | NEW |