Mercurial > hg > truffle
comparison graal/GraalCompiler/src/com/sun/c1x/ir/LookupSwitch.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 |
---|---|
81 out.printf("case %5d: B%d%n", keyAt(i), blockSuccessors().get(i)); | 81 out.printf("case %5d: B%d%n", keyAt(i), blockSuccessors().get(i)); |
82 } | 82 } |
83 INSTRUCTION.advance(out); | 83 INSTRUCTION.advance(out); |
84 out.print("default : ").print(defaultSuccessor()); | 84 out.print("default : ").print(defaultSuccessor()); |
85 } | 85 } |
86 | |
87 @Override | |
88 public Node copy(Graph into) { | |
89 LookupSwitch x = new LookupSwitch(null, Arrays.asList(new Instruction[numberOfCases() + 1]), keys.clone(), into); | |
90 x.setNonNull(isNonNull()); | |
91 return x; | |
92 } | |
86 } | 93 } |