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

Unified Diff: runtime/lib/developer.cc

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 | « no previous file | runtime/lib/developer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/developer.cc
diff --git a/runtime/lib/developer.cc b/runtime/lib/developer.cc
index 32b8384d43a33093533e4e6b7fdd3fece42b2b02..786e5debdda834dd5cc95a660f0c760be61c647b 100644
--- a/runtime/lib/developer.cc
+++ b/runtime/lib/developer.cc
@@ -11,6 +11,7 @@
#include "vm/native_entry.h"
#include "vm/object.h"
#include "vm/object_store.h"
+#include "vm/service.h"
namespace dart {
@@ -29,4 +30,11 @@ DEFINE_NATIVE_ENTRY(Developer_debugger, 2) {
return when.raw();
}
+
+DEFINE_NATIVE_ENTRY(Developer_inspect, 1) {
+ GET_NATIVE_ARGUMENT(Instance, inspectee, arguments->NativeArgAt(0));
+ Service::SendInspectEvent(isolate, inspectee);
+ return inspectee.raw();
+}
+
} // namespace dart
« no previous file with comments | « no previous file | runtime/lib/developer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698