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

Unified Diff: vm/debugger.h

Issue 11052006: 1. Create a port when a debugger object is created for an isolate, use this (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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
« no previous file with comments | « include/dart_debugger_api.h ('k') | vm/debugger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/debugger.h
===================================================================
--- vm/debugger.h (revision 13206)
+++ vm/debugger.h (working copy)
@@ -8,6 +8,7 @@
#include "include/dart_debugger_api.h"
#include "vm/object.h"
+#include "vm/port.h"
namespace dart {
@@ -222,7 +223,7 @@
DebuggerStackTrace* stack_trace;
SourceBreakpoint* breakpoint;
const Object* exception;
- Isolate* isolate;
+ Dart_Port isolate_id;
};
};
typedef void EventHandler(DebuggerEvent *event);
@@ -271,6 +272,8 @@
RawObject* GetCachedObject(intptr_t obj_id);
bool IsValidObjectId(intptr_t obj_id);
+ Dart_Port GetIsolateId() { return isolate_id_; }
+
static void SetEventHandler(EventHandler* handler);
static void SetBreakpointHandler(BreakpointHandler* handler);
@@ -331,6 +334,7 @@
bool include_private_fields);
Isolate* isolate_;
+ Dart_Port isolate_id_; // A unique ID for the isolate in the debugger.
bool initialized_;
// ID number generator.
« no previous file with comments | « include/dart_debugger_api.h ('k') | vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698