/** * Helper method used by all the visitor methods that deal with * opcodes that possibly throw. This method should be called after calling * {@link #visitCommon}. * * @param offset offset to the instruction * @param length length of the instruction, in bytes * @param nextIsLive {@code true} iff the instruction after * the indicated one is possibly-live (because this one isn't an * unconditional throw) */ private void visitThrowing(int offset, int length, boolean nextIsLive) { int next = offset + length; if (nextIsLive) { addWorkIfNecessary(next, true); } ByteCatchList catches = method.getCatches().listFor(offset); catchLists[offset] = catches; targetLists[offset] = catches.toTargetList(nextIsLive ? next : -1); }
/** * Helper method used by all the visitor methods that deal with * opcodes that possibly throw. This method should be called after calling * {@link #visitCommon}. * * @param offset offset to the instruction * @param length length of the instruction, in bytes * @param nextIsLive {@code true} iff the instruction after * the indicated one is possibly-live (because this one isn't an * unconditional throw) */ private void visitThrowing(int offset, int length, boolean nextIsLive) { int next = offset + length; if (nextIsLive) { addWorkIfNecessary(next, true); } ByteCatchList catches = method.getCatches().listFor(offset); catchLists[offset] = catches; targetLists[offset] = catches.toTargetList(nextIsLive ? next : -1); }
/** * Helper method used by all the visitor methods that deal with * opcodes that possibly throw. This method should be called after calling * {@link #visitCommon}. * * @param offset offset to the instruction * @param length length of the instruction, in bytes * @param nextIsLive {@code true} iff the instruction after * the indicated one is possibly-live (because this one isn't an * unconditional throw) */ private void visitThrowing(int offset, int length, boolean nextIsLive) { int next = offset + length; if (nextIsLive) { addWorkIfNecessary(next, true); } ByteCatchList catches = method.getCatches().listFor(offset); catchLists[offset] = catches; targetLists[offset] = catches.toTargetList(nextIsLive ? next : -1); }
/** * Helper method used by all the visitor methods that deal with * opcodes that possibly throw. This method should be called after calling * {@link #visitCommon}. * * @param offset offset to the instruction * @param length length of the instruction, in bytes * @param nextIsLive {@code true} iff the instruction after * the indicated one is possibly-live (because this one isn't an * unconditional throw) */ private void visitThrowing(int offset, int length, boolean nextIsLive) { int next = offset + length; if (nextIsLive) { addWorkIfNecessary(next, true); } ByteCatchList catches = method.getCatches().listFor(offset); catchLists[offset] = catches; targetLists[offset] = catches.toTargetList(nextIsLive ? next : -1); }
/** * Helper method used by all the visitor methods that deal with * opcodes that possibly throw. This method should be called after calling * {@link #visitCommon}. * * @param offset offset to the instruction * @param length length of the instruction, in bytes * @param nextIsLive {@code true} iff the instruction after * the indicated one is possibly-live (because this one isn't an * unconditional throw) */ private void visitThrowing(int offset, int length, boolean nextIsLive) { int next = offset + length; if (nextIsLive) { addWorkIfNecessary(next, true); } ByteCatchList catches = method.getCatches().listFor(offset); catchLists[offset] = catches; targetLists[offset] = catches.toTargetList(nextIsLive ? next : -1); }
/** * Helper method used by all the visitor methods that deal with * opcodes that possibly throw. This method should be called after calling * {@link #visitCommon}. * * @param offset offset to the instruction * @param length length of the instruction, in bytes * @param nextIsLive {@code true} iff the instruction after * the indicated one is possibly-live (because this one isn't an * unconditional throw) */ private void visitThrowing(int offset, int length, boolean nextIsLive) { int next = offset + length; if (nextIsLive) { addWorkIfNecessary(next, true); } ByteCatchList catches = method.getCatches().listFor(offset); catchLists[offset] = catches; targetLists[offset] = catches.toTargetList(nextIsLive ? next : -1); }