/** The cost of inlining this statement */
 public int costInline(int thresh, Environment env, Context ctx) {
   int cost = 1 + cond.costInline(thresh, env, ctx);
   if (ifTrue != null) {
     cost += ifTrue.costInline(thresh, env, ctx);
   }
   if (ifFalse != null) {
     cost += ifFalse.costInline(thresh, env, ctx);
   }
   return cost;
 }
Exemplo n.º 2
0
 /** The cost of inlining this statement */
 public int costInline(int thresh, Environment env, Context ctx) {
   return 1 + ((expr != null) ? expr.costInline(thresh, env, ctx) : 0);
 }