private boolean tooBig(BasicBlock bb,int maxCost){
  int cost=0;
  for (Enumeration<Instruction> e=bb.forwardRealInstrEnumerator(); e.hasMoreElements(); ) {
    Instruction s=e.nextElement();
    if (s.isCall()) {
      cost+=3;
    }
 else     if (s.isAllocation()) {
      cost+=6;
    }
 else {
      cost++;
    }
    if (cost > maxCost)     return true;
  }
  return false;
}

private boolean tooBig ( BasicBlock bb , int maxCost ) { int cost = 0 ; for ( Enumeration < Instruction > e = bb . forwardRealInstrEnumerator ( ) ; e . hasMoreElements ( ) ; ) { Instruction s = e . nextElement ( ) ; if ( s . isCall ( ) ) { cost += 3 ; } else if ( s . isAllocation ( ) ) { cost += 6 ; } else { cost ++ ; } if ( cost > maxCost ) return true ; } return false ; }
simplistic cost estimate ; since we are doing the splitting based on static hints , we are only willing to copy a very small amount of code .
