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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 Mutex* mutex() const { return mutex_; } | 322 Mutex* mutex() const { return mutex_; } |
323 | 323 |
324 Debugger* debugger() const { return debugger_; } | 324 Debugger* debugger() const { return debugger_; } |
325 | 325 |
326 void set_single_step(bool value) { single_step_ = value; } | 326 void set_single_step(bool value) { single_step_ = value; } |
327 bool single_step() const { return single_step_; } | 327 bool single_step() const { return single_step_; } |
328 static intptr_t single_step_offset() { | 328 static intptr_t single_step_offset() { |
329 return OFFSET_OF(Isolate, single_step_); | 329 return OFFSET_OF(Isolate, single_step_); |
330 } | 330 } |
331 | 331 |
| 332 // Requests that the debugger resume execution. |
| 333 void Resume() { |
| 334 resume_request_ = true; |
| 335 } |
| 336 |
| 337 // Returns whether the vm service has requested that the debugger |
| 338 // resume execution. |
| 339 bool GetAndClearResumeRequest() { |
| 340 bool resume_request = resume_request_; |
| 341 resume_request_ = false; |
| 342 return resume_request; |
| 343 } |
| 344 |
332 Random* random() { return &random_; } | 345 Random* random() { return &random_; } |
333 | 346 |
334 Simulator* simulator() const { return simulator_; } | 347 Simulator* simulator() const { return simulator_; } |
335 void set_simulator(Simulator* value) { simulator_ = value; } | 348 void set_simulator(Simulator* value) { simulator_ = value; } |
336 | 349 |
337 Dart_GcPrologueCallback gc_prologue_callback() const { | 350 Dart_GcPrologueCallback gc_prologue_callback() const { |
338 return gc_prologue_callback_; | 351 return gc_prologue_callback_; |
339 } | 352 } |
340 | 353 |
341 void set_gc_prologue_callback(Dart_GcPrologueCallback callback) { | 354 void set_gc_prologue_callback(Dart_GcPrologueCallback callback) { |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 ObjectStore* object_store_; | 558 ObjectStore* object_store_; |
546 RawContext* top_context_; | 559 RawContext* top_context_; |
547 uword top_exit_frame_info_; | 560 uword top_exit_frame_info_; |
548 void* init_callback_data_; | 561 void* init_callback_data_; |
549 Dart_EnvironmentCallback environment_callback_; | 562 Dart_EnvironmentCallback environment_callback_; |
550 Dart_LibraryTagHandler library_tag_handler_; | 563 Dart_LibraryTagHandler library_tag_handler_; |
551 ApiState* api_state_; | 564 ApiState* api_state_; |
552 StubCode* stub_code_; | 565 StubCode* stub_code_; |
553 Debugger* debugger_; | 566 Debugger* debugger_; |
554 bool single_step_; | 567 bool single_step_; |
| 568 bool resume_request_; |
555 Random random_; | 569 Random random_; |
556 Simulator* simulator_; | 570 Simulator* simulator_; |
557 LongJumpScope* long_jump_base_; | 571 LongJumpScope* long_jump_base_; |
558 TimerList timer_list_; | 572 TimerList timer_list_; |
559 intptr_t deopt_id_; | 573 intptr_t deopt_id_; |
560 Mutex* mutex_; // protects stack_limit_ and saved_stack_limit_. | 574 Mutex* mutex_; // protects stack_limit_ and saved_stack_limit_. |
561 uword stack_limit_; | 575 uword stack_limit_; |
562 uword saved_stack_limit_; | 576 uword saved_stack_limit_; |
563 uword stack_overflow_flags_; | 577 uword stack_overflow_flags_; |
564 int32_t stack_overflow_count_; | 578 int32_t stack_overflow_count_; |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
722 char* script_url_; | 736 char* script_url_; |
723 char* library_url_; | 737 char* library_url_; |
724 char* class_name_; | 738 char* class_name_; |
725 char* function_name_; | 739 char* function_name_; |
726 char* exception_callback_name_; | 740 char* exception_callback_name_; |
727 }; | 741 }; |
728 | 742 |
729 } // namespace dart | 743 } // namespace dart |
730 | 744 |
731 #endif // VM_ISOLATE_H_ | 745 #endif // VM_ISOLATE_H_ |
OLD | NEW |