while (codeIn.hasMore()) { int currentAddress = codeIn.cursor(); int opcodeUnit = codeIn.read(); int opcodeForSwitch = Opcodes.extractOpcodeFromUnit(opcodeUnit); switch (opcodeForSwitch) { int opcode = InstructionCodec.byte0(opcodeUnit); int literal = InstructionCodec.byte1(opcodeUnit); // should be zero int target = (short) codeIn.read(); // sign-extend iv.visitZeroRegisterInsn(currentAddress, opcode, 0, InstructionCodec.INDEX_TYPE_NONE, currentAddress + target, literal); break; int opcode = InstructionCodec.byte0(opcodeUnit); int a = InstructionCodec.byte1(opcodeUnit); int index = codeIn.read(); int indexType = InstructionCodec.getInstructionIndexType(opcode); iv.visitOneRegisterInsn(currentAddress, opcode, index, indexType, 0, 0L, a); int opcode = InstructionCodec.byte0(opcodeUnit); int a = InstructionCodec.byte1(opcodeUnit); long literal = (short) codeIn.read(); // sign-extend int opcode = InstructionCodec.byte0(opcodeUnit); int a = InstructionCodec.byte1(opcodeUnit); int literal = (short) codeIn.read(); // sign-extend iv.visitOneRegisterInsn(currentAddress, opcode, 0, InstructionCodec.INDEX_TYPE_NONE, 0, literal, a); break; int opcode = InstructionCodec.byte0(opcodeUnit);
while (codeIn.hasMore()) { int currentAddress = codeIn.cursor(); int opcodeUnit = codeIn.read(); int opcodeForSwitch = Opcodes.extractOpcodeFromUnit(opcodeUnit); switch (opcodeForSwitch) { int opcode = InstructionCodec.byte0(opcodeUnit); int literal = InstructionCodec.byte1(opcodeUnit); // should be zero int target = (short) codeIn.read(); // sign-extend iv.visitZeroRegisterInsn(currentAddress, opcode, 0, InstructionCodec.INDEX_TYPE_NONE, currentAddress + target, literal); break; int opcode = InstructionCodec.byte0(opcodeUnit); int a = InstructionCodec.byte1(opcodeUnit); int index = codeIn.read(); int indexType = InstructionCodec.getInstructionIndexType(opcode); iv.visitOneRegisterInsn(currentAddress, opcode, index, indexType, 0, 0L, a); int opcode = InstructionCodec.byte0(opcodeUnit); int a = InstructionCodec.byte1(opcodeUnit); long literal = (short) codeIn.read(); // sign-extend int opcode = InstructionCodec.byte0(opcodeUnit); int a = InstructionCodec.byte1(opcodeUnit); int literal = (short) codeIn.read(); // sign-extend iv.visitOneRegisterInsn(currentAddress, opcode, 0, InstructionCodec.INDEX_TYPE_NONE, 0, literal, a); break; int opcode = InstructionCodec.byte0(opcodeUnit);