org.jikesrvm.compilers.baseline
Class BranchProfile
java.lang.Object
org.jikesrvm.compilers.baseline.BranchProfile
- Direct Known Subclasses:
- ConditionalBranchProfile, SwitchBranchProfile
public abstract class BranchProfile
- extends Object
Profile data for a branch instruction.
Field Summary |
protected int |
bci
The bytecode index of the branch instruction |
protected float |
freq
The number of times the branch was executed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bci
protected final int bci
- The bytecode index of the branch instruction
freq
protected final float freq
- The number of times the branch was executed.
BranchProfile
BranchProfile(int _bci,
float _freq)
- Parameters:
_bci
- the bytecode index of the source branch instruction_freq
- the number of times the branch was executed
getBytecodeIndex
public final int getBytecodeIndex()
getFrequency
public final float getFrequency()