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

Unified Diff: runtime/vm/service_event.cc

Issue 1241673003: Async-step, first cut. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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/service_event.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service_event.cc
diff --git a/runtime/vm/service_event.cc b/runtime/vm/service_event.cc
index e3eb3afbb0f2536ca1be51c67a0a0a99e9daf944..a53ace2d9343db46582249460aef121a31a817ad 100644
--- a/runtime/vm/service_event.cc
+++ b/runtime/vm/service_event.cc
@@ -36,6 +36,7 @@ ServiceEvent::ServiceEvent(const DebuggerEvent* debugger_event)
breakpoint_(NULL),
top_frame_(NULL),
exception_(NULL),
+ async_continuation_(NULL),
inspectee_(NULL),
gc_stats_(NULL),
bytes_(NULL),
@@ -43,6 +44,7 @@ ServiceEvent::ServiceEvent(const DebuggerEvent* debugger_event)
DebuggerEvent::EventType type = debugger_event->type();
if (type == DebuggerEvent::kBreakpointReached) {
set_breakpoint(debugger_event->breakpoint());
+ set_async_continuation(debugger_event->async_continuation());
}
if (type == DebuggerEvent::kExceptionThrown) {
set_exception(debugger_event->exception());
@@ -161,6 +163,9 @@ void ServiceEvent::PrintJSON(JSONStream* js) const {
if (exception() != NULL) {
jsobj.AddProperty("exception", *(exception()));
}
+ if (async_continuation() != NULL) {
+ jsobj.AddProperty("_asyncContinuation", *(async_continuation()));
+ }
if (inspectee() != NULL) {
jsobj.AddProperty("inspectee", *(inspectee()));
}
« no previous file with comments | « runtime/vm/service_event.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698