Code example for BitSet

0
    /** {@inheritDoc} */ 
    public FirstFitAllocator( 
            final SsaMethod ssaMeth, final InterferenceGraph interference) {
        super(ssaMeth, interference);
 
        mapped = new BitSet(ssaMeth.getRegCount());
    } 
 
    /** {@inheritDoc} */ 
    @Override 
    public boolean wantsParamsMovedHigh() { 
        return PRESLOT_PARAMS;
    } 
 
    /** {@inheritDoc} */ 
    @Override 
    public RegisterMapper allocateRegisters() { 
        int oldRegCount = ssaMeth.getRegCount();
 
        BasicRegisterMapper mapper
                = new BasicRegisterMapper(oldRegCount);