/** * Processes the given register spec. * * @param spec {@code non-null;} the register spec */ private void processReg(RegisterSpec spec) { int reg = spec.getNextReg(); if (reg > regCount) { regCount = reg; } } }
/** * Processes the given register spec. * * @param spec {@code non-null;} the register spec */ private void processReg(RegisterSpec spec) { int reg = spec.getNextReg(); if (reg > regCount) { regCount = reg; } } }
/** * Processes the given register spec. * * @param spec {@code non-null;} the register spec */ private void processReg(RegisterSpec spec) { int reg = spec.getNextReg(); if (reg > regCount) { regCount = reg; } } }
/** * Processes the given register spec. * * @param spec {@code non-null;} the register spec */ private void processReg(RegisterSpec spec) { int reg = spec.getNextReg(); if (reg > regCount) { regCount = reg; } } }
/** * Processes the given register spec. * * @param spec {@code non-null;} the register spec */ private void processReg(RegisterSpec spec) { int reg = spec.getNextReg(); if (reg > regCount) { regCount = reg; } } }
/** * Processes the given register spec. * * @param spec {@code non-null;} the register spec */ private void processReg(RegisterSpec spec) { int reg = spec.getNextReg(); if (reg > regCount) { regCount = reg; } } }
/** * Processes the given register spec. * * @param spec {@code non-null;} the register spec */ private void processReg(RegisterSpec spec) { int reg = spec.getNextReg(); if (reg > regCount) { regCount = reg; } } }
/** * Processes the given register spec. * * @param spec {@code non-null;} the register spec */ private void processReg(RegisterSpec spec) { int reg = spec.getNextReg(); if (reg > regCount) { regCount = reg; } } }
/** * Gets the minimum required register count implied by this * instance. This is equal to the highest register number referred * to plus the widest width (largest category) of the type used in * that register. * * @return {@code >= 0;} the required registers size */ public int getRegistersSize() { int sz = size(); int result = 0; for (int i = 0; i < sz; i++) { RegisterSpec spec = (RegisterSpec) get0(i); if (spec != null) { int min = spec.getNextReg(); if (min > result) { result = min; } } } return result; }
/** * Gets the minimum required register count implied by this * instance. This is equal to the highest register number referred * to plus the widest width (largest category) of the type used in * that register. * * @return {@code >= 0;} the required registers size */ public int getRegistersSize() { int sz = size(); int result = 0; for (int i = 0; i < sz; i++) { RegisterSpec spec = (RegisterSpec) get0(i); if (spec != null) { int min = spec.getNextReg(); if (min > result) { result = min; } } } return result; }
/** * Gets the minimum required register count implied by this * instance. This is equal to the highest register number referred * to plus the widest width (largest category) of the type used in * that register. * * @return {@code >= 0;} the required registers size */ public int getRegistersSize() { int sz = size(); int result = 0; for (int i = 0; i < sz; i++) { RegisterSpec spec = (RegisterSpec) get0(i); if (spec != null) { int min = spec.getNextReg(); if (min > result) { result = min; } } } return result; }
/** * Gets the minimum required register count implied by this * instance. This is equal to the highest register number referred * to plus the widest width (largest category) of the type used in * that register. * * @return {@code >= 0;} the required registers size */ public int getRegistersSize() { int sz = size(); int result = 0; for (int i = 0; i < sz; i++) { RegisterSpec spec = (RegisterSpec) get0(i); if (spec != null) { int min = spec.getNextReg(); if (min > result) { result = min; } } } return result; }
/** * Gets the minimum required register count implied by this * instance. This is equal to the highest register number referred * to plus the widest width (largest category) of the type used in * that register. * * @return {@code >= 0;} the required registers size */ public int getRegistersSize() { int sz = size(); int result = 0; for (int i = 0; i < sz; i++) { RegisterSpec spec = (RegisterSpec) get0(i); if (spec != null) { int min = spec.getNextReg(); if (min > result) { result = min; } } } return result; }
/** * Gets the minimum required register count implied by this * instance. This is equal to the highest register number referred * to plus the widest width (largest category) of the type used in * that register. * * @return {@code >= 0;} the required registers size */ public int getRegistersSize() { int sz = size(); int result = 0; for (int i = 0; i < sz; i++) { RegisterSpec spec = (RegisterSpec) get0(i); if (spec != null) { int min = spec.getNextReg(); if (min > result) { result = min; } } } return result; }
/** * Gets the minimum required register count implied by this * instance. This is equal to the highest register number referred * to plus the widest width (largest category) of the type used in * that register. * * @return {@code >= 0;} the required registers size */ public int getRegistersSize() { int sz = size(); int result = 0; for (int i = 0; i < sz; i++) { RegisterSpec spec = (RegisterSpec) get0(i); if (spec != null) { int min = spec.getNextReg(); if (min > result) { result = min; } } } return result; }
/** {@inheritDoc} */ @Override public void writeTo(AnnotatedOutput out, DalvInsn insn) { RegisterSpecList regs = insn.getRegisters(); int sz = regs.size(); int cpi = ((CstInsn) insn).getIndex(); int firstReg; int count; if (sz == 0) { firstReg = 0; count = 0; } else { int lastReg = regs.get(sz - 1).getNextReg(); firstReg = regs.get(0).getReg(); count = lastReg - firstReg; } write(out, opcodeUnit(insn, count), (short) cpi, (short) firstReg); } }
RegisterSpec.make(dest.getNextReg(), Type.INT_ARRAY); rop = Rops.opFilledNewArray(Type.INT_ARRAY, sourceCount); insn = new ThrowingCstInsn(rop, pos, sources, catches,
RegisterSpec.make(dest.getNextReg(), Type.INT_ARRAY); rop = Rops.opFilledNewArray(Type.INT_ARRAY, sourceCount); insn = new ThrowingCstInsn(rop, pos, sources, catches,
RegisterSpec.make(dest.getNextReg(), Type.INT_ARRAY); rop = Rops.opFilledNewArray(Type.INT_ARRAY, sourceCount); insn = new ThrowingCstInsn(rop, pos, sources, catches,
RegisterSpec.make(dest.getNextReg(), Type.INT_ARRAY); rop = Rops.opFilledNewArray(Type.INT_ARRAY, sourceCount); insn = new ThrowingCstInsn(rop, pos, sources, catches,