question: 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 ; }
target:  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.