private void sawOpcodeAfterEquals(int seen) { if (seen == Const.IFEQ) { if (getBranchOffset() > 0) { state = State.SAW_IFEQ; int target = getBranchTarget(); ifBlocks.add(new IfBlock(getPC(), target)); } else { state = State.SAW_NOTHING; } } else { state = State.SAW_NOTHING; } }
private void sawOpcodeAfterEquals(int seen) { if (seen == IFEQ) { if (getBranchOffset() > 0) { state = State.SAW_IFEQ; int target = getBranchTarget(); ifBlocks.add(new IfBlock(getPC(), target)); } else { state = State.SAW_NOTHING; } } else { state = State.SAW_NOTHING; } }
private void sawOpcodeAfterNothing(int seen) { if ((seen == INVOKEVIRTUAL) && "equals".equals(getNameConstantOperand()) && SignatureBuilder.SIG_OBJECT_TO_BOOLEAN.equals(getSigConstantOperand())) { state = State.SAW_EQUALS; } else if (seen == IF_ICMPNE) { if (getBranchOffset() > 0) { state = State.SAW_IFEQ; int target = getBranchTarget(); ifBlocks.add(new IfBlock(getPC(), target)); } else { state = State.SAW_NOTHING; } } }
private void sawOpcodeAfterNothing(int seen) { if ((seen == Const.INVOKEVIRTUAL) && "equals".equals(getNameConstantOperand()) && SignatureBuilder.SIG_OBJECT_TO_BOOLEAN.equals(getSigConstantOperand())) { state = State.SAW_EQUALS; } else if (seen == Const.IF_ICMPNE) { if (getBranchOffset() > 0) { state = State.SAW_IFEQ; int target = getBranchTarget(); ifBlocks.add(new IfBlock(getPC(), target)); } else { state = State.SAW_NOTHING; } } }
private void processLoop(int seen) { if (isBranch(seen) && (getBranchOffset() < 0)) { loopLocations.set(getPC()); List<IfBlock> blocksInLoop = new ArrayList<>(4);
private void processLoop(int seen) { if (isBranch(seen) && (getBranchOffset() < 0)) { loopLocations.set(getPC()); List<IfBlock> blocksInLoop = new ArrayList<>(4);