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

Unified Diff: runtime/vm/isolate.h

Issue 271153002: Add pause/resume for isolates in vmservice/observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: gen js Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/debugger_test.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.h
diff --git a/runtime/vm/isolate.h b/runtime/vm/isolate.h
index 309b3eda48b616b8a9a3c0dc556e4800cf4c7619..bad6ffa85fbce82150dc122330418a0f0b9de87b 100644
--- a/runtime/vm/isolate.h
+++ b/runtime/vm/isolate.h
@@ -329,6 +329,19 @@ class Isolate : public BaseIsolate {
return OFFSET_OF(Isolate, single_step_);
}
+ // Requests that the debugger resume execution.
+ void Resume() {
+ resume_request_ = true;
+ }
+
+ // Returns whether the vm service has requested that the debugger
+ // resume execution.
+ bool GetAndClearResumeRequest() {
+ bool resume_request = resume_request_;
+ resume_request_ = false;
+ return resume_request;
+ }
+
Random* random() { return &random_; }
Simulator* simulator() const { return simulator_; }
@@ -552,6 +565,7 @@ class Isolate : public BaseIsolate {
StubCode* stub_code_;
Debugger* debugger_;
bool single_step_;
+ bool resume_request_;
Random random_;
Simulator* simulator_;
LongJumpScope* long_jump_base_;
« no previous file with comments | « runtime/vm/debugger_test.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698