Index: runtime/vm/object_store.cc |
diff --git a/runtime/vm/object_store.cc b/runtime/vm/object_store.cc |
index 9affdcb0fd0f881663df459f2911fa1d17529c94..e1ca9dd94a742f09d812450556660023be87edca 100644 |
--- a/runtime/vm/object_store.cc |
+++ b/runtime/vm/object_store.cc |
@@ -120,6 +120,24 @@ void ObjectStore::Init(Isolate* isolate) { |
} |
+void ObjectStore::PrintToJSONObject(JSONObject* jsobj) { |
+ if (!FLAG_support_service) { |
+ return; |
+ } |
+ jsobj->AddProperty("type", "_ObjectStore"); |
+ |
+ { |
+ JSONObject fields(jsobj, "fields"); |
+ Object& value = Object::Handle(); |
+#define PRINT_OBJECT_STORE_FIELD(type, name) \ |
+ value = name; \ |
+ fields.AddProperty(#name, value); |
+OBJECT_STORE_FIELD_LIST(PRINT_OBJECT_STORE_FIELD); |
+#undef PRINT_OBJECT_STORE_FIELD |
+ } |
+} |
+ |
+ |
RawError* ObjectStore::PreallocateObjects() { |
Thread* thread = Thread::Current(); |
Isolate* isolate = thread->isolate(); |