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 set_last_resume_timestamp(); |
| 451 } |
| 452 |
| 453 void set_last_resume_timestamp() { |
450 last_resume_timestamp_ = OS::GetCurrentTimeMillis(); | 454 last_resume_timestamp_ = OS::GetCurrentTimeMillis(); |
451 } | 455 } |
452 | 456 |
453 int64_t last_resume_timestamp() const { | 457 int64_t last_resume_timestamp() const { |
454 return last_resume_timestamp_; | 458 return last_resume_timestamp_; |
455 } | 459 } |
456 | 460 |
457 // Returns whether the vm service has requested that the debugger | 461 // Returns whether the vm service has requested that the debugger |
458 // resume execution. | 462 // resume execution. |
459 bool GetAndClearResumeRequest() { | 463 bool GetAndClearResumeRequest() { |
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1117 uint8_t* serialized_message_; | 1121 uint8_t* serialized_message_; |
1118 intptr_t serialized_message_len_; | 1122 intptr_t serialized_message_len_; |
1119 Isolate::Flags isolate_flags_; | 1123 Isolate::Flags isolate_flags_; |
1120 bool paused_; | 1124 bool paused_; |
1121 bool errors_are_fatal_; | 1125 bool errors_are_fatal_; |
1122 }; | 1126 }; |
1123 | 1127 |
1124 } // namespace dart | 1128 } // namespace dart |
1125 | 1129 |
1126 #endif // VM_ISOLATE_H_ | 1130 #endif // VM_ISOLATE_H_ |
OLD | NEW |