Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/ir/Constant.java @ 2851:14708c03abba
Remove isNonNull
author | Gilles Duboscq <gilles.duboscq@oracle.com> |
---|---|
date | Tue, 07 Jun 2011 11:36:32 +0200 |
parents | caf55daa41dc |
children |
comparison
equal
deleted
inserted
replaced
2850:7474789a8120 | 2851:14708c03abba |
---|---|
46 * @param graph | 46 * @param graph |
47 */ | 47 */ |
48 public Constant(CiConstant value, Graph graph) { | 48 public Constant(CiConstant value, Graph graph) { |
49 super(value.kind.stackKind(), INPUT_COUNT, SUCCESSOR_COUNT, graph); | 49 super(value.kind.stackKind(), INPUT_COUNT, SUCCESSOR_COUNT, graph); |
50 this.value = value; | 50 this.value = value; |
51 setNonNull(true); | |
52 } | 51 } |
53 | 52 |
54 @Override | 53 @Override |
55 public void accept(ValueVisitor v) { | 54 public void accept(ValueVisitor v) { |
56 v.visitConstant(this); | 55 v.visitConstant(this); |
193 } | 192 } |
194 | 193 |
195 @Override | 194 @Override |
196 public Node copy(Graph into) { | 195 public Node copy(Graph into) { |
197 Constant x = new Constant(value, into); | 196 Constant x = new Constant(value, into); |
198 x.setNonNull(isNonNull()); | |
199 return x; | 197 return x; |
200 } | 198 } |
201 } | 199 } |