org.jikesrvm.compilers.baseline
Class ConditionalBranchProfile

java.lang.Object
  extended by org.jikesrvm.compilers.baseline.BranchProfile
      extended by org.jikesrvm.compilers.baseline.ConditionalBranchProfile

public final class ConditionalBranchProfile
extends BranchProfile

Profile data for a branch instruction.


Field Summary
(package private)  boolean backwards
           
(package private)  float taken
           
 
Fields inherited from class org.jikesrvm.compilers.baseline.BranchProfile
bci, freq
 
Constructor Summary
ConditionalBranchProfile(int _bci, int yea, int nea, boolean bw)
           
 
Method Summary
 float getTakenProbability()
           
 String toString()
           
 
Methods inherited from class org.jikesrvm.compilers.baseline.BranchProfile
getBytecodeIndex, getFrequency
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

taken

final float taken

backwards

final boolean backwards
Constructor Detail

ConditionalBranchProfile

ConditionalBranchProfile(int _bci,
                         int yea,
                         int nea,
                         boolean bw)
Parameters:
_bci - the bytecode index of the source branch instruction
yea - the number of times the branch was taken
nea - the number of times the branch was not taken
bw - is this a backwards branch?
Method Detail

getTakenProbability

public float getTakenProbability()

toString

public String toString()
Overrides:
toString in class Object