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

Unified Diff: runtime/vm/il_printer.h

Issue 10696151: Skeleton of a linear scan register allocator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address comments Created 8 years, 5 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/il_printer.h
diff --git a/runtime/vm/il_printer.h b/runtime/vm/il_printer.h
index dccc30dd31253fc25db6caad9b143b62020d29ae..5b2860aab082d2e2cdeab847c54ef45ab5f73cc0 100644
--- a/runtime/vm/il_printer.h
+++ b/runtime/vm/il_printer.h
@@ -32,19 +32,23 @@ class BufferFormatter : public ValueObject {
class FlowGraphPrinter : public ValueObject {
public:
FlowGraphPrinter(const Function& function,
- const GrowableArray<BlockEntryInstr*>& block_order)
- : function_(function), block_order_(block_order) { }
+ const GrowableArray<BlockEntryInstr*>& block_order,
+ bool print_locations = false)
+ : function_(function),
+ block_order_(block_order),
+ print_locations_(print_locations) { }
// Print the instructions in a block terminated by newlines. Add "goto N"
// to the end of the block if it ends with an unconditional jump to
// another block and that block is not next in reverse postorder.
void PrintBlocks();
- static void PrintInstruction(Instruction* instr);
+ void PrintInstruction(Instruction* instr);
static void PrintComputation(Computation* comp);
private:
const Function& function_;
const GrowableArray<BlockEntryInstr*>& block_order_;
+ const bool print_locations_;
};

Powered by Google App Engine
This is Rietveld 408576698