private static RegisterSpecList concatenate(Local<?> first, Local<?>[] rest) { int offset = (first != null) ? 1 : 0; RegisterSpecList result = new RegisterSpecList(offset + rest.length); if (first != null) { result.set(0, first.spec()); } for (int i = 0; i < rest.length; i++) { result.set(i + offset, rest[i].spec()); } return result; } }
/** * Makes a single-element instance. * * @param spec {@code non-null;} the element * @return {@code non-null;} an appropriately-constructed instance */ public static RegisterSpecList make(RegisterSpec spec) { RegisterSpecList result = new RegisterSpecList(1); result.set(0, spec); return result; }
/** * Makes a single-element instance. * * @param spec {@code non-null;} the element * @return {@code non-null;} an appropriately-constructed instance */ public static RegisterSpecList make(RegisterSpec spec) { RegisterSpecList result = new RegisterSpecList(1); result.set(0, spec); return result; }
/** * Makes a single-element instance. * * @param spec {@code non-null;} the element * @return {@code non-null;} an appropriately-constructed instance */ public static RegisterSpecList make(RegisterSpec spec) { RegisterSpecList result = new RegisterSpecList(1); result.set(0, spec); return result; }
private Expander(RegisterSpecList regSpecList, BitSet compatRegs, int base, boolean duplicateFirst) { this.regSpecList = regSpecList; this.compatRegs = compatRegs; this.base = base; this.result = new RegisterSpecList(regSpecList.size()); this.duplicateFirst = duplicateFirst; }
/** * Makes a single-element instance. * * @param spec {@code non-null;} the element * @return {@code non-null;} an appropriately-constructed instance */ public static RegisterSpecList make(RegisterSpec spec) { RegisterSpecList result = new RegisterSpecList(1); result.set(0, spec); return result; }
private Expander(RegisterSpecList regSpecList, BitSet compatRegs, int base, boolean duplicateFirst) { this.regSpecList = regSpecList; this.compatRegs = compatRegs; this.base = base; this.result = new RegisterSpecList(regSpecList.size()); this.duplicateFirst = duplicateFirst; }
/** * Makes a single-element instance. * * @param spec {@code non-null;} the element * @return {@code non-null;} an appropriately-constructed instance */ public static RegisterSpecList make(RegisterSpec spec) { RegisterSpecList result = new RegisterSpecList(1); result.set(0, spec); return result; }
/** * Makes a single-element instance. * * @param spec {@code non-null;} the element * @return {@code non-null;} an appropriately-constructed instance */ public static RegisterSpecList make(RegisterSpec spec) { RegisterSpecList result = new RegisterSpecList(1); result.set(0, spec); return result; }
/** * Makes a single-element instance. * * @param spec {@code non-null;} the element * @return {@code non-null;} an appropriately-constructed instance */ public static RegisterSpecList make(RegisterSpec spec) { RegisterSpecList result = new RegisterSpecList(1); result.set(0, spec); return result; }
/** * Makes a single-element instance. * * @param spec {@code non-null;} the element * @return {@code non-null;} an appropriately-constructed instance */ public static RegisterSpecList make(RegisterSpec spec) { RegisterSpecList result = new RegisterSpecList(1); result.set(0, spec); return result; }
private Expander(RegisterSpecList regSpecList, BitSet compatRegs, int base, boolean duplicateFirst) { this.regSpecList = regSpecList; this.compatRegs = compatRegs; this.base = base; this.result = new RegisterSpecList(regSpecList.size()); this.duplicateFirst = duplicateFirst; }
private Expander(RegisterSpecList regSpecList, BitSet compatRegs, int base, boolean duplicateFirst) { this.regSpecList = regSpecList; this.compatRegs = compatRegs; this.base = base; this.result = new RegisterSpecList(regSpecList.size()); this.duplicateFirst = duplicateFirst; }
/** * Makes a two-element instance. * * @param spec0 {@code non-null;} the first element * @param spec1 {@code non-null;} the second element * @return {@code non-null;} an appropriately-constructed instance */ public static RegisterSpecList make(RegisterSpec spec0, RegisterSpec spec1) { RegisterSpecList result = new RegisterSpecList(2); result.set(0, spec0); result.set(1, spec1); return result; }
/** * Makes a two-element instance. * * @param spec0 {@code non-null;} the first element * @param spec1 {@code non-null;} the second element * @return {@code non-null;} an appropriately-constructed instance */ public static RegisterSpecList make(RegisterSpec spec0, RegisterSpec spec1) { RegisterSpecList result = new RegisterSpecList(2); result.set(0, spec0); result.set(1, spec1); return result; }
/** * Makes a two-element instance. * * @param spec0 {@code non-null;} the first element * @param spec1 {@code non-null;} the second element * @return {@code non-null;} an appropriately-constructed instance */ public static RegisterSpecList make(RegisterSpec spec0, RegisterSpec spec1) { RegisterSpecList result = new RegisterSpecList(2); result.set(0, spec0); result.set(1, spec1); return result; }
/** * Makes a two-element instance. * * @param spec0 {@code non-null;} the first element * @param spec1 {@code non-null;} the second element * @return {@code non-null;} an appropriately-constructed instance */ public static RegisterSpecList make(RegisterSpec spec0, RegisterSpec spec1) { RegisterSpecList result = new RegisterSpecList(2); result.set(0, spec0); result.set(1, spec1); return result; }
private static RegisterSpecList concatenate(Local<?> first, Local<?>[] rest) { int offset = (first != null) ? 1 : 0; RegisterSpecList result = new RegisterSpecList(offset + rest.length); if (first != null) { result.set(0, first.spec()); } for (int i = 0; i < rest.length; i++) { result.set(i + offset, rest[i].spec()); } return result; } }
private static RegisterSpecList concatenate(Local<?> first, Local<?>[] rest) { int offset = (first != null) ? 1 : 0; RegisterSpecList result = new RegisterSpecList(offset + rest.length); if (first != null) { result.set(0, first.spec()); } for (int i = 0; i < rest.length; i++) { result.set(i + offset, rest[i].spec()); } return result; } }
private static RegisterSpecList concatenate(Local<?> first, Local<?>[] rest) { int offset = (first != null) ? 1 : 0; RegisterSpecList result = new RegisterSpecList(offset + rest.length); if (first != null) { result.set(0, first.spec()); } for (int i = 0; i < rest.length; i++) { result.set(i + offset, rest[i].spec()); } return result; } }