com.android.dx.util.ListIntSet Java Examples

The following examples show how to use com.android.dx.util.ListIntSet. 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: SetFactory.java    From Box with Apache License 2.0 2 votes vote down vote up
/**
 * Make IntSet for the dominance-frontier sets.
 *
 * @param szBlocks {@code >=0;} count of basic blocks in method
 * @return {@code non-null;} appropriate set
 */
/*package*/ static IntSet makeDomFrontSet(int szBlocks) {
    return szBlocks <= DOMFRONT_SET_THRESHOLD_SIZE
            ? new BitIntSet(szBlocks)
            : new ListIntSet();
}
 
Example #2
Source File: SetFactory.java    From Box with Apache License 2.0 2 votes vote down vote up
/**
 * Make IntSet for the interference graph sets. Public because
 * InterferenceGraph is in another package.
 *
 * @param countRegs {@code >=0;} count of SSA registers used in method
 * @return {@code non-null;} appropriate set
 */
public static IntSet makeInterferenceSet(int countRegs) {
    return countRegs <= INTERFERENCE_SET_THRESHOLD_SIZE
            ? new BitIntSet(countRegs)
            : new ListIntSet();
}
 
Example #3
Source File: SetFactory.java    From Box with Apache License 2.0 2 votes vote down vote up
/**
 * Make IntSet for register live in/out sets.
 *
 * @param countRegs {@code >=0;} count of SSA registers used in method
 * @return {@code non-null;} appropriate set
 */
/*package*/ static IntSet makeLivenessSet(int countRegs) {
    return countRegs <= LIVENESS_SET_THRESHOLD_SIZE
            ? new BitIntSet(countRegs)
            : new ListIntSet();
}
 
Example #4
Source File: SetFactory.java    From Box with Apache License 2.0 2 votes vote down vote up
/**
 * Make IntSet for the dominance-frontier sets.
 *
 * @param szBlocks {@code >=0;} count of basic blocks in method
 * @return {@code non-null;} appropriate set
 */
/*package*/ static IntSet makeDomFrontSet(int szBlocks) {
    return szBlocks <= DOMFRONT_SET_THRESHOLD_SIZE
            ? new BitIntSet(szBlocks)
            : new ListIntSet();
}
 
Example #5
Source File: SetFactory.java    From Box with Apache License 2.0 2 votes vote down vote up
/**
 * Make IntSet for the interference graph sets. Public because
 * InterferenceGraph is in another package.
 *
 * @param countRegs {@code >=0;} count of SSA registers used in method
 * @return {@code non-null;} appropriate set
 */
public static IntSet makeInterferenceSet(int countRegs) {
    return countRegs <= INTERFERENCE_SET_THRESHOLD_SIZE
            ? new BitIntSet(countRegs)
            : new ListIntSet();
}
 
Example #6
Source File: SetFactory.java    From Box with Apache License 2.0 2 votes vote down vote up
/**
 * Make IntSet for register live in/out sets.
 *
 * @param countRegs {@code >=0;} count of SSA registers used in method
 * @return {@code non-null;} appropriate set
 */
/*package*/ static IntSet makeLivenessSet(int countRegs) {
    return countRegs <= LIVENESS_SET_THRESHOLD_SIZE
            ? new BitIntSet(countRegs)
            : new ListIntSet();
}
 
Example #7
Source File: SetFactory.java    From J2ME-Loader with Apache License 2.0 2 votes vote down vote up
/**
 * Make IntSet for the dominance-frontier sets.
 *
 * @param szBlocks {@code >=0;} count of basic blocks in method
 * @return {@code non-null;} appropriate set
 */
/*package*/ static IntSet makeDomFrontSet(int szBlocks) {
    return szBlocks <= DOMFRONT_SET_THRESHOLD_SIZE
            ? new BitIntSet(szBlocks)
            : new ListIntSet();
}
 
Example #8
Source File: SetFactory.java    From J2ME-Loader with Apache License 2.0 2 votes vote down vote up
/**
 * Make IntSet for the interference graph sets. Public because
 * InterferenceGraph is in another package.
 *
 * @param countRegs {@code >=0;} count of SSA registers used in method
 * @return {@code non-null;} appropriate set
 */
public static IntSet makeInterferenceSet(int countRegs) {
    return countRegs <= INTERFERENCE_SET_THRESHOLD_SIZE
            ? new BitIntSet(countRegs)
            : new ListIntSet();
}
 
Example #9
Source File: SetFactory.java    From J2ME-Loader with Apache License 2.0 2 votes vote down vote up
/**
 * Make IntSet for register live in/out sets.
 *
 * @param countRegs {@code >=0;} count of SSA registers used in method
 * @return {@code non-null;} appropriate set
 */
/*package*/ static IntSet makeLivenessSet(int countRegs) {
    return countRegs <= LIVENESS_SET_THRESHOLD_SIZE
            ? new BitIntSet(countRegs)
            : new ListIntSet();
}
 
Example #10
Source File: SetFactory.java    From buck with Apache License 2.0 2 votes vote down vote up
/**
 * Make IntSet for the dominance-frontier sets.
 *
 * @param szBlocks {@code >=0;} count of basic blocks in method
 * @return {@code non-null;} appropriate set
 */
/*package*/ static IntSet makeDomFrontSet(int szBlocks) {
    return szBlocks <= DOMFRONT_SET_THRESHOLD_SIZE
            ? new BitIntSet(szBlocks)
            : new ListIntSet();
}
 
Example #11
Source File: SetFactory.java    From buck with Apache License 2.0 2 votes vote down vote up
/**
 * Make IntSet for the interference graph sets. Public because
 * InterferenceGraph is in another package.
 *
 * @param countRegs {@code >=0;} count of SSA registers used in method
 * @return {@code non-null;} appropriate set
 */
public static IntSet makeInterferenceSet(int countRegs) {
    return countRegs <= INTERFERENCE_SET_THRESHOLD_SIZE
            ? new BitIntSet(countRegs)
            : new ListIntSet();
}
 
Example #12
Source File: SetFactory.java    From buck with Apache License 2.0 2 votes vote down vote up
/**
 * Make IntSet for register live in/out sets.
 *
 * @param countRegs {@code >=0;} count of SSA registers used in method
 * @return {@code non-null;} appropriate set
 */
/*package*/ static IntSet makeLivenessSet(int countRegs) {
    return countRegs <= LIVENESS_SET_THRESHOLD_SIZE
            ? new BitIntSet(countRegs)
            : new ListIntSet();
}