Mercurial > hg > truffle
comparison graal/GraalCompiler/src/com/sun/c1x/debug/CFGPrinter.java @ 2581:4a36a0bd6d18
added GraalGraph to classpath, Node as superclass of Value
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Thu, 05 May 2011 13:27:48 +0200 |
parents | cc1f1d396288 |
children | 91d3952f7eb7 |
comparison
equal
deleted
inserted
replaced
2579:4984c8ebd6c7 | 2581:4a36a0bd6d18 |
---|---|
130 out.print("name \"B").print(block.blockID).println('"'); | 130 out.print("name \"B").print(block.blockID).println('"'); |
131 out.print("from_bci ").println(block.bci()); | 131 out.print("from_bci ").println(block.bci()); |
132 out.print("to_bci ").println(block.end() == null ? -1 : block.end().bci()); | 132 out.print("to_bci ").println(block.end() == null ? -1 : block.end().bci()); |
133 | 133 |
134 out.print("predecessors "); | 134 out.print("predecessors "); |
135 for (BlockBegin pred : block.predecessors()) { | 135 for (BlockBegin pred : block.blockPredecessors()) { |
136 out.print("\"B").print(pred.blockID).print("\" "); | 136 out.print("\"B").print(pred.blockID).print("\" "); |
137 } | 137 } |
138 out.println(); | 138 out.println(); |
139 | 139 |
140 out.print("successors "); | 140 out.print("successors "); |
588 public void printCFG(BlockBegin startBlock, String label, final boolean printHIR, final boolean printLIR) { | 588 public void printCFG(BlockBegin startBlock, String label, final boolean printHIR, final boolean printLIR) { |
589 begin("cfg"); | 589 begin("cfg"); |
590 out.print("name \"").print(label).println('"'); | 590 out.print("name \"").print(label).println('"'); |
591 startBlock.iteratePreOrder(new BlockClosure() { | 591 startBlock.iteratePreOrder(new BlockClosure() { |
592 public void apply(BlockBegin block) { | 592 public void apply(BlockBegin block) { |
593 List<BlockBegin> successors = block.end() != null ? block.end().successors() : new ArrayList<BlockBegin>(0); | 593 List<BlockBegin> successors = block.end() != null ? block.end().blockSuccessors() : new ArrayList<BlockBegin>(0); |
594 printBlock(block, successors, block.exceptionHandlerBlocks(), printHIR, printLIR); | 594 printBlock(block, successors, block.exceptionHandlerBlocks(), printHIR, printLIR); |
595 } | 595 } |
596 }); | 596 }); |
597 end("cfg"); | 597 end("cfg"); |
598 } | 598 } |