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 "platform/thread.h" | 10 #include "platform/thread.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 class Debugger; | 28 class Debugger; |
29 class DeoptContext; | 29 class DeoptContext; |
30 class Field; | 30 class Field; |
31 class Function; | 31 class Function; |
32 class HandleScope; | 32 class HandleScope; |
33 class HandleVisitor; | 33 class HandleVisitor; |
34 class Heap; | 34 class Heap; |
35 class ICData; | 35 class ICData; |
36 class Instance; | 36 class Instance; |
37 class IsolateProfilerData; | 37 class IsolateProfilerData; |
| 38 class IsolateSpawnState; |
38 class LongJumpScope; | 39 class LongJumpScope; |
39 class MessageHandler; | 40 class MessageHandler; |
40 class Mutex; | 41 class Mutex; |
41 class Object; | 42 class Object; |
42 class ObjectPointerVisitor; | 43 class ObjectPointerVisitor; |
43 class ObjectStore; | 44 class ObjectStore; |
44 class RawInstance; | 45 class RawInstance; |
45 class RawArray; | 46 class RawArray; |
46 class RawContext; | 47 class RawContext; |
47 class RawDouble; | 48 class RawDouble; |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 | 231 |
231 bool MakeRunnable(); | 232 bool MakeRunnable(); |
232 void Run(); | 233 void Run(); |
233 | 234 |
234 MessageHandler* message_handler() const { return message_handler_; } | 235 MessageHandler* message_handler() const { return message_handler_; } |
235 void set_message_handler(MessageHandler* value) { message_handler_ = value; } | 236 void set_message_handler(MessageHandler* value) { message_handler_ = value; } |
236 | 237 |
237 bool is_runnable() const { return is_runnable_; } | 238 bool is_runnable() const { return is_runnable_; } |
238 void set_is_runnable(bool value) { is_runnable_ = value; } | 239 void set_is_runnable(bool value) { is_runnable_ = value; } |
239 | 240 |
240 uword spawn_data() const { return spawn_data_; } | 241 IsolateSpawnState* spawn_state() const { return spawn_state_; } |
241 void set_spawn_data(uword value) { spawn_data_ = value; } | 242 void set_spawn_state(IsolateSpawnState* value) { spawn_state_ = value; } |
242 | 243 |
243 static const intptr_t kNoDeoptId = -1; | 244 static const intptr_t kNoDeoptId = -1; |
244 static const intptr_t kDeoptIdStep = 2; | 245 static const intptr_t kDeoptIdStep = 2; |
245 static const intptr_t kDeoptIdBeforeOffset = 0; | 246 static const intptr_t kDeoptIdBeforeOffset = 0; |
246 static const intptr_t kDeoptIdAfterOffset = 1; | 247 static const intptr_t kDeoptIdAfterOffset = 1; |
247 intptr_t deopt_id() const { return deopt_id_; } | 248 intptr_t deopt_id() const { return deopt_id_; } |
248 void set_deopt_id(int value) { | 249 void set_deopt_id(int value) { |
249 ASSERT(value >= 0); | 250 ASSERT(value >= 0); |
250 deopt_id_ = value; | 251 deopt_id_ = value; |
251 } | 252 } |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 bool single_step_; | 444 bool single_step_; |
444 Random random_; | 445 Random random_; |
445 Simulator* simulator_; | 446 Simulator* simulator_; |
446 LongJumpScope* long_jump_base_; | 447 LongJumpScope* long_jump_base_; |
447 TimerList timer_list_; | 448 TimerList timer_list_; |
448 intptr_t deopt_id_; | 449 intptr_t deopt_id_; |
449 Mutex* mutex_; // protects stack_limit_ and saved_stack_limit_. | 450 Mutex* mutex_; // protects stack_limit_ and saved_stack_limit_. |
450 uword stack_limit_; | 451 uword stack_limit_; |
451 uword saved_stack_limit_; | 452 uword saved_stack_limit_; |
452 MessageHandler* message_handler_; | 453 MessageHandler* message_handler_; |
453 uword spawn_data_; | 454 IsolateSpawnState* spawn_state_; |
454 bool is_runnable_; | 455 bool is_runnable_; |
455 GcPrologueCallbacks gc_prologue_callbacks_; | 456 GcPrologueCallbacks gc_prologue_callbacks_; |
456 GcEpilogueCallbacks gc_epilogue_callbacks_; | 457 GcEpilogueCallbacks gc_epilogue_callbacks_; |
457 intptr_t defer_finalization_count_; | 458 intptr_t defer_finalization_count_; |
458 DeoptContext* deopt_context_; | 459 DeoptContext* deopt_context_; |
459 | 460 |
460 // Status support. | 461 // Status support. |
461 char* stacktrace_; | 462 char* stacktrace_; |
462 intptr_t stack_frame_index_; | 463 intptr_t stack_frame_index_; |
463 ObjectHistogram* object_histogram_; | 464 ObjectHistogram* object_histogram_; |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 char* script_url_; | 583 char* script_url_; |
583 char* library_url_; | 584 char* library_url_; |
584 char* class_name_; | 585 char* class_name_; |
585 char* function_name_; | 586 char* function_name_; |
586 char* exception_callback_name_; | 587 char* exception_callback_name_; |
587 }; | 588 }; |
588 | 589 |
589 } // namespace dart | 590 } // namespace dart |
590 | 591 |
591 #endif // VM_ISOLATE_H_ | 592 #endif // VM_ISOLATE_H_ |
OLD | NEW |