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

Unified Diff: runtime/vm/isolate.h

Issue 9242035: Give isolates names to be used during debugging. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 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
===================================================================
--- runtime/vm/isolate.h (revision 3366)
+++ runtime/vm/isolate.h (working copy)
@@ -39,7 +39,7 @@
static void SetCurrent(Isolate* isolate);
static void InitOnce();
- static Isolate* Init();
+ static Isolate* Init(const char* name_prefix);
void Shutdown();
// Visit all object pointers.
@@ -66,6 +66,8 @@
MessageQueue* message_queue() const { return message_queue_; }
void set_message_queue(MessageQueue* value) { message_queue_ = value; }
+ const char* name() const { return name_; }
+
// The number of ports is only correct when read from the current
// isolate. This value is not protected from being updated
// concurrently.
@@ -261,6 +263,7 @@
private:
Isolate();
+ void BuildName(const char* name_prefix);
void PrintInvokedFunctions();
static uword GetSpecifiedStackSize();
@@ -272,6 +275,7 @@
MessageQueue* message_queue_;
Dart_PostMessageCallback post_message_callback_;
Dart_ClosePortCallback close_port_callback_;
+ char* name_;
intptr_t num_ports_;
intptr_t live_ports_;
Dart_Port main_port_;

Powered by Google App Engine
This is Rietveld 408576698