public VirtualStackSlot makeLockSlot(int lockDepth){
  if (locks == EMPTY) {
    locks=new AllocatableValue[lockDepth + 1];
  }
 else   if (locks.length < lockDepth + 1) {
    locks=Arrays.copyOf(locks,lockDepth + 1);
  }
  if (locks[lockDepth] == null) {
    locks[lockDepth]=frameMapBuilder.allocateSpillSlot(slotKind);
  }
  return (VirtualStackSlot)locks[lockDepth];
}

public VirtualStackSlot makeLockSlot ( int lockDepth ) { if ( locks == EMPTY ) { locks = new AllocatableValue [ lockDepth + 1 ] ; } else if ( locks . length < lockDepth + 1 ) { locks = Arrays . copyOf ( locks , lockDepth + 1 ) ; } if ( locks [ lockDepth ] == null ) { locks [ lockDepth ] = frameMapBuilder . allocateSpillSlot ( slotKind ) ; } return ( VirtualStackSlot ) locks [ lockDepth ] ; }
gets a stack slot for a lock at a given lock nesting depth , allocating it first if necessary .
