| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 "platform/thread.h" | 10 #include "platform/thread.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 static intptr_t top_exit_frame_info_offset() { | 98 static intptr_t top_exit_frame_info_offset() { |
| 99 return OFFSET_OF(Isolate, top_exit_frame_info_); | 99 return OFFSET_OF(Isolate, top_exit_frame_info_); |
| 100 } | 100 } |
| 101 | 101 |
| 102 ApiState* api_state() const { return api_state_; } | 102 ApiState* api_state() const { return api_state_; } |
| 103 void set_api_state(ApiState* value) { api_state_ = value; } | 103 void set_api_state(ApiState* value) { api_state_ = value; } |
| 104 | 104 |
| 105 StubCode* stub_code() const { return stub_code_; } | 105 StubCode* stub_code() const { return stub_code_; } |
| 106 void set_stub_code(StubCode* value) { stub_code_ = value; } | 106 void set_stub_code(StubCode* value) { stub_code_ = value; } |
| 107 | 107 |
| 108 CodeIndexTable* code_index_table() const { return code_index_table_; } | |
| 109 void set_code_index_table(CodeIndexTable* value) { | |
| 110 code_index_table_ = value; | |
| 111 } | |
| 112 | |
| 113 LongJump* long_jump_base() const { return long_jump_base_; } | 108 LongJump* long_jump_base() const { return long_jump_base_; } |
| 114 void set_long_jump_base(LongJump* value) { long_jump_base_ = value; } | 109 void set_long_jump_base(LongJump* value) { long_jump_base_ = value; } |
| 115 | 110 |
| 116 TimerList& timer_list() { return timer_list_; } | 111 TimerList& timer_list() { return timer_list_; } |
| 117 | 112 |
| 118 static intptr_t current_zone_offset() { | 113 static intptr_t current_zone_offset() { |
| 119 return OFFSET_OF(Isolate, current_zone_); | 114 return OFFSET_OF(Isolate, current_zone_); |
| 120 } | 115 } |
| 121 | 116 |
| 122 void set_init_callback_data(void* value) { | 117 void set_init_callback_data(void* value) { |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 Dart_Port main_port_; | 196 Dart_Port main_port_; |
| 202 Heap* heap_; | 197 Heap* heap_; |
| 203 ObjectStore* object_store_; | 198 ObjectStore* object_store_; |
| 204 RawContext* top_context_; | 199 RawContext* top_context_; |
| 205 int32_t random_seed_; | 200 int32_t random_seed_; |
| 206 uword top_exit_frame_info_; | 201 uword top_exit_frame_info_; |
| 207 void* init_callback_data_; | 202 void* init_callback_data_; |
| 208 Dart_LibraryTagHandler library_tag_handler_; | 203 Dart_LibraryTagHandler library_tag_handler_; |
| 209 ApiState* api_state_; | 204 ApiState* api_state_; |
| 210 StubCode* stub_code_; | 205 StubCode* stub_code_; |
| 211 CodeIndexTable* code_index_table_; | |
| 212 Debugger* debugger_; | 206 Debugger* debugger_; |
| 213 LongJump* long_jump_base_; | 207 LongJump* long_jump_base_; |
| 214 TimerList timer_list_; | 208 TimerList timer_list_; |
| 215 intptr_t ast_node_id_; | 209 intptr_t ast_node_id_; |
| 216 Mutex* mutex_; // protects stack_limit_ and saved_stack_limit_. | 210 Mutex* mutex_; // protects stack_limit_ and saved_stack_limit_. |
| 217 uword stack_limit_; | 211 uword stack_limit_; |
| 218 uword saved_stack_limit_; | 212 uword saved_stack_limit_; |
| 219 MessageHandler* message_handler_; | 213 MessageHandler* message_handler_; |
| 220 GcPrologueCallbacks gc_prologue_callbacks_; | 214 GcPrologueCallbacks gc_prologue_callbacks_; |
| 221 GcEpilogueCallbacks gc_epilogue_callbacks_; | 215 GcEpilogueCallbacks gc_epilogue_callbacks_; |
| 222 | 216 |
| 223 static Dart_IsolateCreateCallback create_callback_; | 217 static Dart_IsolateCreateCallback create_callback_; |
| 224 static Dart_IsolateInterruptCallback interrupt_callback_; | 218 static Dart_IsolateInterruptCallback interrupt_callback_; |
| 225 | 219 |
| 226 DISALLOW_COPY_AND_ASSIGN(Isolate); | 220 DISALLOW_COPY_AND_ASSIGN(Isolate); |
| 227 }; | 221 }; |
| 228 | 222 |
| 229 } // namespace dart | 223 } // namespace dart |
| 230 | 224 |
| 231 #endif // VM_ISOLATE_H_ | 225 #endif // VM_ISOLATE_H_ |
| OLD | NEW |