comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/NewMultiArrayNode.java @ 5541:b4c406861c33

More renamings to drop Ri* prefix completely. Deleted graph.BitMap class and replaced with java.util.BitSet.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Sat, 09 Jun 2012 16:52:12 +0200
parents a891c53a295b
children 4d7175cf3526
comparison
equal deleted inserted replaced
5540:a891c53a295b 5541:b4c406861c33
35 * array. 35 * array.
36 */ 36 */
37 public final class NewMultiArrayNode extends FixedWithNextNode implements LIRLowerable, TypeFeedbackProvider { 37 public final class NewMultiArrayNode extends FixedWithNextNode implements LIRLowerable, TypeFeedbackProvider {
38 38
39 @Input private final NodeInputList<ValueNode> dimensions; 39 @Input private final NodeInputList<ValueNode> dimensions;
40 private final RiResolvedType type; 40 private final ResolvedJavaType type;
41 41
42 public ValueNode dimension(int index) { 42 public ValueNode dimension(int index) {
43 return dimensions.get(index); 43 return dimensions.get(index);
44 } 44 }
45 45
52 * @param elementType the element type of the array 52 * @param elementType the element type of the array
53 * @param dimensions the node which produce the dimensions for this array 53 * @param dimensions the node which produce the dimensions for this array
54 * @param cpi the constant pool index for resolution 54 * @param cpi the constant pool index for resolution
55 * @param riConstantPool the constant pool for resolution 55 * @param riConstantPool the constant pool for resolution
56 */ 56 */
57 public NewMultiArrayNode(RiResolvedType type, ValueNode[] dimensions) { 57 public NewMultiArrayNode(ResolvedJavaType type, ValueNode[] dimensions) {
58 super(StampFactory.exactNonNull(type)); 58 super(StampFactory.exactNonNull(type));
59 this.type = type; 59 this.type = type;
60 this.dimensions = new NodeInputList<>(this, dimensions); 60 this.dimensions = new NodeInputList<>(this, dimensions);
61 assert dimensions.length > 0 && type.isArrayClass(); 61 assert dimensions.length > 0 && type.isArrayClass();
62 } 62 }
64 @Override 64 @Override
65 public void generate(LIRGeneratorTool gen) { 65 public void generate(LIRGeneratorTool gen) {
66 gen.visitNewMultiArray(this); 66 gen.visitNewMultiArray(this);
67 } 67 }
68 68
69 public RiResolvedType type() { 69 public ResolvedJavaType type() {
70 return type; 70 return type;
71 } 71 }
72 72
73 @Override 73 @Override
74 public void typeFeedback(TypeFeedbackTool tool) { 74 public void typeFeedback(TypeFeedbackTool tool) {