/** * Returns an instance that is identical to this one, except that * the type is replaced by the given one. * * @param newType {@code non-null;} the new type * @return {@code non-null;} an appropriately-constructed instance */ public RegisterSpec withType(TypeBearer newType) { return makeLocalOptional(reg, newType, local); }
/** * Returns an instance that is identical to this one, except that * the type is replaced by the given one. * * @param newType {@code non-null;} the new type * @return {@code non-null;} an appropriately-constructed instance */ public RegisterSpec withType(TypeBearer newType) { return makeLocalOptional(reg, newType, local); }
/** {@inheritDoc} */ @Override public final void localTarget(int idx, Type type, LocalItem local) { localTarget = RegisterSpec.makeLocalOptional(idx, type, local); }
/** * Returns an instance that is identical to this one, except that * the type is replaced by the given one. * * @param newType {@code non-null;} the new type * @return {@code non-null;} an appropriately-constructed instance */ public RegisterSpec withType(TypeBearer newType) { return makeLocalOptional(reg, newType, local); }
/** * Returns an instance that is identical to this one, except that * the type is replaced by the given one. * * @param newType {@code non-null;} the new type * @return {@code non-null;} an appropriately-constructed instance */ public RegisterSpec withType(TypeBearer newType) { return makeLocalOptional(reg, newType, local); }
/** * Returns an instance that is identical to this one, except that * the type is replaced by the given one. * * @param newType {@code non-null;} the new type * @return {@code non-null;} an appropriately-constructed instance */ public RegisterSpec withType(TypeBearer newType) { return makeLocalOptional(reg, newType, local); }
/** {@inheritDoc} */ public final void localTarget(int idx, Type type, LocalItem local) { localTarget = RegisterSpec.makeLocalOptional(idx, type, local); }
/** * Returns an instance that is identical to this one, except that the * register number is replaced by the given one. * * @param newReg {@code >= 0;} the new register number * @return {@code non-null;} an appropriately-constructed instance */ public RegisterSpec withReg(int newReg) { if (reg == newReg) { return this; } return makeLocalOptional(newReg, type, local); }
/** * Returns an instance that is identical to this one, except that * the type is replaced by the given one. * * @param newType {@code non-null;} the new type * @return {@code non-null;} an appropriately-constructed instance */ public RegisterSpec withType(TypeBearer newType) { return makeLocalOptional(reg, newType, local); }
/** {@inheritDoc} */ public final void localTarget(int idx, Type type, LocalItem local) { localTarget = RegisterSpec.makeLocalOptional(idx, type, local); }
/** * Returns an instance that is identical to this one, except that the * register number is replaced by the given one. * * @param newReg {@code >= 0;} the new register number * @return {@code non-null;} an appropriately-constructed instance */ public RegisterSpec withReg(int newReg) { if (reg == newReg) { return this; } return makeLocalOptional(newReg, type, local); }
/** {@inheritDoc} */ public final void localTarget(int idx, Type type, LocalItem local) { localTarget = RegisterSpec.makeLocalOptional(idx, type, local); }
/** * Returns an instance that is identical to this one, except that * the type is replaced by the given one. * * @param newType {@code non-null;} the new type * @return {@code non-null;} an appropriately-constructed instance */ public RegisterSpec withType(TypeBearer newType) { return makeLocalOptional(reg, newType, local); }
/** {@inheritDoc} */ @Override public final void localTarget(int idx, Type type, LocalItem local) { localTarget = RegisterSpec.makeLocalOptional(idx, type, local); }
/** * Changes the result type. Used during phi type resolution * * @param type {@code non-null;} new TypeBearer * @param local {@code null-ok;} new local info, if available */ public void changeResultType(TypeBearer type, LocalItem local) { setResult(RegisterSpec.makeLocalOptional( getResult().getReg(), type, local)); }
/** * Changes the result type. Used during phi type resolution * * @param type {@code non-null;} new TypeBearer * @param local {@code null-ok;} new local info, if available */ public void changeResultType(TypeBearer type, LocalItem local) { setResult(RegisterSpec.makeLocalOptional( getResult().getReg(), type, local)); }
/** * Changes the result type. Used during phi type resolution * * @param type {@code non-null;} new TypeBearer * @param local {@code null-ok;} new local info, if available */ public void changeResultType(TypeBearer type, LocalItem local) { setResult(RegisterSpec.makeLocalOptional( getResult().getReg(), type, local)); }
/** * Changes the result type. Used during phi type resolution * * @param type {@code non-null;} new TypeBearer * @param local {@code null-ok;} new local info, if available */ public void changeResultType(TypeBearer type, LocalItem local) { setResult(RegisterSpec.makeLocalOptional( getResult().getReg(), type, local)); }
/** * Changes the result type. Used during phi type resolution * * @param type {@code non-null;} new TypeBearer * @param local {@code null-ok;} new local info, if available */ public void changeResultType(TypeBearer type, LocalItem local) { setResult(RegisterSpec.makeLocalOptional( getResult().getReg(), type, local)); }
/** * Changes the result type. Used during phi type resolution * * @param type {@code non-null;} new TypeBearer * @param local {@code null-ok;} new local info, if available */ public void changeResultType(TypeBearer type, LocalItem local) { setResult(RegisterSpec.makeLocalOptional( getResult().getReg(), type, local)); }