Index: runtime/vm/stub_code.cc |
=================================================================== |
--- runtime/vm/stub_code.cc (revision 35347) |
+++ runtime/vm/stub_code.cc (working copy) |
@@ -110,8 +110,8 @@ |
cls.set_allocation_stub(stub); |
if (FLAG_disassemble_stubs) { |
OS::Print("Code for allocation stub '%s': {\n", name); |
- Disassembler::Disassemble(stub.EntryPoint(), |
- stub.EntryPoint() + assembler.CodeSize()); |
+ DisassembleToStdout formatter; |
+ stub.Disassemble(&formatter); |
OS::Print("}\n"); |
} |
} |
@@ -126,8 +126,8 @@ |
const Code& code = Code::Handle(Code::FinalizeCode(name, &assembler)); |
if (FLAG_disassemble_stubs) { |
OS::Print("Code for stub '%s': {\n", name); |
- Disassembler::Disassemble(code.EntryPoint(), |
- code.EntryPoint() + assembler.CodeSize()); |
+ DisassembleToStdout formatter; |
+ code.Disassemble(&formatter); |
OS::Print("}\n"); |
} |
return code.raw(); |