| 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/base_isolate.h" | 10 #include "vm/base_isolate.h" |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 static intptr_t object_store_offset() { | 192 static intptr_t object_store_offset() { |
| 193 return OFFSET_OF(Isolate, object_store_); | 193 return OFFSET_OF(Isolate, object_store_); |
| 194 } | 194 } |
| 195 | 195 |
| 196 uword top_exit_frame_info() const { return top_exit_frame_info_; } | 196 uword top_exit_frame_info() const { return top_exit_frame_info_; } |
| 197 void set_top_exit_frame_info(uword value) { top_exit_frame_info_ = value; } | 197 void set_top_exit_frame_info(uword value) { top_exit_frame_info_ = value; } |
| 198 static intptr_t top_exit_frame_info_offset() { | 198 static intptr_t top_exit_frame_info_offset() { |
| 199 return OFFSET_OF(Isolate, top_exit_frame_info_); | 199 return OFFSET_OF(Isolate, top_exit_frame_info_); |
| 200 } | 200 } |
| 201 | 201 |
| 202 uword vm_tag() const { |
| 203 return vm_tag_; |
| 204 } |
| 205 void set_vm_tag(uword tag) { |
| 206 vm_tag_ = tag; |
| 207 } |
| 202 static intptr_t vm_tag_offset() { | 208 static intptr_t vm_tag_offset() { |
| 203 return OFFSET_OF(Isolate, vm_tag_); | 209 return OFFSET_OF(Isolate, vm_tag_); |
| 204 } | 210 } |
| 205 | 211 |
| 206 ApiState* api_state() const { return api_state_; } | 212 ApiState* api_state() const { return api_state_; } |
| 207 void set_api_state(ApiState* value) { api_state_ = value; } | 213 void set_api_state(ApiState* value) { api_state_ = value; } |
| 208 | 214 |
| 209 StubCode* stub_code() const { return stub_code_; } | 215 StubCode* stub_code() const { return stub_code_; } |
| 210 void set_stub_code(StubCode* value) { stub_code_ = value; } | 216 void set_stub_code(StubCode* value) { stub_code_ = value; } |
| 211 | 217 |
| 212 LongJumpScope* long_jump_base() const { return long_jump_base_; } | 218 LongJumpScope* long_jump_base() const { return long_jump_base_; } |
| 213 void set_long_jump_base(LongJumpScope* value) { long_jump_base_ = value; } | 219 void set_long_jump_base(LongJumpScope* value) { long_jump_base_ = value; } |
| 214 | 220 |
| 215 TimerList& timer_list() { return timer_list_; } | 221 TimerList& timer_list() { return timer_list_; } |
| 216 | 222 |
| 217 static intptr_t current_zone_offset() { | |
| 218 return OFFSET_OF(Isolate, current_zone_); | |
| 219 } | |
| 220 | |
| 221 void set_init_callback_data(void* value) { | 223 void set_init_callback_data(void* value) { |
| 222 init_callback_data_ = value; | 224 init_callback_data_ = value; |
| 223 } | 225 } |
| 224 void* init_callback_data() const { | 226 void* init_callback_data() const { |
| 225 return init_callback_data_; | 227 return init_callback_data_; |
| 226 } | 228 } |
| 227 | 229 |
| 228 Dart_EnvironmentCallback environment_callback() const { | 230 Dart_EnvironmentCallback environment_callback() const { |
| 229 return environment_callback_; | 231 return environment_callback_; |
| 230 } | 232 } |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 | 627 |
| 626 void set_user_tag(uword tag) { | 628 void set_user_tag(uword tag) { |
| 627 user_tag_ = tag; | 629 user_tag_ = tag; |
| 628 } | 630 } |
| 629 | 631 |
| 630 | 632 |
| 631 template<class T> T* AllocateReusableHandle(); | 633 template<class T> T* AllocateReusableHandle(); |
| 632 | 634 |
| 633 static ThreadLocalKey isolate_key; | 635 static ThreadLocalKey isolate_key; |
| 634 | 636 |
| 637 uword vm_tag_; |
| 635 StoreBuffer store_buffer_; | 638 StoreBuffer store_buffer_; |
| 636 ClassTable class_table_; | 639 ClassTable class_table_; |
| 637 MegamorphicCacheTable megamorphic_cache_table_; | 640 MegamorphicCacheTable megamorphic_cache_table_; |
| 638 Dart_MessageNotifyCallback message_notify_callback_; | 641 Dart_MessageNotifyCallback message_notify_callback_; |
| 639 char* name_; | 642 char* name_; |
| 640 int64_t start_time_; | 643 int64_t start_time_; |
| 641 Dart_Port main_port_; | 644 Dart_Port main_port_; |
| 642 Dart_Port origin_id_; // Isolates created by spawnFunc have some origin id. | 645 Dart_Port origin_id_; // Isolates created by spawnFunc have some origin id. |
| 643 uint64_t pause_capability_; | 646 uint64_t pause_capability_; |
| 644 uint64_t terminate_capability_; | 647 uint64_t terminate_capability_; |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 860 uint8_t* serialized_args_; | 863 uint8_t* serialized_args_; |
| 861 intptr_t serialized_args_len_; | 864 intptr_t serialized_args_len_; |
| 862 uint8_t* serialized_message_; | 865 uint8_t* serialized_message_; |
| 863 intptr_t serialized_message_len_; | 866 intptr_t serialized_message_len_; |
| 864 bool paused_; | 867 bool paused_; |
| 865 }; | 868 }; |
| 866 | 869 |
| 867 } // namespace dart | 870 } // namespace dart |
| 868 | 871 |
| 869 #endif // VM_ISOLATE_H_ | 872 #endif // VM_ISOLATE_H_ |
| OLD | NEW |