| 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
|
|
|