Mercurial > hg > graal-compiler
changeset 11681:39f98ffd187f
Fix compiler warnings.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Tue, 17 Sep 2013 17:09:43 +0200 |
parents | 524d0a0a47b8 |
children | 976ebd1973d1 7a987d8147c2 |
files | graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/PartialEvaluator.java graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/TruffleCache.java |
diffstat | 2 files changed, 2 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/PartialEvaluator.java Tue Sep 17 17:05:27 2013 +0200 +++ b/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/PartialEvaluator.java Tue Sep 17 17:09:43 2013 +0200 @@ -170,11 +170,6 @@ InliningPhase inliningPhase = new InliningPhase(canonicalizer); inliningPhase.apply(graph, context); - for (MethodCallTargetNode mctn : graph.getNodes(MethodCallTargetNode.class)) { - String methodName = mctn.targetName(); - // System.out.println("remaining invoke: " + methodName); - } - for (NeverPartOfCompilationNode neverPartOfCompilationNode : graph.getNodes(NeverPartOfCompilationNode.class)) { Throwable exception = new VerificationError(neverPartOfCompilationNode.getMessage()); throw GraphUtil.approxSourceException(neverPartOfCompilationNode, exception); @@ -205,7 +200,7 @@ return graph; } - private void expandTree(@SuppressWarnings("unused") GraphBuilderConfiguration config, StructuredGraph graph, NewFrameNode newFrameNode, Assumptions assumptions) { + private void expandTree(@SuppressWarnings("unused") GraphBuilderConfiguration config, StructuredGraph graph, @SuppressWarnings("unused") NewFrameNode newFrameNode, Assumptions assumptions) { PhaseContext context = new PhaseContext(metaAccessProvider, assumptions, replacements); boolean changed; do {
--- a/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/TruffleCache.java Tue Sep 17 17:05:27 2013 +0200 +++ b/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/TruffleCache.java Tue Sep 17 17:09:43 2013 +0200 @@ -49,7 +49,6 @@ import com.oracle.graal.virtual.phases.ea.*; import com.oracle.truffle.api.*; import com.oracle.truffle.api.nodes.*; -import com.oracle.truffle.api.nodes.Node.*; /** * Implementation of a cache for Truffle graphs for improving partial evaluation time. @@ -71,6 +70,7 @@ this.replacements = replacements; } + @SuppressWarnings("unused") public StructuredGraph lookup(final ResolvedJavaMethod method, final NodeInputList<ValueNode> arguments, final Assumptions assumptions, final CanonicalizerPhase finalCanonicalizer) { StructuredGraph resultGraph = null;