Mercurial > hg > truffle
diff graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/nodes/AssertionNode.java @ 18187:9619ba4daf4c
Rename Constant to JavaConstant.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Thu, 30 Oct 2014 12:21:07 +0100 |
parents | 45b45f902bed |
children | f57d86eb036f |
line wrap: on
line diff
--- a/graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/nodes/AssertionNode.java Thu Oct 30 11:18:48 2014 +0100 +++ b/graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/nodes/AssertionNode.java Thu Oct 30 12:21:07 2014 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -64,7 +64,7 @@ @Override public Node canonical(CanonicalizerTool tool) { - if (value.isConstant() && value.asConstant().asInt() != 0) { + if (value.isConstant() && value.asJavaConstant().asInt() != 0) { return null; } /* @@ -82,7 +82,7 @@ public void generate(NodeLIRBuilderTool generator) { assert compileTimeAssertion; - if (value.isConstant() && value.asConstant().asInt() == 0) { + if (value.isConstant() && value.asJavaConstant().asInt() == 0) { throw new GraalInternalError("%s: failed compile-time assertion: %s", this, message); } else { throw new GraalInternalError("%s: failed compile-time assertion (value %s): %s", this, value, message);