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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 ASSERT(!has_compiled()); | 440 ASSERT(!has_compiled()); |
441 flags_.type_checks_ = true; | 441 flags_.type_checks_ = true; |
442 flags_.asserts_ = true; | 442 flags_.asserts_ = true; |
443 flags_.error_on_bad_type_ = true; | 443 flags_.error_on_bad_type_ = true; |
444 flags_.error_on_bad_override_ = true; | 444 flags_.error_on_bad_override_ = true; |
445 } | 445 } |
446 | 446 |
447 // Requests that the debugger resume execution. | 447 // Requests that the debugger resume execution. |
448 void Resume() { | 448 void Resume() { |
449 resume_request_ = true; | 449 resume_request_ = true; |
| 450 last_resume_timestamp_ = OS::GetCurrentTimeMillis(); |
| 451 } |
| 452 |
| 453 int64_t last_resume_timestamp() const { |
| 454 return last_resume_timestamp_; |
450 } | 455 } |
451 | 456 |
452 // Returns whether the vm service has requested that the debugger | 457 // Returns whether the vm service has requested that the debugger |
453 // resume execution. | 458 // resume execution. |
454 bool GetAndClearResumeRequest() { | 459 bool GetAndClearResumeRequest() { |
455 bool resume_request = resume_request_; | 460 bool resume_request = resume_request_; |
456 resume_request_ = false; | 461 resume_request_ = false; |
457 return resume_request; | 462 return resume_request; |
458 } | 463 } |
459 | 464 |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 Heap* heap_; | 801 Heap* heap_; |
797 ObjectStore* object_store_; | 802 ObjectStore* object_store_; |
798 uword top_exit_frame_info_; | 803 uword top_exit_frame_info_; |
799 void* init_callback_data_; | 804 void* init_callback_data_; |
800 Dart_EnvironmentCallback environment_callback_; | 805 Dart_EnvironmentCallback environment_callback_; |
801 Dart_LibraryTagHandler library_tag_handler_; | 806 Dart_LibraryTagHandler library_tag_handler_; |
802 ApiState* api_state_; | 807 ApiState* api_state_; |
803 Debugger* debugger_; | 808 Debugger* debugger_; |
804 bool single_step_; | 809 bool single_step_; |
805 bool resume_request_; | 810 bool resume_request_; |
| 811 int64_t last_resume_timestamp_; |
806 bool has_compiled_; | 812 bool has_compiled_; |
807 Flags flags_; | 813 Flags flags_; |
808 Random random_; | 814 Random random_; |
809 Simulator* simulator_; | 815 Simulator* simulator_; |
810 TimerList timer_list_; | 816 TimerList timer_list_; |
811 intptr_t deopt_id_; | 817 intptr_t deopt_id_; |
812 Mutex* mutex_; // protects stack_limit_ and saved_stack_limit_. | 818 Mutex* mutex_; // protects stack_limit_ and saved_stack_limit_. |
813 uword stack_limit_; | 819 uword stack_limit_; |
814 uword saved_stack_limit_; | 820 uword saved_stack_limit_; |
815 uword stack_base_; | 821 uword stack_base_; |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1069 uint8_t* serialized_message_; | 1075 uint8_t* serialized_message_; |
1070 intptr_t serialized_message_len_; | 1076 intptr_t serialized_message_len_; |
1071 Isolate::Flags isolate_flags_; | 1077 Isolate::Flags isolate_flags_; |
1072 bool paused_; | 1078 bool paused_; |
1073 bool errors_are_fatal_; | 1079 bool errors_are_fatal_; |
1074 }; | 1080 }; |
1075 | 1081 |
1076 } // namespace dart | 1082 } // namespace dart |
1077 | 1083 |
1078 #endif // VM_ISOLATE_H_ | 1084 #endif // VM_ISOLATE_H_ |
OLD | NEW |