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 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
802 mutator_thread_ = thread; | 802 mutator_thread_ = thread; |
803 } | 803 } |
804 #if defined(DEBUG) | 804 #if defined(DEBUG) |
805 bool IsIsolateOf(Thread* thread); | 805 bool IsIsolateOf(Thread* thread); |
806 #endif // DEBUG | 806 #endif // DEBUG |
807 | 807 |
808 template<class T> T* AllocateReusableHandle(); | 808 template<class T> T* AllocateReusableHandle(); |
809 | 809 |
810 uword vm_tag_; | 810 uword vm_tag_; |
811 StoreBuffer* store_buffer_; | 811 StoreBuffer* store_buffer_; |
812 Heap* heap_; | |
Ivan Posva
2015/09/15 22:25:40
Please ensure the following ordering:
64-bit field
koda
2015/09/15 22:34:45
For the fields that are frequently accessed (e.g.,
rmacnak
2015/09/16 00:36:13
Yes, we should sort those first. Currently 32-bit
| |
812 ThreadRegistry* thread_registry_; | 813 ThreadRegistry* thread_registry_; |
813 ClassTable class_table_; | 814 ClassTable class_table_; |
814 Dart_MessageNotifyCallback message_notify_callback_; | 815 Dart_MessageNotifyCallback message_notify_callback_; |
815 char* name_; | 816 char* name_; |
816 char* debugger_name_; | 817 char* debugger_name_; |
817 int64_t start_time_; | 818 int64_t start_time_; |
818 Dart_Port main_port_; | 819 Dart_Port main_port_; |
819 Dart_Port origin_id_; // Isolates created by spawnFunc have some origin id. | 820 Dart_Port origin_id_; // Isolates created by spawnFunc have some origin id. |
820 uint64_t pause_capability_; | 821 uint64_t pause_capability_; |
821 uint64_t terminate_capability_; | 822 uint64_t terminate_capability_; |
822 bool errors_fatal_; | 823 bool errors_fatal_; |
823 Heap* heap_; | |
824 ObjectStore* object_store_; | 824 ObjectStore* object_store_; |
825 uword top_exit_frame_info_; | 825 uword top_exit_frame_info_; |
826 void* init_callback_data_; | 826 void* init_callback_data_; |
827 Dart_EnvironmentCallback environment_callback_; | 827 Dart_EnvironmentCallback environment_callback_; |
828 Dart_LibraryTagHandler library_tag_handler_; | 828 Dart_LibraryTagHandler library_tag_handler_; |
829 ApiState* api_state_; | 829 ApiState* api_state_; |
830 Debugger* debugger_; | 830 Debugger* debugger_; |
831 bool single_step_; | 831 bool single_step_; |
832 bool resume_request_; | 832 bool resume_request_; |
833 int64_t last_resume_timestamp_; | 833 int64_t last_resume_timestamp_; |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1115 uint8_t* serialized_message_; | 1115 uint8_t* serialized_message_; |
1116 intptr_t serialized_message_len_; | 1116 intptr_t serialized_message_len_; |
1117 Isolate::Flags isolate_flags_; | 1117 Isolate::Flags isolate_flags_; |
1118 bool paused_; | 1118 bool paused_; |
1119 bool errors_are_fatal_; | 1119 bool errors_are_fatal_; |
1120 }; | 1120 }; |
1121 | 1121 |
1122 } // namespace dart | 1122 } // namespace dart |
1123 | 1123 |
1124 #endif // VM_ISOLATE_H_ | 1124 #endif // VM_ISOLATE_H_ |
OLD | NEW |