public static void writeEndOffsetReference(final ITextOutput writer, final Instruction instruction) { VerifyArgument.notNull(writer, "writer"); writer.writeLabel(offsetToString(instruction.getEndOffset())); }
public static void writeEndOffsetReference(final ITextOutput writer, final Instruction instruction) { VerifyArgument.notNull(writer, "writer"); writer.writeLabel(offsetToString(instruction.getEndOffset())); }
public static void writeEndOffsetReference(final ITextOutput writer, final Instruction instruction) { VerifyArgument.notNull(writer, "writer"); writer.writeLabel(offsetToString(instruction.getEndOffset())); }
private static Map<Instruction, ControlFlowNode> createNodeMap(final ControlFlowGraph cfg) { final Map<Instruction, ControlFlowNode> nodeMap = new IdentityHashMap<>(); for (final ControlFlowNode node : cfg.getNodes()) { if (node.getNodeType() != ControlFlowNodeType.Normal) { continue; } for (Instruction p = node.getStart(); p != null && p.getOffset() < node.getEnd().getEndOffset(); p = p.getNext()) { nodeMap.put(p, node); } } return nodeMap; }
private ExceptionHandler findInnermostExceptionHandler(final int offsetInTryBlock) { ExceptionHandler result = null; for (final ExceptionHandler handler : _handlerPlaceholders) { final InstructionBlock tryBlock = handler.getTryBlock(); if (tryBlock.getFirstInstruction().getOffset() <= offsetInTryBlock && offsetInTryBlock < tryBlock.getLastInstruction().getEndOffset() && (result == null || isNarrower(handler, result))) { result = handler; } } return result; }
private ExceptionHandler findInnermostExceptionHandler(final int offsetInTryBlock) { ExceptionHandler result = null; for (final ExceptionHandler handler : _exceptionHandlers) { final InstructionBlock tryBlock = handler.getTryBlock(); if (tryBlock.getFirstInstruction().getOffset() <= offsetInTryBlock && offsetInTryBlock < tryBlock.getLastInstruction().getEndOffset() && (result == null || isNarrower(handler, result))) { result = handler; } } return result; }
public final boolean contains(final Range range) { return range != null && range.getStart() >= getFirstInstruction().getOffset() && range.getEnd() <= getLastInstruction().getEndOffset(); }
public final boolean contains(final Range range) { return range != null && range.getStart() >= getFirstInstruction().getOffset() && range.getEnd() <= getLastInstruction().getEndOffset(); }
public final boolean contains(final Range range) { return range != null && range.getStart() >= getFirstInstruction().getOffset() && range.getEnd() <= getLastInstruction().getEndOffset(); }
private ExceptionHandler findInnermostExceptionHandler(final int offsetInTryBlock) { ExceptionHandler result = null; for (final ExceptionHandler handler : _handlerPlaceholders) { final InstructionBlock tryBlock = handler.getTryBlock(); if (tryBlock.getFirstInstruction().getOffset() <= offsetInTryBlock && offsetInTryBlock < tryBlock.getLastInstruction().getEndOffset() && (result == null || isNarrower(handler, result))) { result = handler; } } return result; }
private ExceptionHandler findInnermostExceptionHandler(final int offsetInTryBlock) { ExceptionHandler result = null; for (final ExceptionHandler handler : _handlerPlaceholders) { final InstructionBlock tryBlock = handler.getTryBlock(); if (tryBlock.getFirstInstruction().getOffset() <= offsetInTryBlock && offsetInTryBlock < tryBlock.getLastInstruction().getEndOffset() && (result == null || isNarrower(handler, result))) { result = handler; } } return result; }
private ExceptionHandler findInnermostExceptionHandler(final int offsetInTryBlock) { ExceptionHandler result = null; for (final ExceptionHandler handler : _exceptionHandlers) { final InstructionBlock tryBlock = handler.getTryBlock(); if (tryBlock.getFirstInstruction().getOffset() <= offsetInTryBlock && offsetInTryBlock < tryBlock.getLastInstruction().getEndOffset() && (result == null || isNarrower(handler, result))) { result = handler; } } return result; }
private ExceptionHandler findInnermostExceptionHandler(final int offsetInTryBlock) { ExceptionHandler result = null; for (final ExceptionHandler handler : _exceptionHandlers) { final InstructionBlock tryBlock = handler.getTryBlock(); if (tryBlock.getFirstInstruction().getOffset() <= offsetInTryBlock && offsetInTryBlock < tryBlock.getLastInstruction().getEndOffset() && (result == null || isNarrower(handler, result))) { result = handler; } } return result; }
private ControlFlowNode findNode(final Instruction instruction) { final int offset = instruction.getOffset(); for (final ControlFlowNode node : _nodes) { if (node.getNodeType() != ControlFlowNodeType.Normal) { continue; } if (offset >= node.getStart().getOffset() && offset < node.getEnd().getEndOffset()) { return node; } } return null; }
private ControlFlowNode findNode(final Instruction instruction) { final int offset = instruction.getOffset(); for (final ControlFlowNode node : _nodes) { if (node.getNodeType() != ControlFlowNodeType.Normal) { continue; } if (offset >= node.getStart().getOffset() && offset < node.getEnd().getEndOffset()) { return node; } } return null; }
@Override public boolean test(final ControlFlowNode node) { return node.getNodeType() == ControlFlowNodeType.Normal && instruction.getOffset() >= node.getStart().getOffset() && instruction.getOffset() < node.getEnd().getEndOffset(); } }
@Override public boolean test(final ControlFlowNode node) { return node.getNodeType() == ControlFlowNodeType.Normal && instruction.getOffset() >= node.getStart().getOffset() && instruction.getOffset() < node.getEnd().getEndOffset(); } }
@Override public boolean test(final ControlFlowNode node) { return node.getNodeType() == ControlFlowNodeType.Normal && instruction.getOffset() >= node.getStart().getOffset() && instruction.getOffset() < node.getEnd().getEndOffset(); } }
private static ControlFlowNode findNode(final ControlFlowGraph cfg, final Instruction instruction) { final int offset = instruction.getOffset(); for (final ControlFlowNode node : cfg.getNodes()) { if (node.getNodeType() != ControlFlowNodeType.Normal) { continue; } if (offset >= node.getStart().getOffset() && offset < node.getEnd().getEndOffset()) { return node; } } return null; }
private static ControlFlowNode findNode(final ControlFlowGraph cfg, final Instruction instruction) { final int offset = instruction.getOffset(); for (final ControlFlowNode node : cfg.getNodes()) { if (node.getNodeType() != ControlFlowNodeType.Normal) { continue; } if (offset >= node.getStart().getOffset() && offset < node.getEnd().getEndOffset()) { return node; } } return null; }