/** * Adds an entry to the result, updating the adjunct tables * accordingly. * * @param address {@code >= 0;} the address * @param disposition {@code non-null;} the disposition * @param spec {@code non-null;} spec representing the local */ private void add(int address, Disposition disposition, RegisterSpec spec) { int regNum = spec.getReg(); result.add(new Entry(address, disposition, spec)); if (disposition == Disposition.START) { regs.put(spec); endIndices[regNum] = -1; } else { regs.remove(spec); endIndices[regNum] = result.size() - 1; } }
/** * Adds an entry to the result, updating the adjunct tables * accordingly. * * @param address {@code >= 0;} the address * @param disposition {@code non-null;} the disposition * @param spec {@code non-null;} spec representing the local */ private void add(int address, Disposition disposition, RegisterSpec spec) { int regNum = spec.getReg(); result.add(new Entry(address, disposition, spec)); if (disposition == Disposition.START) { regs.put(spec); endIndices[regNum] = -1; } else { regs.remove(spec); endIndices[regNum] = result.size() - 1; } }
/** * Adds an entry to the result, updating the adjunct tables * accordingly. * * @param address {@code >= 0;} the address * @param disposition {@code non-null;} the disposition * @param spec {@code non-null;} spec representing the local */ private void add(int address, Disposition disposition, RegisterSpec spec) { int regNum = spec.getReg(); result.add(new Entry(address, disposition, spec)); if (disposition == Disposition.START) { regs.put(spec); endIndices[regNum] = -1; } else { regs.remove(spec); endIndices[regNum] = result.size() - 1; } }
/** * Adds an entry to the result, updating the adjunct tables * accordingly. * * @param address {@code >= 0;} the address * @param disposition {@code non-null;} the disposition * @param spec {@code non-null;} spec representing the local */ private void add(int address, Disposition disposition, RegisterSpec spec) { int regNum = spec.getReg(); result.add(new Entry(address, disposition, spec)); if (disposition == Disposition.START) { regs.put(spec); endIndices[regNum] = -1; } else { regs.remove(spec); endIndices[regNum] = result.size() - 1; } }
/** * Adds an entry to the result, updating the adjunct tables * accordingly. * * @param address {@code >= 0;} the address * @param disposition {@code non-null;} the disposition * @param spec {@code non-null;} spec representing the local */ private void add(int address, Disposition disposition, RegisterSpec spec) { int regNum = spec.getReg(); result.add(new Entry(address, disposition, spec)); if (disposition == Disposition.START) { regs.put(spec); endIndices[regNum] = -1; } else { regs.remove(spec); endIndices[regNum] = result.size() - 1; } }
/** * Adds an entry to the result, updating the adjunct tables * accordingly. * * @param address {@code >= 0;} the address * @param disposition {@code non-null;} the disposition * @param spec {@code non-null;} spec representing the local */ private void add(int address, Disposition disposition, RegisterSpec spec) { int regNum = spec.getReg(); result.add(new Entry(address, disposition, spec)); if (disposition == Disposition.START) { regs.put(spec); endIndices[regNum] = -1; } else { regs.remove(spec); endIndices[regNum] = result.size() - 1; } }
/** * Adds an entry to the result, updating the adjunct tables * accordingly. * * @param address {@code >= 0;} the address * @param disposition {@code non-null;} the disposition * @param spec {@code non-null;} spec representing the local */ private void add(int address, Disposition disposition, RegisterSpec spec) { int regNum = spec.getReg(); result.add(new Entry(address, disposition, spec)); if (disposition == Disposition.START) { regs.put(spec); endIndices[regNum] = -1; } else { regs.remove(spec); endIndices[regNum] = result.size() - 1; } }
/** * Adds an entry to the result, updating the adjunct tables * accordingly. * * @param address {@code >= 0;} the address * @param disposition {@code non-null;} the disposition * @param spec {@code non-null;} spec representing the local */ private void add(int address, Disposition disposition, RegisterSpec spec) { int regNum = spec.getReg(); result.add(new Entry(address, disposition, spec)); if (disposition == Disposition.START) { regs.put(spec); endIndices[regNum] = -1; } else { regs.remove(spec); endIndices[regNum] = result.size() - 1; } }
/** * Returns an instance just like this one but with the disposition * set as given. * * @param disposition {@code non-null;} the new disposition * @return {@code non-null;} an appropriately-constructed instance */ public Entry withDisposition(Disposition disposition) { if (disposition == this.disposition) { return this; } return new Entry(address, disposition, spec); } }
/** * Returns an instance just like this one but with the disposition * set as given. * * @param disposition {@code non-null;} the new disposition * @return {@code non-null;} an appropriately-constructed instance */ public Entry withDisposition(Disposition disposition) { if (disposition == this.disposition) { return this; } return new Entry(address, disposition, spec); } }
/** * Returns an instance just like this one but with the disposition * set as given. * * @param disposition {@code non-null;} the new disposition * @return {@code non-null;} an appropriately-constructed instance */ public Entry withDisposition(Disposition disposition) { if (disposition == this.disposition) { return this; } return new Entry(address, disposition, spec); } }
/** * Returns an instance just like this one but with the disposition * set as given. * * @param disposition {@code non-null;} the new disposition * @return {@code non-null;} an appropriately-constructed instance */ public Entry withDisposition(Disposition disposition) { if (disposition == this.disposition) { return this; } return new Entry(address, disposition, spec); } }
/** * Returns an instance just like this one but with the disposition * set as given. * * @param disposition {@code non-null;} the new disposition * @return {@code non-null;} an appropriately-constructed instance */ public Entry withDisposition(Disposition disposition) { if (disposition == this.disposition) { return this; } return new Entry(address, disposition, spec); } }
/** * Returns an instance just like this one but with the disposition * set as given. * * @param disposition {@code non-null;} the new disposition * @return {@code non-null;} an appropriately-constructed instance */ public Entry withDisposition(Disposition disposition) { if (disposition == this.disposition) { return this; } return new Entry(address, disposition, spec); } }
/** * Returns an instance just like this one but with the disposition * set as given. * * @param disposition {@code non-null;} the new disposition * @return {@code non-null;} an appropriately-constructed instance */ public Entry withDisposition(Disposition disposition) { if (disposition == this.disposition) { return this; } return new Entry(address, disposition, spec); } }
/** * Returns an instance just like this one but with the disposition * set as given. * * @param disposition {@code non-null;} the new disposition * @return {@code non-null;} an appropriately-constructed instance */ public Entry withDisposition(Disposition disposition) { if (disposition == this.disposition) { return this; } return new Entry(address, disposition, spec); } }