Index: runtime/vm/heap.cc |
diff --git a/runtime/vm/heap.cc b/runtime/vm/heap.cc |
index 46fd7617790766db693684c443e40bc891616be5..1650fff297701b993369b6df7764501d53a6c06a 100644 |
--- a/runtime/vm/heap.cc |
+++ b/runtime/vm/heap.cc |
@@ -734,6 +734,7 @@ void Heap::SetWeakEntry(RawObject* raw_obj, WeakSelector sel, intptr_t val) { |
} |
+#ifndef PRODUCT |
void Heap::PrintToJSONObject(Space space, JSONObject* object) const { |
if (space == kNew) { |
new_space_.PrintToJSONObject(object); |
@@ -741,6 +742,7 @@ void Heap::PrintToJSONObject(Space space, JSONObject* object) const { |
old_space_.PrintToJSONObject(object); |
} |
} |
+#endif // PRODUCT |
void Heap::RecordBeforeGC(Space space, GCReason reason) { |