| Index: runtime/vm/object.cc
|
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
|
| index dad2fbef012ca63581afc474f243c3d8041ae51b..c7ef20ed235e10a0ae0afce94fdad8a893a6e717 100644
|
| --- a/runtime/vm/object.cc
|
| +++ b/runtime/vm/object.cc
|
| @@ -19543,7 +19543,18 @@ const char* MirrorReference::ToCString() const {
|
|
|
|
|
| void MirrorReference::PrintJSONImpl(JSONStream* stream, bool ref) const {
|
| - Instance::PrintJSONImpl(stream, ref);
|
| + JSONObject jsobj(stream);
|
| + PrintSharedInstanceJSON(&jsobj, ref);
|
| + ObjectIdRing* ring = Isolate::Current()->object_id_ring();
|
| + const intptr_t id = ring->GetIdForObject(raw());
|
| + jsobj.AddPropertyF("id", "objects/%" Pd "", id);
|
| +
|
| + if (ref) {
|
| + return;
|
| + }
|
| +
|
| + const Object& referent_handle = Object::Handle(referent());
|
| + jsobj.AddProperty("referent", referent_handle);
|
| }
|
|
|
|
|
|
|