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

Unified Diff: runtime/vm/service_event.h

Issue 1965823002: Initial isolate reload support (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
Index: runtime/vm/service_event.h
diff --git a/runtime/vm/service_event.h b/runtime/vm/service_event.h
index 3ca26e40a97c12f41b7b27c615178d0643afccd6..b959695ceb72f626b9679d5bddfddba603a051a7 100644
--- a/runtime/vm/service_event.h
+++ b/runtime/vm/service_event.h
@@ -17,11 +17,11 @@ class ServiceEvent {
enum EventKind {
kVMUpdate, // VM identity information has changed
- kIsolateStart, // New isolate has started
- kIsolateRunnable, // Isolate is ready to run
- kIsolateExit, // Isolate has exited
- kIsolateUpdate, // Isolate identity information has changed
-
+ kIsolateStart, // New isolate has started
+ kIsolateRunnable, // Isolate is ready to run
+ kIsolateExit, // Isolate has exited
+ kIsolateUpdate, // Isolate identity information has changed
+ kIsolateReload, // Result of a reload request
kServiceExtensionAdded, // A service extension was registered
kPauseStart, // --pause-isolates-on-start
@@ -138,6 +138,15 @@ class ServiceEvent {
exception_ = exception;
}
+ const Error* reload_error() const {
+ ASSERT(kind_ == kIsolateReload);
+ return reload_error_;
+ }
+ void set_reload_error(const Error* error) {
+ ASSERT(kind_ == kIsolateReload);
+ reload_error_ = error;
+ }
+
bool at_async_jump() const {
return at_async_jump_;
}
@@ -209,6 +218,7 @@ class ServiceEvent {
const TimelineEventBlock* timeline_event_block_;
const String* extension_rpc_;
const Object* exception_;
+ const Error* reload_error_;
bool at_async_jump_;
const Object* inspectee_;
const Heap::GCStats* gc_stats_;

Powered by Google App Engine
This is Rietveld 408576698