Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Unified Diff: runtime/vm/stub_code.cc

Issue 254483005: - Rationalize the way we use comments. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/stub_code_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/stub_code_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698