|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jikesrvm.adaptive.util.UnResolvedWeightedCallTargets
public abstract class UnResolvedWeightedCallTargets
A collection of weighted call targets. In some case we can't resolve a class too early in the process. So we recorded it as unresolved and resolve the method when the method is being compiled.
| Nested Class Summary | |
|---|---|
private static class |
UnResolvedWeightedCallTargets.UnResolvedMultiTarget
An implementation for storing a call site distribution that has multiple targets. |
private static class |
UnResolvedWeightedCallTargets.UnResolvedSingleTarget
An implementation for storing a call site distribution that has a single target. |
static interface |
UnResolvedWeightedCallTargets.Visitor
Used by visitTargets |
| Constructor Summary | |
|---|---|
UnResolvedWeightedCallTargets()
|
|
| Method Summary | |
|---|---|
abstract UnResolvedWeightedCallTargets |
augmentCount(MethodReference target,
double amount)
Augment the weight associated with the argument method by the argument amount. |
static UnResolvedWeightedCallTargets |
create(MethodReference target,
double weight)
|
abstract void |
decay(double rate)
Decay the weights of all call targets by the specified amount |
abstract UnResolvedWeightedCallTargets |
filter(MethodReference goal)
|
UnResolvedWeightedCallTargets |
incrementCount(MethodReference target)
Augment the weight associated with the argument method by 1. |
abstract double |
totalWeight()
totalWeight of all call targets |
abstract void |
visitTargets(UnResolvedWeightedCallTargets.Visitor func)
Iterate over all of the targets, evaluating the argument function on each edge. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnResolvedWeightedCallTargets()
| Method Detail |
|---|
public abstract void visitTargets(UnResolvedWeightedCallTargets.Visitor func)
func - the function to evaluate on each targetpublic final UnResolvedWeightedCallTargets incrementCount(MethodReference target)
public abstract UnResolvedWeightedCallTargets augmentCount(MethodReference target,
double amount)
public abstract void decay(double rate)
rate - the value to decay bypublic abstract double totalWeight()
public abstract UnResolvedWeightedCallTargets filter(MethodReference goal)
goal - MethodReference that is the only statically possible target
public static UnResolvedWeightedCallTargets create(MethodReference target,
double weight)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||