Mercurial > hg > truffle
changeset 4434:19fb5eea48b9
Minor change.
author | Andreas Woess <andreas.woess@jku.at> |
---|---|
date | Fri, 03 Feb 2012 18:34:33 +0100 |
parents | b494d6f329a3 |
children | cd1e19b72f13 |
files | graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/phases/InliningPhase.java graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/phases/LoweringPhase.java |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/phases/InliningPhase.java Fri Feb 03 17:13:46 2012 +0100 +++ b/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/phases/InliningPhase.java Fri Feb 03 18:34:33 2012 +0100 @@ -47,7 +47,7 @@ private final CiTarget target; private final GraalRuntime runtime; - private final Collection<Invoke> hints; + private final Collection<? extends Invoke> hints; private final PriorityQueue<InlineInfo> inlineCandidates = new PriorityQueue<>(); private CiAssumptions assumptions; @@ -58,7 +58,7 @@ private static final DebugMetric metricInliningPerformed = Debug.metric("InliningPerformed"); private static final DebugMetric metricInliningConsidered = Debug.metric("InliningConsidered"); - public InliningPhase(CiTarget target, GraalRuntime runtime, Collection<Invoke> hints, CiAssumptions assumptions, PhasePlan plan) { + public InliningPhase(CiTarget target, GraalRuntime runtime, Collection<? extends Invoke> hints, CiAssumptions assumptions, PhasePlan plan) { this.target = target; this.runtime = runtime; this.hints = hints;
--- a/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/phases/LoweringPhase.java Fri Feb 03 17:13:46 2012 +0100 +++ b/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/phases/LoweringPhase.java Fri Feb 03 18:34:33 2012 +0100 @@ -62,6 +62,7 @@ @Override public Node createGuard(Node condition) { + // TODO(tw): Explain why this must not be called on floating nodes. throw new UnsupportedOperationException(); } };