# HG changeset patch # User Thomas Wuerthinger # Date 1379430583 -7200 # Node ID 39f98ffd187f76f76b5fd8d99a037f3875288bb4 # Parent 524d0a0a47b8e8f7d4002998eb3a2159b02c6c8d Fix compiler warnings. diff -r 524d0a0a47b8 -r 39f98ffd187f graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/PartialEvaluator.java --- 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 { diff -r 524d0a0a47b8 -r 39f98ffd187f graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/TruffleCache.java --- 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 arguments, final Assumptions assumptions, final CanonicalizerPhase finalCanonicalizer) { StructuredGraph resultGraph = null;