Mercurial > hg > truffle
comparison graal/GraalCompiler/src/com/sun/c1x/debug/CFGPrinterObserver.java @ 2793:d3fc4fe063bf
Rename BlockBegin to Merge, remove some Block related member from it. Made CFGPrinter work with the Block class from schedule
author | Gilles Duboscq <gilles.duboscq@oracle.com> |
---|---|
date | Fri, 27 May 2011 11:08:55 +0200 |
parents | bda5972a40a5 |
children | 03027a0ef819 |
comparison
equal
deleted
inserted
replaced
2792:2f3258e3800e | 2793:d3fc4fe063bf |
---|---|
23 package com.sun.c1x.debug; | 23 package com.sun.c1x.debug; |
24 | 24 |
25 import java.io.*; | 25 import java.io.*; |
26 | 26 |
27 import com.sun.c1x.*; | 27 import com.sun.c1x.*; |
28 import com.sun.c1x.ir.*; | |
29 import com.sun.c1x.observer.*; | 28 import com.sun.c1x.observer.*; |
30 import com.sun.cri.ri.*; | 29 import com.sun.cri.ri.*; |
31 | 30 |
32 /** | 31 /** |
33 * Observes compilation events and uses {@link CFGPrinter} to produce a control flow graph for the <a | 32 * Observes compilation events and uses {@link CFGPrinter} to produce a control flow graph for the <a |
72 if (event.getBlockMap() != null && event.getCodeSize() >= 0) { | 71 if (event.getBlockMap() != null && event.getCodeSize() >= 0) { |
73 cfgPrinter.printCFG(event.getMethod(), event.getBlockMap(), event.getCodeSize(), label, event.isHIRValid(), event.isLIRValid()); | 72 cfgPrinter.printCFG(event.getMethod(), event.getBlockMap(), event.getCodeSize(), label, event.isHIRValid(), event.isLIRValid()); |
74 cfgprinted = true; | 73 cfgprinted = true; |
75 } | 74 } |
76 | 75 |
77 if (event.getStartBlock() != null) { | 76 // TODO fix that when schedule is here (startBlock : Instruction->Block) |
77 /*if (event.getStartBlock() != null) { | |
78 cfgPrinter.printCFG((BlockBegin) event.getStartBlock(), label, event.isHIRValid(), event.isLIRValid()); | 78 cfgPrinter.printCFG((BlockBegin) event.getStartBlock(), label, event.isHIRValid(), event.isLIRValid()); |
79 cfgprinted = true; | 79 cfgprinted = true; |
80 } | 80 }*/ |
81 | 81 |
82 if (event.getTargetMethod() != null) { | 82 if (event.getTargetMethod() != null) { |
83 if (cfgprinted) { | 83 if (cfgprinted) { |
84 // Avoid duplicate "cfg" section | 84 // Avoid duplicate "cfg" section |
85 label = null; | 85 label = null; |