Commit bb57c431 authored by Lubomir Bulej's avatar Lubomir Bulej

Add comment to AsmHelper.offsetBefore

parent b27f35d1
......@@ -40,13 +40,16 @@ import org.objectweb.asm.tree.VarInsnNode;
public abstract class AsmHelper {
static boolean offsetBefore(final InsnList ilst, final int from, final int to) {
if (from >= to) {
return false;
}
for (int i = from; i < to; i++) {
if (ilst.get(i).getOpcode() != -1) {
/**
* Returns {@code true} if the given list of instructions contains any real
* (non-pseudo) instruction node in the range between {@code start}
* (inclusive) and {@code end} exclusive.
*/
static boolean offsetBefore (
final InsnList insns, final int start, final int end
) {
for (int i = start; i < end; i++) {
if (!Insn.isVirtual (insns.get (i))) {
return true;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment