Index: runtime/vm/disassembler.cc |
diff --git a/runtime/vm/disassembler.cc b/runtime/vm/disassembler.cc |
index 1fe421502baa4e293e612eaf35695caaecdcb42a..948c5fe750faaf91e3c0d55bf9b560c9988f0140 100644 |
--- a/runtime/vm/disassembler.cc |
+++ b/runtime/vm/disassembler.cc |
@@ -194,6 +194,7 @@ void Disassembler::DisassembleCode(const Function& function, bool optimized) { |
code.Disassemble(); |
THR_Print("}\n"); |
+#if defined(TARGET_ARCH_IA32) |
THR_Print("Pointer offsets for function: {\n"); |
// Pointer offsets are stored in descending order. |
Object& obj = Object::Handle(); |
@@ -205,6 +206,14 @@ void Disassembler::DisassembleCode(const Function& function, bool optimized) { |
} |
THR_Print("}\n"); |
+ ASSERT(ObjectPool::Handle(code.GetObjectPool()).Length() == 0); |
+#else |
+ ASSERT(code.pointer_offsets_length() == 0); |
+ |
+ const ObjectPool& object_pool = ObjectPool::Handle(code.GetObjectPool()); |
+ object_pool.DebugPrint(); |
+#endif |
+ |
THR_Print("PC Descriptors for function '%s' {\n", function_fullname); |
PcDescriptors::PrintHeaderString(); |
const PcDescriptors& descriptors = |
@@ -234,9 +243,6 @@ void Disassembler::DisassembleCode(const Function& function, bool optimized) { |
THR_Print("}\n"); |
} |
- const ObjectPool& object_pool = ObjectPool::Handle(code.GetObjectPool()); |
- object_pool.DebugPrint(); |
- |
THR_Print("Stackmaps for function '%s' {\n", function_fullname); |
if (code.stackmaps() != Array::null()) { |
const Array& stackmap_table = Array::Handle(code.stackmaps()); |