Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/ir/Constant.java @ 2821:015be60afcf3
removed flags from Value class
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Mon, 30 May 2011 17:05:06 +0200 |
parents | c3f64b66fc78 |
children | bd17ac598c6e |
comparison
equal
deleted
inserted
replaced
2820:2b8ef0a06391 | 2821:015be60afcf3 |
---|---|
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 initFlag(Value.Flag.NonNull, value.isNonNull()); | 51 setNonNull(true); |
52 } | 52 } |
53 | 53 |
54 @Override | 54 @Override |
55 public void accept(ValueVisitor v) { | 55 public void accept(ValueVisitor v) { |
56 v.visitConstant(this); | 56 v.visitConstant(this); |