public abstract class BranchProfile extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
bci
The bytecode index of the branch instruction
|
protected float |
freq
The number of times the branch was executed.
|
Constructor and Description |
---|
BranchProfile(int bci,
float freq) |
Modifier and Type | Method and Description |
---|---|
(package private) static float |
countToFloat(int count)
Converts integer count to float handling overflow
|
int |
getBytecodeIndex() |
float |
getFrequency() |
protected final int bci
protected final float freq
BranchProfile(int bci, float freq)
bci
- the bytecode index of the source branch instructionfreq
- the number of times the branch was executedpublic final int getBytecodeIndex()
public final float getFrequency()
static float countToFloat(int count)
count
- integer count