comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/NewArrayNode.java @ 7007:94596bbec6f0

provide MetaAccessProvider to EscapeAnalyzable
author Lukas Stadler <lukas.stadler@jku.at>
date Tue, 20 Nov 2012 13:36:22 +0100
parents 51b6e594b0cd
children 94f032472c28
comparison
equal deleted inserted replaced
7006:51b6e594b0cd 7007:94596bbec6f0
103 public void lower(LoweringTool tool) { 103 public void lower(LoweringTool tool) {
104 tool.getRuntime().lower(this, tool); 104 tool.getRuntime().lower(this, tool);
105 } 105 }
106 106
107 @Override 107 @Override
108 public ObjectDesc[] getAllocations(long nextVirtualId) { 108 public ObjectDesc[] getAllocations(long nextVirtualId, MetaAccessProvider metaAccess) {
109 if (length().asConstant() != null) { 109 if (length().asConstant() != null) {
110 final int constantLength = length().asConstant().asInt(); 110 final int constantLength = length().asConstant().asInt();
111 if (constantLength >= 0 && constantLength < MaximumEscapeAnalysisArrayLength) { 111 if (constantLength >= 0 && constantLength < MaximumEscapeAnalysisArrayLength) {
112 ValueNode[] state = new ValueNode[constantLength]; 112 ValueNode[] state = new ValueNode[constantLength];
113 ConstantNode defaultForKind = constantLength == 0 ? null : ConstantNode.defaultForKind(elementType().getKind(), graph()); 113 ConstantNode defaultForKind = constantLength == 0 ? null : ConstantNode.defaultForKind(elementType().getKind(), graph());