Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/gen/NodeLIRBuilder.java @ 22573:74b3e5c0209c
suppressed -Xlint:try warnings
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 03 Sep 2015 00:54:14 +0200 |
parents | 3285aa5a60f8 |
children | dcfd57b9f2d3 |
comparison
equal
deleted
inserted
replaced
22572:3a2cab3a1df4 | 22573:74b3e5c0209c |
---|---|
31 import java.util.*; | 31 import java.util.*; |
32 import java.util.Map.Entry; | 32 import java.util.Map.Entry; |
33 | 33 |
34 import jdk.internal.jvmci.code.*; | 34 import jdk.internal.jvmci.code.*; |
35 import jdk.internal.jvmci.common.*; | 35 import jdk.internal.jvmci.common.*; |
36 | |
36 import com.oracle.graal.debug.*; | 37 import com.oracle.graal.debug.*; |
37 import com.oracle.graal.debug.Debug.*; | 38 import com.oracle.graal.debug.Debug.*; |
38 | 39 |
39 import jdk.internal.jvmci.meta.*; | 40 import jdk.internal.jvmci.meta.*; |
40 | 41 |
259 values.add(value); | 260 values.add(value); |
260 } | 261 } |
261 return values.toArray(new Value[values.size()]); | 262 return values.toArray(new Value[values.size()]); |
262 } | 263 } |
263 | 264 |
265 @SuppressWarnings("try") | |
264 public void doBlock(Block block, StructuredGraph graph, BlockMap<List<Node>> blockMap) { | 266 public void doBlock(Block block, StructuredGraph graph, BlockMap<List<Node>> blockMap) { |
265 try (BlockScope blockScope = gen.getBlockScope(block)) { | 267 try (BlockScope blockScope = gen.getBlockScope(block)) { |
266 | 268 |
267 if (block == gen.getResult().getLIR().getControlFlowGraph().getStartBlock()) { | 269 if (block == gen.getResult().getLIR().getControlFlowGraph().getStartBlock()) { |
268 assert block.getPredecessorCount() == 0; | 270 assert block.getPredecessorCount() == 0; |
340 | 342 |
341 assert verifyBlock(gen.getResult().getLIR(), block); | 343 assert verifyBlock(gen.getResult().getLIR(), block); |
342 } | 344 } |
343 } | 345 } |
344 | 346 |
347 @SuppressWarnings("try") | |
345 protected void matchComplexExpressions(List<Node> nodes) { | 348 protected void matchComplexExpressions(List<Node> nodes) { |
346 if (matchRules != null) { | 349 if (matchRules != null) { |
347 try (Scope s = Debug.scope("MatchComplexExpressions")) { | 350 try (Scope s = Debug.scope("MatchComplexExpressions")) { |
348 if (LogVerbose.getValue()) { | 351 if (LogVerbose.getValue()) { |
349 int i = 0; | 352 int i = 0; |