private int getInstructionIndex(final Instruction instruction) { final int index = Arrays.binarySearch(_offsets, instruction.getOffset()); assert index >= 0; return index; }
private int getInstructionIndex(final Instruction instruction) { final int index = Arrays.binarySearch(_offsets, instruction.getOffset()); assert index >= 0; return index; }
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; }
public static void writeInstruction(final ITextOutput writer, final Instruction instruction) { VerifyArgument.notNull(writer, "writer"); VerifyArgument.notNull(instruction, "instruction"); writer.writeDefinition(offsetToString(instruction.getOffset()), instruction); writer.write(": "); writer.writeReference(instruction.getOpCode().name(), instruction.getOpCode()); if (instruction.hasOperand()) { writer.write(' '); writeOperandList(writer, instruction); } }