/** * 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; } }
regs.remove(spec); // TODO: Is this line superfluous? return;
regs.remove(spec); // TODO: Is this line superfluous? return;
regs.remove(spec); // TODO: Is this line superfluous? return;
regs.remove(spec); // TODO: Is this line superfluous? return;
regs.remove(spec); // TODO: Is this line superfluous? return;
regs.remove(spec); // TODO: Is this line superfluous? return;
regs.remove(spec); // TODO: Is this line superfluous? return;
regs.remove(spec); // TODO: Is this line superfluous? return;
regs.remove(endedLocal); result.set(at, null); nullResultCount++;
regs.remove(endedLocal); result.set(at, null); nullResultCount++;
regs.remove(endedLocal); result.set(at, null); nullResultCount++;
regs.remove(endedLocal); result.set(at, null); nullResultCount++;