Mercurial > hg > truffle
diff graal/com.oracle.graal.graph/src/com/oracle/graal/graph/NodeClass.java @ 6302:5d7d9a6953bd
added InstanceOfSnippets which passes InstanceOfTest but is not yet enabled for general lowering
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 31 Aug 2012 17:57:30 +0200 |
parents | 911315a3e642 |
children | c72a65b655ea |
line wrap: on
line diff
--- a/graal/com.oracle.graal.graph/src/com/oracle/graal/graph/NodeClass.java Wed Aug 29 13:05:43 2012 +0200 +++ b/graal/com.oracle.graal.graph/src/com/oracle/graal/graph/NodeClass.java Fri Aug 31 17:57:30 2012 +0200 @@ -606,7 +606,7 @@ while (index < directInputCount) { Node input = getNode(node, inputOffsets[index]); if (input == old) { - assert other == null || fieldTypes.get(inputOffsets[index]).isAssignableFrom(other.getClass()); // : "Can not assign " + other.getClass() + " to " + inputTypes[index] + " in " + node; + assert other == null || fieldTypes.get(inputOffsets[index]).isAssignableFrom(other.getClass()) : "Can not assign " + other.getClass() + " to " + fieldTypes.get(inputOffsets[index]) + " in " + node; putNode(node, inputOffsets[index], other); return true; } @@ -830,7 +830,7 @@ // create node duplicates for (Node node : nodes) { if (node != null) { - assert !node.isDeleted() : "trying to duplicate deleted node"; + assert !node.isDeleted() : "trying to duplicate deleted node: " + node; Node replacement = replacements.replacement(node); if (replacement != node) { assert replacement != null;