Chromium Code Reviews| 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 |