diff graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/nodes/arithmetic/IntegerSubExactNode.java @ 22604:b00cc0475f31

Update jvmci import: Refactoring: Rename Kind to JavaKind.
author Roland Schatz <roland.schatz@oracle.com>
date Tue, 08 Sep 2015 19:57:39 +0200
parents 0e095e2c24e2
children 05183a084a08
line wrap: on
line diff
--- a/graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/nodes/arithmetic/IntegerSubExactNode.java	Tue Sep 08 18:53:24 2015 +0200
+++ b/graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/nodes/arithmetic/IntegerSubExactNode.java	Tue Sep 08 19:57:39 2015 +0200
@@ -72,12 +72,12 @@
     private ValueNode canonicalXYconstant(ValueNode forX, ValueNode forY) {
         JavaConstant xConst = forX.asJavaConstant();
         JavaConstant yConst = forY.asJavaConstant();
-        assert xConst.getKind() == yConst.getKind();
+        assert xConst.getJavaKind() == yConst.getJavaKind();
         try {
-            if (xConst.getKind() == Kind.Int) {
+            if (xConst.getJavaKind() == JavaKind.Int) {
                 return ConstantNode.forInt(Math.subtractExact(xConst.asInt(), yConst.asInt()));
             } else {
-                assert xConst.getKind() == Kind.Long;
+                assert xConst.getJavaKind() == JavaKind.Long;
                 return ConstantNode.forLong(Math.subtractExact(xConst.asLong(), yConst.asLong()));
             }
         } catch (ArithmeticException ex) {