| 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 uint64_t terminate_capability() const { return terminate_capability_; } | 204 uint64_t terminate_capability() const { return terminate_capability_; } |
| 205 | 205 |
| 206 void SendInternalLibMessage(LibMsgId msg_id, uint64_t capability); | 206 void SendInternalLibMessage(LibMsgId msg_id, uint64_t capability); |
| 207 | 207 |
| 208 Heap* heap() const { return heap_; } | 208 Heap* heap() const { return heap_; } |
| 209 void set_heap(Heap* value) { heap_ = value; } | 209 void set_heap(Heap* value) { heap_ = value; } |
| 210 static intptr_t heap_offset() { return OFFSET_OF(Isolate, heap_); } | 210 static intptr_t heap_offset() { return OFFSET_OF(Isolate, heap_); } |
| 211 | 211 |
| 212 ObjectStore* object_store() const { return object_store_; } | 212 ObjectStore* object_store() const { return object_store_; } |
| 213 void set_object_store(ObjectStore* value) { object_store_ = value; } | 213 void set_object_store(ObjectStore* value) { object_store_ = value; } |
| 214 static intptr_t object_store_offset() { |
| 215 return OFFSET_OF(Isolate, object_store_); |
| 216 } |
| 214 | 217 |
| 215 ApiState* api_state() const { return api_state_; } | 218 ApiState* api_state() const { return api_state_; } |
| 216 void set_api_state(ApiState* value) { api_state_ = value; } | 219 void set_api_state(ApiState* value) { api_state_ = value; } |
| 217 | 220 |
| 218 void set_init_callback_data(void* value) { | 221 void set_init_callback_data(void* value) { |
| 219 init_callback_data_ = value; | 222 init_callback_data_ = value; |
| 220 } | 223 } |
| 221 void* init_callback_data() const { | 224 void* init_callback_data() const { |
| 222 return init_callback_data_; | 225 return init_callback_data_; |
| 223 } | 226 } |
| (...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 990 intptr_t* spawn_count_; | 993 intptr_t* spawn_count_; |
| 991 | 994 |
| 992 Dart_IsolateFlags isolate_flags_; | 995 Dart_IsolateFlags isolate_flags_; |
| 993 bool paused_; | 996 bool paused_; |
| 994 bool errors_are_fatal_; | 997 bool errors_are_fatal_; |
| 995 }; | 998 }; |
| 996 | 999 |
| 997 } // namespace dart | 1000 } // namespace dart |
| 998 | 1001 |
| 999 #endif // VM_ISOLATE_H_ | 1002 #endif // VM_ISOLATE_H_ |
| OLD | NEW |