Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/ir/TableSwitch.java @ 2827:bd17ac598c6e
Graph cloning, initial version (not completely working)
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Mon, 30 May 2011 18:46:57 +0200 |
parents | d3fc4fe063bf |
children | 14708c03abba |
comparison
equal
deleted
inserted
replaced
2821:015be60afcf3 | 2827:bd17ac598c6e |
---|---|
83 out.printf("case %5d: B%d%n", lowKey() + i, blockSuccessors().get(i)); | 83 out.printf("case %5d: B%d%n", lowKey() + i, blockSuccessors().get(i)); |
84 } | 84 } |
85 INSTRUCTION.advance(out); | 85 INSTRUCTION.advance(out); |
86 out.print("default : ").print(defaultSuccessor()); | 86 out.print("default : ").print(defaultSuccessor()); |
87 } | 87 } |
88 | |
89 @Override | |
90 public Node copy(Graph into) { | |
91 TableSwitch x = new TableSwitch(null, Arrays.asList(new Instruction[numberOfCases() + 1]), lowKey, into); | |
92 x.setNonNull(isNonNull()); | |
93 return x; | |
94 } | |
88 } | 95 } |