diff graal/com.oracle.graal.graph/src/com/oracle/graal/graph/NodeClass.java @ 6657:768793150bcd

more PEA refactoring, multiple iterations
author Lukas Stadler <lukas.stadler@jku.at>
date Wed, 31 Oct 2012 18:21:19 +0100
parents c72a65b655ea
children b914b9b4c578
line wrap: on
line diff
--- a/graal/com.oracle.graal.graph/src/com/oracle/graal/graph/NodeClass.java	Wed Oct 31 10:33:01 2012 +0100
+++ b/graal/com.oracle.graal.graph/src/com/oracle/graal/graph/NodeClass.java	Wed Oct 31 18:21:19 2012 +0100
@@ -410,11 +410,14 @@
         if (canGVN) {
             number = startGVNNumber;
             for (int i = 0; i < dataOffsets.length; ++i) {
-                Class<?> type = dataTypes[i];
+                Class< ? > type = dataTypes[i];
                 if (type.isPrimitive()) {
                     if (type == Integer.TYPE) {
                         int intValue = unsafe.getInt(n, dataOffsets[i]);
                         number += intValue;
+                    } else if (type == Long.TYPE) {
+                        long longValue = unsafe.getLong(n, dataOffsets[i]);
+                        number += longValue ^ (longValue >>> 32);
                     } else if (type == Boolean.TYPE) {
                         boolean booleanValue = unsafe.getBoolean(n, dataOffsets[i]);
                         if (booleanValue) {