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

Unified Diff: runtime/vm/service_event.h

Issue 1132153002: Add Debugger.inspect. 1976 here we come! (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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
« no previous file with comments | « runtime/vm/service.cc ('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 4de7aa4c9419ab50b8970c13f07f11499c357bff..e74ee66f2929dd039c794600aba734073968312f 100644
--- a/runtime/vm/service_event.h
+++ b/runtime/vm/service_event.h
@@ -30,6 +30,7 @@ class ServiceEvent {
kBreakpointRemoved,
kGC,
+ kInspect,
kIllegal,
};
@@ -40,6 +41,7 @@ class ServiceEvent {
breakpoint_(NULL),
top_frame_(NULL),
exception_(NULL),
+ inspectee_(NULL),
gc_stats_(NULL) {}
explicit ServiceEvent(const DebuggerEvent* debugger_event);
@@ -78,6 +80,14 @@ class ServiceEvent {
exception_ = exception;
}
+ const Object* inspectee() const {
+ return inspectee_;
+ }
+ void set_inspectee(const Object* inspectee) {
+ ASSERT(type_ == kInspect);
+ inspectee_ = inspectee;
+ }
+
const Heap::GCStats* gc_stats() const {
return gc_stats_;
}
@@ -96,6 +106,7 @@ class ServiceEvent {
SourceBreakpoint* breakpoint_;
ActivationFrame* top_frame_;
const Object* exception_;
+ const Object* inspectee_;
const Heap::GCStats* gc_stats_;
};
« no previous file with comments | « runtime/vm/service.cc ('k') | runtime/vm/service_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698