diff graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/NewArrayNode.java @ 5538:e18ba36bfebc

Renamed RiConstant => Constant.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Fri, 08 Jun 2012 23:41:02 +0200
parents dc71b06d09f8
children a891c53a295b
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/NewArrayNode.java	Fri Jun 08 23:35:16 2012 +0200
+++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/NewArrayNode.java	Fri Jun 08 23:41:02 2012 +0200
@@ -79,7 +79,7 @@
     @Override
     public void typeFeedback(TypeFeedbackTool tool) {
         assert length.kind() == RiKind.Int;
-        tool.addScalar(length).constantBound(Condition.GE, RiConstant.INT_0);
+        tool.addScalar(length).constantBound(Condition.GE, Constant.INT_0);
     }
 
     public EscapeOp getEscapeOp() {
@@ -91,7 +91,7 @@
         @Override
         public boolean canAnalyze(Node node) {
             NewArrayNode x = (NewArrayNode) node;
-            RiConstant length = x.dimension(0).asConstant();
+            Constant length = x.dimension(0).asConstant();
             return length != null && length.asInt() >= 0 && length.asInt() < MaximumEscapeAnalysisArrayLength;
         }