Index: runtime/vm/compiler.cc |
diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc |
index 05093ead27a22f6dcc501ef5b0ff15c373a0355c..dfe2c697d1d9946d3d5a7d3680031880a073c6da 100644 |
--- a/runtime/vm/compiler.cc |
+++ b/runtime/vm/compiler.cc |
@@ -880,15 +880,8 @@ static void DisassembleCode(const Function& function, bool optimized) { |
ISL_Print("}\n"); |
} |
- const Array& object_pool = Array::Handle(code.ObjectPool()); |
- if (object_pool.Length() > 0) { |
- ISL_Print("Object Pool: {\n"); |
- for (intptr_t i = 0; i < object_pool.Length(); i++) { |
- ISL_Print(" %" Pd ": %s\n", i, |
- Object::Handle(object_pool.At(i)).ToCString()); |
- } |
- ISL_Print("}\n"); |
- } |
+ const ObjectPool& object_pool = ObjectPool::Handle(code.GetObjectPool()); |
+ object_pool.DebugPrint(); |
ISL_Print("Stackmaps for function '%s' {\n", function_fullname); |
if (code.stackmaps() != Array::null()) { |