Mercurial > hg > truffle
comparison graal/GraalCompiler/src/com/sun/c1x/graph/IR.java @ 2653:7c8ad40c1f88
No need for stateAfter on volatile field loads.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 11 May 2011 15:11:33 +0200 |
parents | 3558ca7088c0 |
children | 194d93d089bd |
comparison
equal
deleted
inserted
replaced
2652:6d19b4f476db | 2653:7c8ad40c1f88 |
---|---|
46 | 46 |
47 /** | 47 /** |
48 * The start block of this IR. | 48 * The start block of this IR. |
49 */ | 49 */ |
50 public BlockBegin startBlock; | 50 public BlockBegin startBlock; |
51 | |
52 /** | |
53 * The entry block for an OSR compile. | |
54 */ | |
55 public BlockBegin osrEntryBlock; | |
56 | 51 |
57 private int maxLocks; | 52 private int maxLocks; |
58 | 53 |
59 /** | 54 /** |
60 * The linear-scan ordered list of blocks. | 55 * The linear-scan ordered list of blocks. |
141 /** | 136 /** |
142 * Verifies the IR and prints it out if the relevant options are set. | 137 * Verifies the IR and prints it out if the relevant options are set. |
143 * @param phase the name of the phase for printing | 138 * @param phase the name of the phase for printing |
144 */ | 139 */ |
145 public void verifyAndPrint(String phase) { | 140 public void verifyAndPrint(String phase) { |
146 printToTTY(phase); | |
147 | |
148 if (compilation.compiler.isObserved()) { | |
149 compilation.compiler.fireCompilationEvent(new CompilationEvent(compilation, phase, startBlock, true, false)); | |
150 } | |
151 } | |
152 | |
153 private void printToTTY(String phase) { | |
154 if (C1XOptions.PrintHIR && !TTY.isSuppressed()) { | 141 if (C1XOptions.PrintHIR && !TTY.isSuppressed()) { |
155 TTY.println(phase); | 142 TTY.println(phase); |
156 print(false); | 143 print(false); |
144 } | |
145 | |
146 if (compilation.compiler.isObserved()) { | |
147 compilation.compiler.fireCompilationEvent(new CompilationEvent(compilation, phase, startBlock, true, false)); | |
157 } | 148 } |
158 } | 149 } |
159 | 150 |
160 /** | 151 /** |
161 * Creates and inserts a new block between this block and the specified successor, | 152 * Creates and inserts a new block between this block and the specified successor, |