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

Unified Diff: runtime/vm/service_event.h

Issue 2072543002: First cut at _spawnUri rpc in the vm service. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Code review Created 4 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/bootstrap_natives.h ('k') | runtime/vm/service_event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service_event.h
diff --git a/runtime/vm/service_event.h b/runtime/vm/service_event.h
index d6bc92ed24bf11535f092afb1f18c9df90e30a1d..cd48844ca3657c8c05fcde3d100c6e0d23fecc64 100644
--- a/runtime/vm/service_event.h
+++ b/runtime/vm/service_event.h
@@ -29,6 +29,7 @@ class ServiceEvent {
kIsolateExit, // Isolate has exited
kIsolateUpdate, // Isolate identity information has changed
kIsolateReload, // Result of a reload request
+ kIsolateSpawn, // Result of an isolate spawn request
kServiceExtensionAdded, // A service extension was registered
kPauseStart, // --pause-isolates-on-start
@@ -158,6 +159,24 @@ class ServiceEvent {
reload_error_ = error;
}
+ const String* spawn_token() const {
+ ASSERT(kind_ == kIsolateSpawn);
+ return spawn_token_;
+ }
+ void set_spawn_token(const String* error) {
+ ASSERT(kind_ == kIsolateSpawn);
+ spawn_token_ = error;
+ }
+
+ const String* spawn_error() const {
+ ASSERT(kind_ == kIsolateSpawn);
+ return spawn_error_;
+ }
+ void set_spawn_error(const String* error) {
+ ASSERT(kind_ == kIsolateSpawn);
+ spawn_error_ = error;
+ }
+
bool at_async_jump() const {
return at_async_jump_;
}
@@ -232,6 +251,8 @@ class ServiceEvent {
const String* extension_rpc_;
const Object* exception_;
const Error* reload_error_;
+ const String* spawn_token_;
+ const String* spawn_error_;
bool at_async_jump_;
const Object* inspectee_;
const Heap::GCStats* gc_stats_;
« no previous file with comments | « runtime/vm/bootstrap_natives.h ('k') | runtime/vm/service_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698