Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(489)

Side by Side Diff: runtime/vm/isolate.h

Issue 1665773004: Add necessary support functions so that embedders can implemented pause on start and exit (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698