Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/ir/Return.java @ 2834:bfce42cd9c07
Graph duplication now passes all tests
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Tue, 31 May 2011 13:34:52 +0200 |
parents | bd17ac598c6e |
children | 75e0d39833a0 |
comparison
equal
deleted
inserted
replaced
2829:27c00b180416 | 2834:bfce42cd9c07 |
---|---|
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()); | 75 successors().set(SUCCESSOR_END, graph.end()); |
76 } | 76 } |
77 | 77 |
78 // for copying | |
79 private Return(CiKind kind, Graph graph) { | |
80 super(kind, 0, INPUT_COUNT, SUCCESSOR_COUNT, graph); | |
81 } | |
82 | |
78 @Override | 83 @Override |
79 public void accept(ValueVisitor v) { | 84 public void accept(ValueVisitor v) { |
80 v.visitReturn(this); | 85 v.visitReturn(this); |
81 } | 86 } |
82 | 87 |
89 } | 94 } |
90 } | 95 } |
91 | 96 |
92 @Override | 97 @Override |
93 public Node copy(Graph into) { | 98 public Node copy(Graph into) { |
94 Return x = new Return(null, into); | 99 Return x = new Return(kind, into); |
95 x.setNonNull(isNonNull()); | 100 x.setNonNull(isNonNull()); |
96 return x; | 101 return x; |
97 } | 102 } |
98 } | 103 } |