/** * Returns how many registers this method requires. This is simply * the maximum of register-number-plus-category referred to by this * instance's instructions (indirectly through {@link BasicBlock} * instances). * * @return {@code >= 0;} the register count */ public int getRegCount() { if (regCount == -1) { RegCountVisitor visitor = new RegCountVisitor(); forEachInsn(visitor); regCount = visitor.getRegCount(); } return regCount; }
/** * Helper for all the {@code visit*} methods. * * @param insn {@code non-null;} instruction being visited */ private void visit(Insn insn) { RegisterSpec result = insn.getResult(); if (result != null) { processReg(result); } RegisterSpecList sources = insn.getSources(); int sz = sources.size(); for (int i = 0; i < sz; i++) { processReg(sources.get(i)); } }
/** {@inheritDoc} */ public void visitThrowingInsn(ThrowingInsn insn) { visit(insn); }
/** * Helper for all the {@code visit*} methods. * * @param insn {@code non-null;} instruction being visited */ private void visit(Insn insn) { RegisterSpec result = insn.getResult(); if (result != null) { processReg(result); } RegisterSpecList sources = insn.getSources(); int sz = sources.size(); for (int i = 0; i < sz; i++) { processReg(sources.get(i)); } }
/** * Helper for all the {@code visit*} methods. * * @param insn {@code non-null;} instruction being visited */ private void visit(Insn insn) { RegisterSpec result = insn.getResult(); if (result != null) { processReg(result); } RegisterSpecList sources = insn.getSources(); int sz = sources.size(); for (int i = 0; i < sz; i++) { processReg(sources.get(i)); } }
/** * Helper for all the {@code visit*} methods. * * @param insn {@code non-null;} instruction being visited */ private void visit(Insn insn) { RegisterSpec result = insn.getResult(); if (result != null) { processReg(result); } RegisterSpecList sources = insn.getSources(); int sz = sources.size(); for (int i = 0; i < sz; i++) { processReg(sources.get(i)); } }
/** * Helper for all the {@code visit*} methods. * * @param insn {@code non-null;} instruction being visited */ private void visit(Insn insn) { RegisterSpec result = insn.getResult(); if (result != null) { processReg(result); } RegisterSpecList sources = insn.getSources(); int sz = sources.size(); for (int i = 0; i < sz; i++) { processReg(sources.get(i)); } }
/** * Helper for all the {@code visit*} methods. * * @param insn {@code non-null;} instruction being visited */ private void visit(Insn insn) { RegisterSpec result = insn.getResult(); if (result != null) { processReg(result); } RegisterSpecList sources = insn.getSources(); int sz = sources.size(); for (int i = 0; i < sz; i++) { processReg(sources.get(i)); } }
/** * Helper for all the {@code visit*} methods. * * @param insn {@code non-null;} instruction being visited */ private void visit(Insn insn) { RegisterSpec result = insn.getResult(); if (result != null) { processReg(result); } RegisterSpecList sources = insn.getSources(); int sz = sources.size(); for (int i = 0; i < sz; i++) { processReg(sources.get(i)); } }
/** * Returns how many registers this method requires. This is simply * the maximum of register-number-plus-category referred to by this * instance's instructions (indirectly through {@link BasicBlock} * instances). * * @return {@code >= 0;} the register count */ public int getRegCount() { if (regCount == -1) { RegCountVisitor visitor = new RegCountVisitor(); forEachInsn(visitor); regCount = visitor.getRegCount(); } return regCount; }
/** * Returns how many registers this method requires. This is simply * the maximum of register-number-plus-category referred to by this * instance's instructions (indirectly through {@link BasicBlock} * instances). * * @return {@code >= 0;} the register count */ public int getRegCount() { if (regCount == -1) { RegCountVisitor visitor = new RegCountVisitor(); forEachInsn(visitor); regCount = visitor.getRegCount(); } return regCount; }
/** * Returns how many registers this method requires. This is simply * the maximum of register-number-plus-category referred to by this * instance's instructions (indirectly through {@link BasicBlock} * instances). * * @return {@code >= 0;} the register count */ public int getRegCount() { if (regCount == -1) { RegCountVisitor visitor = new RegCountVisitor(); forEachInsn(visitor); regCount = visitor.getRegCount(); } return regCount; }
/** * Returns how many registers this method requires. This is simply * the maximum of register-number-plus-category referred to by this * instance's instructions (indirectly through {@link BasicBlock} * instances). * * @return {@code >= 0;} the register count */ public int getRegCount() { if (regCount == -1) { RegCountVisitor visitor = new RegCountVisitor(); forEachInsn(visitor); regCount = visitor.getRegCount(); } return regCount; }
/** * Returns how many registers this method requires. This is simply * the maximum of register-number-plus-category referred to by this * instance's instructions (indirectly through {@link BasicBlock} * instances). * * @return {@code >= 0;} the register count */ public int getRegCount() { if (regCount == -1) { RegCountVisitor visitor = new RegCountVisitor(); forEachInsn(visitor); regCount = visitor.getRegCount(); } return regCount; }
/** * Returns how many registers this method requires. This is simply * the maximum of register-number-plus-category referred to by this * instance's instructions (indirectly through {@link BasicBlock} * instances). * * @return {@code >= 0;} the register count */ public int getRegCount() { if (regCount == -1) { RegCountVisitor visitor = new RegCountVisitor(); forEachInsn(visitor); regCount = visitor.getRegCount(); } return regCount; }
/** * Returns how many registers this method requires. This is simply * the maximum of register-number-plus-category referred to by this * instance's instructions (indirectly through {@link BasicBlock} * instances). * * @return {@code >= 0;} the register count */ public int getRegCount() { if (regCount == -1) { RegCountVisitor visitor = new RegCountVisitor(); forEachInsn(visitor); regCount = visitor.getRegCount(); } return regCount; }
/** * Helper for all the {@code visit*} methods. * * @param insn {@code non-null;} instruction being visited */ private void visit(Insn insn) { RegisterSpec result = insn.getResult(); if (result != null) { processReg(result); } RegisterSpecList sources = insn.getSources(); int sz = sources.size(); for (int i = 0; i < sz; i++) { processReg(sources.get(i)); } }
/** {@inheritDoc} */ public void visitSwitchInsn(SwitchInsn insn) { visit(insn); }
/** {@inheritDoc} */ public void visitPlainInsn(PlainInsn insn) { visit(insn); }
/** {@inheritDoc} */ public void visitPlainInsn(PlainInsn insn) { visit(insn); }