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

Unified Diff: runtime/vm/isolate.h

Issue 38703009: Update VM service to new isolate API (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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/isolate.h
diff --git a/runtime/vm/isolate.h b/runtime/vm/isolate.h
index 128f7e22cafa3853a9ec070fc7c0843e1df44b35..195fdf8793c86aa025235dc0a7671b37c6d32d18 100644
--- a/runtime/vm/isolate.h
+++ b/runtime/vm/isolate.h
@@ -130,6 +130,12 @@ class Isolate : public BaseIsolate {
main_port_ = port;
}
+ Dart_Port service_port() { return service_port_; }
+ void set_service_port(Dart_Port port) {
+ ASSERT(service_port_ == 0); // Only set service port once.
+ service_port_ = port;
+ }
+
Heap* heap() const { return heap_; }
void set_heap(Heap* value) { heap_ = value; }
static intptr_t heap_offset() { return OFFSET_OF(Isolate, heap_); }
@@ -388,6 +394,7 @@ class Isolate : public BaseIsolate {
char* name_;
int64_t start_time_;
Dart_Port main_port_;
+ Dart_Port service_port_;
Heap* heap_;
ObjectStore* object_store_;
RawContext* top_context_;

Powered by Google App Engine
This is Rietveld 408576698