| 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 10 matching lines...) Expand all Loading... |
| 21 class CodeIndexTable; | 21 class CodeIndexTable; |
| 22 class Debugger; | 22 class Debugger; |
| 23 class HandleScope; | 23 class HandleScope; |
| 24 class HandleVisitor; | 24 class HandleVisitor; |
| 25 class Heap; | 25 class Heap; |
| 26 class LongJump; | 26 class LongJump; |
| 27 class MessageHandler; | 27 class MessageHandler; |
| 28 class Mutex; | 28 class Mutex; |
| 29 class ObjectPointerVisitor; | 29 class ObjectPointerVisitor; |
| 30 class ObjectStore; | 30 class ObjectStore; |
| 31 class RawArray; |
| 31 class RawContext; | 32 class RawContext; |
| 32 class RawError; | 33 class RawError; |
| 33 class StackResource; | 34 class StackResource; |
| 34 class StubCode; | 35 class StubCode; |
| 35 class Zone; | 36 class Zone; |
| 36 | 37 |
| 37 class Isolate : public BaseIsolate { | 38 class Isolate : public BaseIsolate { |
| 38 public: | 39 public: |
| 39 ~Isolate(); | 40 ~Isolate(); |
| 40 | 41 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 uword spawn_data() const { return spawn_data_; } | 161 uword spawn_data() const { return spawn_data_; } |
| 161 void set_spawn_data(uword value) { spawn_data_ = value; } | 162 void set_spawn_data(uword value) { spawn_data_ = value; } |
| 162 | 163 |
| 163 // Deprecate. | 164 // Deprecate. |
| 164 intptr_t ast_node_id() const { return ast_node_id_; } | 165 intptr_t ast_node_id() const { return ast_node_id_; } |
| 165 void set_ast_node_id(int value) { ast_node_id_ = value; } | 166 void set_ast_node_id(int value) { ast_node_id_ = value; } |
| 166 | 167 |
| 167 intptr_t computation_id() const { return computation_id_; } | 168 intptr_t computation_id() const { return computation_id_; } |
| 168 void set_computation_id(int value) { computation_id_ = value; } | 169 void set_computation_id(int value) { computation_id_ = value; } |
| 169 | 170 |
| 171 RawArray* ic_data_array() const { return ic_data_array_; } |
| 172 void set_ic_data_array(RawArray* value) { ic_data_array_ = value; } |
| 173 |
| 170 Debugger* debugger() const { return debugger_; } | 174 Debugger* debugger() const { return debugger_; } |
| 171 | 175 |
| 172 static void SetCreateCallback(Dart_IsolateCreateCallback cback); | 176 static void SetCreateCallback(Dart_IsolateCreateCallback cback); |
| 173 static Dart_IsolateCreateCallback CreateCallback(); | 177 static Dart_IsolateCreateCallback CreateCallback(); |
| 174 | 178 |
| 175 static void SetInterruptCallback(Dart_IsolateInterruptCallback cback); | 179 static void SetInterruptCallback(Dart_IsolateInterruptCallback cback); |
| 176 static Dart_IsolateInterruptCallback InterruptCallback(); | 180 static Dart_IsolateInterruptCallback InterruptCallback(); |
| 177 | 181 |
| 178 GcPrologueCallbacks& gc_prologue_callbacks() { | 182 GcPrologueCallbacks& gc_prologue_callbacks() { |
| 179 return gc_prologue_callbacks_; | 183 return gc_prologue_callbacks_; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 207 uword top_exit_frame_info_; | 211 uword top_exit_frame_info_; |
| 208 void* init_callback_data_; | 212 void* init_callback_data_; |
| 209 Dart_LibraryTagHandler library_tag_handler_; | 213 Dart_LibraryTagHandler library_tag_handler_; |
| 210 ApiState* api_state_; | 214 ApiState* api_state_; |
| 211 StubCode* stub_code_; | 215 StubCode* stub_code_; |
| 212 Debugger* debugger_; | 216 Debugger* debugger_; |
| 213 LongJump* long_jump_base_; | 217 LongJump* long_jump_base_; |
| 214 TimerList timer_list_; | 218 TimerList timer_list_; |
| 215 intptr_t ast_node_id_; // Deprecate. | 219 intptr_t ast_node_id_; // Deprecate. |
| 216 intptr_t computation_id_; | 220 intptr_t computation_id_; |
| 221 RawArray* ic_data_array_; |
| 217 Mutex* mutex_; // protects stack_limit_ and saved_stack_limit_. | 222 Mutex* mutex_; // protects stack_limit_ and saved_stack_limit_. |
| 218 uword stack_limit_; | 223 uword stack_limit_; |
| 219 uword saved_stack_limit_; | 224 uword saved_stack_limit_; |
| 220 MessageHandler* message_handler_; | 225 MessageHandler* message_handler_; |
| 221 uword spawn_data_; | 226 uword spawn_data_; |
| 222 GcPrologueCallbacks gc_prologue_callbacks_; | 227 GcPrologueCallbacks gc_prologue_callbacks_; |
| 223 GcEpilogueCallbacks gc_epilogue_callbacks_; | 228 GcEpilogueCallbacks gc_epilogue_callbacks_; |
| 224 | 229 |
| 225 static Dart_IsolateCreateCallback create_callback_; | 230 static Dart_IsolateCreateCallback create_callback_; |
| 226 static Dart_IsolateInterruptCallback interrupt_callback_; | 231 static Dart_IsolateInterruptCallback interrupt_callback_; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 Isolate* new_isolate_; | 293 Isolate* new_isolate_; |
| 289 Isolate* saved_isolate_; | 294 Isolate* saved_isolate_; |
| 290 uword saved_stack_limit_; | 295 uword saved_stack_limit_; |
| 291 | 296 |
| 292 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); | 297 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); |
| 293 }; | 298 }; |
| 294 | 299 |
| 295 } // namespace dart | 300 } // namespace dart |
| 296 | 301 |
| 297 #endif // VM_ISOLATE_H_ | 302 #endif // VM_ISOLATE_H_ |
| OLD | NEW |