Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/gen/LIRGenerator.java @ 14791:be2be30c653d
Introduce AbstractControlFlowGraph.
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Wed, 12 Mar 2014 20:40:01 +0100 |
parents | 4ff08c0366ae |
children | f5b3292b4ded |
comparison
equal
deleted
inserted
replaced
14790:3518daf2f9bc | 14791:be2be30c653d |
---|---|
339 } | 339 } |
340 return value; | 340 return value; |
341 } | 341 } |
342 | 342 |
343 public LabelRef getLIRBlock(FixedNode b) { | 343 public LabelRef getLIRBlock(FixedNode b) { |
344 Block result = lir.getControlFlowGraph().blockFor(b); | 344 assert lir.getControlFlowGraph() instanceof ControlFlowGraph; |
345 Block result = ((ControlFlowGraph) lir.getControlFlowGraph()).blockFor(b); | |
345 int suxIndex = currentBlock.getSuccessors().indexOf(result); | 346 int suxIndex = currentBlock.getSuccessors().indexOf(result); |
346 assert suxIndex != -1 : "Block not in successor list of current block"; | 347 assert suxIndex != -1 : "Block not in successor list of current block"; |
347 | 348 |
348 return LabelRef.forSuccessor(lir, currentBlock, suxIndex); | 349 return LabelRef.forSuccessor(lir, currentBlock, suxIndex); |
349 } | 350 } |