comparison graal/GraalCompiler/src/com/sun/c1x/ir/Return.java @ 2840:75e0d39833a0

new CompilerGraph, create only one Return and one Unwind per CompilerGraph
author Lukas Stadler <lukas.stadler@jku.at>
date Tue, 31 May 2011 16:53:19 +0200
parents bfce42cd9c07
children 14708c03abba
comparison
equal deleted inserted replaced
2837:7b5831f0e913 2840:75e0d39833a0
70 * @param graph 70 * @param graph
71 */ 71 */
72 public Return(Value result, Graph graph) { 72 public Return(Value result, Graph graph) {
73 super(result == null ? CiKind.Void : result.kind, 0, INPUT_COUNT, SUCCESSOR_COUNT, graph); 73 super(result == null ? CiKind.Void : result.kind, 0, INPUT_COUNT, SUCCESSOR_COUNT, graph);
74 setResult(result); 74 setResult(result);
75 successors().set(SUCCESSOR_END, graph.end());
76 } 75 }
77 76
78 // for copying 77 // for copying
79 private Return(CiKind kind, Graph graph) { 78 private Return(CiKind kind, Graph graph) {
80 super(kind, 0, INPUT_COUNT, SUCCESSOR_COUNT, graph); 79 super(kind, 0, INPUT_COUNT, SUCCESSOR_COUNT, graph);