Ejemplo n.º 1
0
 /**
  * Checks if this call was inlined from the body of the given function item.
  *
  * @param it function item
  * @return result of check
  */
 private boolean comesFrom(final FuncItem it) {
   if (inlinedFrom != null) {
     final int hash = it.hashCode();
     for (final int h : inlinedFrom)
       if (hash == h) {
         return true;
       }
   }
   return false;
 }
Ejemplo n.º 2
0
 /**
  * Marks this call after it was inlined from the given function item.
  *
  * @param it the function item
  */
 public void markInlined(final FuncItem it) {
   final int hash = it.hashCode();
   inlinedFrom = inlinedFrom == null ? new int[] {hash} : Array.add(inlinedFrom, hash);
 }