Mercurial > hg > graal-compiler
diff graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java @ 2602:0c6564c254af
new node layout: BlockBegin, BlockEnd
-Dc1x.dot=regex for pdf output
escape dot graph labels (<, >, &)
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Fri, 06 May 2011 10:25:37 +0200 |
parents | f1bc67c2d453 |
children | 91d3952f7eb7 |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java Thu May 05 16:33:12 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java Fri May 06 10:25:37 2011 +0200 @@ -560,7 +560,7 @@ int len = x.numberOfCases(); for (int i = 0; i < len; i++) { lir.cmp(Condition.EQ, tag, x.keyAt(i)); - lir.branch(Condition.EQ, CiKind.Int, x.suxAt(i)); + lir.branch(Condition.EQ, CiKind.Int, x.blockSuccessor(i)); } lir.jump(x.defaultSuccessor()); } else { @@ -825,7 +825,7 @@ int len = x.numberOfCases(); for (int i = 0; i < len; i++) { lir.cmp(Condition.EQ, tag, i + loKey); - lir.branch(Condition.EQ, CiKind.Int, x.suxAt(i)); + lir.branch(Condition.EQ, CiKind.Int, x.blockSuccessor(i)); } lir.jump(x.defaultSuccessor()); } else { @@ -1150,11 +1150,11 @@ if (len > 0) { BlockBegin defaultSux = x.defaultSuccessor(); int key = x.keyAt(0); - BlockBegin sux = x.suxAt(0); + BlockBegin sux = x.blockSuccessor(0); SwitchRange range = new SwitchRange(key, sux); for (int i = 1; i < len; i++) { int newKey = x.keyAt(i); - BlockBegin newSux = x.suxAt(i); + BlockBegin newSux = x.blockSuccessor(i); if (key + 1 == newKey && sux == newSux) { // still in same range range.highKey = newKey; @@ -1180,12 +1180,12 @@ List<SwitchRange> res = new ArrayList<SwitchRange>(x.numberOfCases()); int len = x.numberOfCases(); if (len > 0) { - BlockBegin sux = x.suxAt(0); + BlockBegin sux = x.blockSuccessor(0); int key = x.lowKey(); BlockBegin defaultSux = x.defaultSuccessor(); SwitchRange range = new SwitchRange(key, sux); for (int i = 0; i < len; i++, key++) { - BlockBegin newSux = x.suxAt(i); + BlockBegin newSux = x.blockSuccessor(i); if (sux == newSux) { // still in same range range.highKey = key;