public final class ConditionalBranchProfile extends BranchProfile
| Modifier and Type | Field and Description |
|---|---|
private boolean |
backwards
Backward branch
|
private float |
taken
Probability of being taken
|
bci, freq| Constructor and Description |
|---|
ConditionalBranchProfile(int bci,
int taken,
int notTaken,
boolean bw) |
| Modifier and Type | Method and Description |
|---|---|
float |
getTakenProbability() |
String |
toString() |
countToFloat, getBytecodeIndex, getFrequencyprivate final float taken
private final boolean backwards
ConditionalBranchProfile(int bci, int taken, int notTaken, boolean bw)
bci - the bytecode index of the source branch instructiontaken - the number of times the branch was takennotTaken - the number of times the branch was not takenbw - is this a backwards branch?public float getTakenProbability()