Mercurial > hg > truffle
changeset 16257:7e87ec3d156a
enable new-node assertion for all Canonicalizable node types
author | Lukas Stadler <lukas.stadler@oracle.com> |
---|---|
date | Thu, 26 Jun 2014 16:27:36 +0200 |
parents | 6f02ff62c3ef |
children | 3a463b85b195 |
files | graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/CanonicalizerPhase.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/CanonicalizerPhase.java Thu Jun 26 16:27:36 2014 +0200 +++ b/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/CanonicalizerPhase.java Thu Jun 26 16:27:36 2014 +0200 @@ -228,7 +228,7 @@ private static AutoCloseable getCanonicalizeableContractAssertion(Node node) { boolean needsAssertion = false; assert (needsAssertion = true) == true; - if (needsAssertion && (node instanceof Canonicalizable.Unary<?> || node instanceof Canonicalizable.Binary<?>)) { + if (needsAssertion) { Mark mark = node.graph().getMark(); return () -> { assert mark.equals(node.graph().getMark()) : "new node created while canonicalizing " + node.getClass().getSimpleName() + " " + node + ": " +