Java Code Examples for com.android.dx.util.IntSet#elements()

The following examples show how to use com.android.dx.util.IntSet#elements() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FirstFitLocalCombiningAllocator.java    From Box with Apache License 2.0 5 votes vote down vote up
/**
 * Converts a bit set of SSA registers into a RegisterSpecList containing
 * the definition specs of all the registers.
 *
 * @param ssaSet {@code non-null;} set of SSA registers
 * @return list of RegisterSpecs as noted above
 */
RegisterSpecList ssaSetToSpecs(IntSet ssaSet) {
    RegisterSpecList result = new RegisterSpecList(ssaSet.elements());

    IntIterator iter = ssaSet.iterator();

    int i = 0;
    while (iter.hasNext()) {
        result.set(i++, getDefinitionSpecForSsaReg(iter.next()));
    }

    return result;
}
 
Example 2
Source File: FirstFitLocalCombiningAllocator.java    From Box with Apache License 2.0 5 votes vote down vote up
/**
 * Converts a bit set of SSA registers into a RegisterSpecList containing
 * the definition specs of all the registers.
 *
 * @param ssaSet {@code non-null;} set of SSA registers
 * @return list of RegisterSpecs as noted above
 */
RegisterSpecList ssaSetToSpecs(IntSet ssaSet) {
    RegisterSpecList result = new RegisterSpecList(ssaSet.elements());

    IntIterator iter = ssaSet.iterator();

    int i = 0;
    while (iter.hasNext()) {
        result.set(i++, getDefinitionSpecForSsaReg(iter.next()));
    }

    return result;
}
 
Example 3
Source File: FirstFitLocalCombiningAllocator.java    From J2ME-Loader with Apache License 2.0 5 votes vote down vote up
/**
 * Converts a bit set of SSA registers into a RegisterSpecList containing
 * the definition specs of all the registers.
 *
 * @param ssaSet {@code non-null;} set of SSA registers
 * @return list of RegisterSpecs as noted above
 */
RegisterSpecList ssaSetToSpecs(IntSet ssaSet) {
    RegisterSpecList result = new RegisterSpecList(ssaSet.elements());

    IntIterator iter = ssaSet.iterator();

    int i = 0;
    while (iter.hasNext()) {
        result.set(i++, getDefinitionSpecForSsaReg(iter.next()));
    }

    return result;
}
 
Example 4
Source File: FirstFitLocalCombiningAllocator.java    From buck with Apache License 2.0 5 votes vote down vote up
/**
 * Converts a bit set of SSA registers into a RegisterSpecList containing
 * the definition specs of all the registers.
 *
 * @param ssaSet {@code non-null;} set of SSA registers
 * @return list of RegisterSpecs as noted above
 */
RegisterSpecList ssaSetToSpecs(IntSet ssaSet) {
    RegisterSpecList result = new RegisterSpecList(ssaSet.elements());

    IntIterator iter = ssaSet.iterator();

    int i = 0;
    while (iter.hasNext()) {
        result.set(i++, getDefinitionSpecForSsaReg(iter.next()));
    }

    return result;
}