comparison graal/GraalCompiler/src/com/sun/c1x/ir/NullCheck.java @ 2851:14708c03abba

Remove isNonNull
author Gilles Duboscq <gilles.duboscq@oracle.com>
date Tue, 07 Jun 2011 11:36:32 +0200
parents c1c8a0291771
children
comparison
equal deleted inserted replaced
2850:7474789a8120 2851:14708c03abba
66 * @param stateBefore the state before executing the null check 66 * @param stateBefore the state before executing the null check
67 * @param graph 67 * @param graph
68 */ 68 */
69 public NullCheck(Value object, Graph graph) { 69 public NullCheck(Value object, Graph graph) {
70 super(object.kind, INPUT_COUNT, SUCCESSOR_COUNT, graph); 70 super(object.kind, INPUT_COUNT, SUCCESSOR_COUNT, graph);
71 setNonNull(true);
72 setObject(object); 71 setObject(object);
73 } 72 }
74 73
75 // for copying 74 // for copying
76 private NullCheck(CiKind kind, Graph graph) { 75 private NullCheck(CiKind kind, Graph graph) {
77 super(kind, INPUT_COUNT, SUCCESSOR_COUNT, graph); 76 super(kind, INPUT_COUNT, SUCCESSOR_COUNT, graph);
78 setNonNull(true);
79 } 77 }
80 78
81 @Override 79 @Override
82 public void accept(ValueVisitor v) { 80 public void accept(ValueVisitor v) {
83 v.visitNullCheck(this); 81 v.visitNullCheck(this);
115 } 113 }
116 114
117 @Override 115 @Override
118 public Node copy(Graph into) { 116 public Node copy(Graph into) {
119 NullCheck x = new NullCheck(kind, into); 117 NullCheck x = new NullCheck(kind, into);
120 x.setNonNull(isNonNull());
121 return x; 118 return x;
122 } 119 }
123 } 120 }