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

Unified Diff: runtime/vm/flow_graph_compiler_x64.cc

Issue 10407019: Extend assembler with ability to produce comments for the generated code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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
Index: runtime/vm/flow_graph_compiler_x64.cc
diff --git a/runtime/vm/flow_graph_compiler_x64.cc b/runtime/vm/flow_graph_compiler_x64.cc
index d923279dbc55e077f5713fe97aa590a90d1cd74c..16f83e5ecfc7a2b7b7508ea4334b48905ca43305 100644
--- a/runtime/vm/flow_graph_compiler_x64.cc
+++ b/runtime/vm/flow_graph_compiler_x64.cc
@@ -1122,11 +1122,13 @@ void FlowGraphCompiler::VisitCatchEntry(CatchEntryComp* comp) {
void FlowGraphCompiler::VisitBlocks() {
for (intptr_t i = 0; i < block_order_.length(); ++i) {
+ __ Comment("B%d", i);
// Compile the block entry.
current_block_ = block_order_[i];
Instruction* instr = current_block()->Accept(this);
// Compile all successors until an exit, branch, or a block entry.
while ((instr != NULL) && !instr->IsBlockEntry()) {
+ __ Comment("instruction");
srdjan 2012/05/17 17:22:08 Maybe also emit the instruction's cid (unique id,
Vyacheslav Egorov (Google) 2012/05/17 21:16:27 Done.
instr = instr->Accept(this);
}
@@ -1701,6 +1703,11 @@ void FlowGraphCompiler::FinalizeExceptionHandlers(const Code& code) {
}
+void FlowGraphCompiler::FinalizeComments(const Code& code) {
+ code.set_comments(assembler_->GetComments());
+}
+
+
} // namespace dart
#endif // defined TARGET_ARCH_X64

Powered by Google App Engine
This is Rietveld 408576698