Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/ir/NewInstance.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 |
---|---|
49 public NewInstance(RiType type, int cpi, RiConstantPool constantPool, Graph graph) { | 49 public NewInstance(RiType type, int cpi, RiConstantPool constantPool, Graph graph) { |
50 super(CiKind.Object, INPUT_COUNT, SUCCESSOR_COUNT, graph); | 50 super(CiKind.Object, INPUT_COUNT, SUCCESSOR_COUNT, graph); |
51 this.instanceClass = type; | 51 this.instanceClass = type; |
52 this.cpi = cpi; | 52 this.cpi = cpi; |
53 this.constantPool = constantPool; | 53 this.constantPool = constantPool; |
54 setNonNull(true); | |
55 } | 54 } |
56 | 55 |
57 /** | 56 /** |
58 * Gets the instance class being allocated by this instruction. | 57 * Gets the instance class being allocated by this instruction. |
59 * @return the instance class allocated | 58 * @return the instance class allocated |
83 } | 82 } |
84 | 83 |
85 @Override | 84 @Override |
86 public Node copy(Graph into) { | 85 public Node copy(Graph into) { |
87 NewInstance x = new NewInstance(instanceClass, cpi, constantPool, into); | 86 NewInstance x = new NewInstance(instanceClass, cpi, constantPool, into); |
88 x.setNonNull(isNonNull()); | |
89 return x; | 87 return x; |
90 } | 88 } |
91 } | 89 } |