Mercurial > hg > truffle
comparison graal/com.oracle.graal.java/src/com/oracle/graal/java/GraphBuilderPhase.java @ 7041:d730d8febfcf
Avoid call to MetaUtil.format in GraphBuilder if it is not necessary
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Tue, 27 Nov 2012 11:29:06 +0100 |
parents | e35077f6d2a2 |
children | 4cef3dfcaedc |
comparison
equal
deleted
inserted
replaced
7040:fdcdbc3dd76c | 7041:d730d8febfcf |
---|---|
143 } | 143 } |
144 | 144 |
145 private BciBlockMapping createBlockMap() { | 145 private BciBlockMapping createBlockMap() { |
146 BciBlockMapping map = new BciBlockMapping(method); | 146 BciBlockMapping map = new BciBlockMapping(method); |
147 map.build(); | 147 map.build(); |
148 Debug.dump(map, MetaUtil.format("After block building %f %R %H.%n(%P)", method)); | 148 if (Debug.isDumpEnabled()) { |
149 Debug.dump(map, MetaUtil.format("After block building %f %R %H.%n(%P)", method)); | |
150 } | |
149 | 151 |
150 return map; | 152 return map; |
151 } | 153 } |
152 | 154 |
153 private void build() { | 155 private void build() { |