org.jikesrvm.compilers.baseline
Class BranchProfile

java.lang.Object
  extended by 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.
 
Constructor Summary
BranchProfile(int _bci, float _freq)
           
 
Method Summary
 int getBytecodeIndex()
           
 float getFrequency()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Constructor Detail

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
Method Detail

getBytecodeIndex

public final int getBytecodeIndex()

getFrequency

public final float getFrequency()