BasicBlock toBasicBlock() { InsnList result = new InsnList(instructions.size()); for (int i = 0; i < instructions.size(); i++) { result.set(i, instructions.get(i)); } result.setImmutable(); int primarySuccessorIndex = -1; IntList successors = new IntList(); for (Label catchLabel : catchLabels) { successors.add(catchLabel.id); } if (primarySuccessor != null) { primarySuccessorIndex = primarySuccessor.id; successors.add(primarySuccessorIndex); } if (alternateSuccessor != null) { successors.add(alternateSuccessor.id); } successors.setImmutable(); return new BasicBlock(id, result, successors, primarySuccessorIndex); } }
@Override public void visitBlock(BasicBlock b) { if (isSubroutineCaller(b)) { reachableSubroutineCallerLabels.add(b.getLabel()); } } });
@Override public void visitBlock(BasicBlock b) { reachableLabels.add(b.getLabel()); } });
public void visitBlock(BasicBlock b) { if (isSubroutineCaller(b)) { reachableSubroutineCallerLabels.add(b.getLabel()); } } });
@Override public void visitBlock(BasicBlock b) { reachableLabels.add(b.getLabel()); } });
@Override public void visitBlock(BasicBlock b) { if (isSubroutineCaller(b)) { reachableSubroutineCallerLabels.add(b.getLabel()); } } });
/** * Constructs a new immutable instance with the given elements. * * @param value0 the first value in the list * @param value1 the second value in the list */ public static IntList makeImmutable(int value0, int value1) { IntList result = new IntList(2); result.add(value0); result.add(value1); result.setImmutable(); return result; }
/** * Constructs a new immutable instance with the given element. * * @param value the sole value in the list */ public static IntList makeImmutable(int value) { IntList result = new IntList(1); result.add(value); result.setImmutable(); return result; }
/** * Constructs a new immutable instance with the given element. * * @param value the sole value in the list */ public static IntList makeImmutable(int value) { IntList result = new IntList(1); result.add(value); result.setImmutable(); return result; }
/** * Constructs a new immutable instance with the given element. * * @param value the sole value in the list */ public static IntList makeImmutable(int value) { IntList result = new IntList(1); result.add(value); result.setImmutable(); return result; }
/** * Constructs a new immutable instance with the given element. * * @param value the sole value in the list */ public static IntList makeImmutable(int value) { IntList result = new IntList(1); result.add(value); result.setImmutable(); return result; }
/** * Constructs a new immutable instance with the given element. * * @param value the sole value in the list */ public static IntList makeImmutable(int value) { IntList result = new IntList(1); result.add(value); result.setImmutable(); return result; }
/** * @return successor list of rop labels */ public IntList getRopLabelSuccessorList() { IntList result = new IntList(successorList.size()); int sz = successorList.size(); for (int i = 0; i < sz; i++) { result.add(parent.blockIndexToRopLabel(successorList.get(i))); } return result; }
/** * @return successor list of rop labels */ public IntList getRopLabelSuccessorList() { IntList result = new IntList(successorList.size()); int sz = successorList.size(); for (int i = 0; i < sz; i++) { result.add(parent.blockIndexToRopLabel(successorList.get(i))); } return result; }
/** * @return successor list of rop labels */ public IntList getRopLabelSuccessorList() { IntList result = new IntList(successorList.size()); int sz = successorList.size(); for (int i = 0; i < sz; i++) { result.add(parent.blockIndexToRopLabel(successorList.get(i))); } return result; }
/** * @return successor list of rop labels */ public IntList getRopLabelSuccessorList() { IntList result = new IntList(successorList.size()); int sz = successorList.size(); for (int i = 0; i < sz; i++) { result.add(parent.blockIndexToRopLabel(successorList.get(i))); } return result; }
/** * @return successor list of rop labels */ public IntList getRopLabelSuccessorList() { IntList result = new IntList(successorList.size()); int sz = successorList.size(); for (int i = 0; i < sz; i++) { result.add(parent.blockIndexToRopLabel(successorList.get(i))); } return result; }