| 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 "vm/class_table.h" | 10 #include "vm/class_table.h" |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 | 153 |
| 154 void ScheduleInterrupts(uword interrupt_bits); | 154 void ScheduleInterrupts(uword interrupt_bits); |
| 155 uword GetAndClearInterrupts(); | 155 uword GetAndClearInterrupts(); |
| 156 | 156 |
| 157 MessageHandler* message_handler() const { return message_handler_; } | 157 MessageHandler* message_handler() const { return message_handler_; } |
| 158 void set_message_handler(MessageHandler* value) { message_handler_ = value; } | 158 void set_message_handler(MessageHandler* value) { message_handler_ = value; } |
| 159 | 159 |
| 160 uword spawn_data() const { return spawn_data_; } | 160 uword spawn_data() const { return spawn_data_; } |
| 161 void set_spawn_data(uword value) { spawn_data_ = value; } | 161 void set_spawn_data(uword value) { spawn_data_ = value; } |
| 162 | 162 |
| 163 // Deprecate. |
| 163 intptr_t ast_node_id() const { return ast_node_id_; } | 164 intptr_t ast_node_id() const { return ast_node_id_; } |
| 164 void set_ast_node_id(int value) { ast_node_id_ = value; } | 165 void set_ast_node_id(int value) { ast_node_id_ = value; } |
| 165 | 166 |
| 167 intptr_t computation_id() const { return computation_id_; } |
| 168 void set_computation_id(int value) { computation_id_ = value; } |
| 169 |
| 166 Debugger* debugger() const { return debugger_; } | 170 Debugger* debugger() const { return debugger_; } |
| 167 | 171 |
| 168 static void SetCreateCallback(Dart_IsolateCreateCallback cback); | 172 static void SetCreateCallback(Dart_IsolateCreateCallback cback); |
| 169 static Dart_IsolateCreateCallback CreateCallback(); | 173 static Dart_IsolateCreateCallback CreateCallback(); |
| 170 | 174 |
| 171 static void SetInterruptCallback(Dart_IsolateInterruptCallback cback); | 175 static void SetInterruptCallback(Dart_IsolateInterruptCallback cback); |
| 172 static Dart_IsolateInterruptCallback InterruptCallback(); | 176 static Dart_IsolateInterruptCallback InterruptCallback(); |
| 173 | 177 |
| 174 GcPrologueCallbacks& gc_prologue_callbacks() { | 178 GcPrologueCallbacks& gc_prologue_callbacks() { |
| 175 return gc_prologue_callbacks_; | 179 return gc_prologue_callbacks_; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 201 RawContext* top_context_; | 205 RawContext* top_context_; |
| 202 int32_t random_seed_; | 206 int32_t random_seed_; |
| 203 uword top_exit_frame_info_; | 207 uword top_exit_frame_info_; |
| 204 void* init_callback_data_; | 208 void* init_callback_data_; |
| 205 Dart_LibraryTagHandler library_tag_handler_; | 209 Dart_LibraryTagHandler library_tag_handler_; |
| 206 ApiState* api_state_; | 210 ApiState* api_state_; |
| 207 StubCode* stub_code_; | 211 StubCode* stub_code_; |
| 208 Debugger* debugger_; | 212 Debugger* debugger_; |
| 209 LongJump* long_jump_base_; | 213 LongJump* long_jump_base_; |
| 210 TimerList timer_list_; | 214 TimerList timer_list_; |
| 211 intptr_t ast_node_id_; | 215 intptr_t ast_node_id_; // Deprecate. |
| 216 intptr_t computation_id_; |
| 212 Mutex* mutex_; // protects stack_limit_ and saved_stack_limit_. | 217 Mutex* mutex_; // protects stack_limit_ and saved_stack_limit_. |
| 213 uword stack_limit_; | 218 uword stack_limit_; |
| 214 uword saved_stack_limit_; | 219 uword saved_stack_limit_; |
| 215 MessageHandler* message_handler_; | 220 MessageHandler* message_handler_; |
| 216 uword spawn_data_; | 221 uword spawn_data_; |
| 217 GcPrologueCallbacks gc_prologue_callbacks_; | 222 GcPrologueCallbacks gc_prologue_callbacks_; |
| 218 GcEpilogueCallbacks gc_epilogue_callbacks_; | 223 GcEpilogueCallbacks gc_epilogue_callbacks_; |
| 219 | 224 |
| 220 static Dart_IsolateCreateCallback create_callback_; | 225 static Dart_IsolateCreateCallback create_callback_; |
| 221 static Dart_IsolateInterruptCallback interrupt_callback_; | 226 static Dart_IsolateInterruptCallback interrupt_callback_; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 Isolate* new_isolate_; | 288 Isolate* new_isolate_; |
| 284 Isolate* saved_isolate_; | 289 Isolate* saved_isolate_; |
| 285 uword saved_stack_limit_; | 290 uword saved_stack_limit_; |
| 286 | 291 |
| 287 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); | 292 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); |
| 288 }; | 293 }; |
| 289 | 294 |
| 290 } // namespace dart | 295 } // namespace dart |
| 291 | 296 |
| 292 #endif // VM_ISOLATE_H_ | 297 #endif // VM_ISOLATE_H_ |
| OLD | NEW |