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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 bool error_on_bad_override_; | 346 bool error_on_bad_override_; |
347 | 347 |
348 friend class Isolate; | 348 friend class Isolate; |
349 | 349 |
350 DISALLOW_ALLOCATION(); | 350 DISALLOW_ALLOCATION(); |
351 DISALLOW_COPY_AND_ASSIGN(Flags); | 351 DISALLOW_COPY_AND_ASSIGN(Flags); |
352 }; | 352 }; |
353 | 353 |
354 const Flags& flags() const { return flags_; } | 354 const Flags& flags() const { return flags_; } |
355 | 355 |
356 // Requests that the debugger resume execution. | 356 // Lets the embedder know that a service message resulted in a resume request. |
357 void Resume() { | 357 void SetResumeRequest() { |
358 resume_request_ = true; | 358 resume_request_ = true; |
359 set_last_resume_timestamp(); | 359 set_last_resume_timestamp(); |
360 } | 360 } |
361 | 361 |
362 void set_last_resume_timestamp() { | 362 void set_last_resume_timestamp() { |
363 last_resume_timestamp_ = OS::GetCurrentTimeMillis(); | 363 last_resume_timestamp_ = OS::GetCurrentTimeMillis(); |
364 } | 364 } |
365 | 365 |
366 int64_t last_resume_timestamp() const { | 366 int64_t last_resume_timestamp() const { |
367 return last_resume_timestamp_; | 367 return last_resume_timestamp_; |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
991 intptr_t* spawn_count_; | 991 intptr_t* spawn_count_; |
992 | 992 |
993 Isolate::Flags isolate_flags_; | 993 Isolate::Flags isolate_flags_; |
994 bool paused_; | 994 bool paused_; |
995 bool errors_are_fatal_; | 995 bool errors_are_fatal_; |
996 }; | 996 }; |
997 | 997 |
998 } // namespace dart | 998 } // namespace dart |
999 | 999 |
1000 #endif // VM_ISOLATE_H_ | 1000 #endif // VM_ISOLATE_H_ |
OLD | NEW |