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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 | 291 |
292 bool MakeRunnable(); | 292 bool MakeRunnable(); |
293 void Run(); | 293 void Run(); |
294 | 294 |
295 MessageHandler* message_handler() const { return message_handler_; } | 295 MessageHandler* message_handler() const { return message_handler_; } |
296 void set_message_handler(MessageHandler* value) { message_handler_ = value; } | 296 void set_message_handler(MessageHandler* value) { message_handler_ = value; } |
297 | 297 |
298 bool is_runnable() const { return is_runnable_; } | 298 bool is_runnable() const { return is_runnable_; } |
299 void set_is_runnable(bool value) { is_runnable_ = value; } | 299 void set_is_runnable(bool value) { is_runnable_ = value; } |
300 | 300 |
| 301 bool pause_isolates_flags_overridden() const { |
| 302 return pause_isolates_flags_overridden_; |
| 303 } |
| 304 |
| 305 void set_pause_isolates_flags_overridden(bool value) { |
| 306 pause_isolates_flags_overridden_ = value; |
| 307 } |
| 308 |
301 IsolateSpawnState* spawn_state() const { return spawn_state_; } | 309 IsolateSpawnState* spawn_state() const { return spawn_state_; } |
302 void set_spawn_state(IsolateSpawnState* value) { spawn_state_ = value; } | 310 void set_spawn_state(IsolateSpawnState* value) { spawn_state_ = value; } |
303 | 311 |
304 Mutex* mutex() const { return mutex_; } | 312 Mutex* mutex() const { return mutex_; } |
305 | 313 |
306 Debugger* debugger() const { | 314 Debugger* debugger() const { |
307 ASSERT(debugger_ != NULL); | 315 ASSERT(debugger_ != NULL); |
308 return debugger_; | 316 return debugger_; |
309 } | 317 } |
310 | 318 |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 Flags flags_; | 750 Flags flags_; |
743 Random random_; | 751 Random random_; |
744 Simulator* simulator_; | 752 Simulator* simulator_; |
745 Mutex* mutex_; // protects stack_limit_, saved_stack_limit_, compiler stats. | 753 Mutex* mutex_; // protects stack_limit_, saved_stack_limit_, compiler stats. |
746 uword saved_stack_limit_; | 754 uword saved_stack_limit_; |
747 uword stack_overflow_flags_; | 755 uword stack_overflow_flags_; |
748 int32_t stack_overflow_count_; | 756 int32_t stack_overflow_count_; |
749 MessageHandler* message_handler_; | 757 MessageHandler* message_handler_; |
750 IsolateSpawnState* spawn_state_; | 758 IsolateSpawnState* spawn_state_; |
751 bool is_runnable_; | 759 bool is_runnable_; |
| 760 bool pause_isolates_flags_overridden_; |
752 Dart_GcPrologueCallback gc_prologue_callback_; | 761 Dart_GcPrologueCallback gc_prologue_callback_; |
753 Dart_GcEpilogueCallback gc_epilogue_callback_; | 762 Dart_GcEpilogueCallback gc_epilogue_callback_; |
754 intptr_t defer_finalization_count_; | 763 intptr_t defer_finalization_count_; |
755 DeoptContext* deopt_context_; | 764 DeoptContext* deopt_context_; |
756 | 765 |
757 CompilerStats* compiler_stats_; | 766 CompilerStats* compiler_stats_; |
758 | 767 |
759 bool is_service_isolate_; | 768 bool is_service_isolate_; |
760 | 769 |
761 // Status support. | 770 // Status support. |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
991 intptr_t* spawn_count_; | 1000 intptr_t* spawn_count_; |
992 | 1001 |
993 Isolate::Flags isolate_flags_; | 1002 Isolate::Flags isolate_flags_; |
994 bool paused_; | 1003 bool paused_; |
995 bool errors_are_fatal_; | 1004 bool errors_are_fatal_; |
996 }; | 1005 }; |
997 | 1006 |
998 } // namespace dart | 1007 } // namespace dart |
999 | 1008 |
1000 #endif // VM_ISOLATE_H_ | 1009 #endif // VM_ISOLATE_H_ |
OLD | NEW |