private DecodedInstruction decodeRawInsn(ShortArrayCodeInput in) throws EOFException { int opcodeUnit = in.read(); int opcode = Opcodes.extractOpcodeFromUnit(opcodeUnit); OpcodeInfo.Info opcodeInfo; try { opcodeInfo = OpcodeInfo.get(opcode); } catch (IllegalArgumentException e) { LOG.warn("Ignore decode error: '{}', replace with NOP instruction", e.getMessage()); opcodeInfo = OpcodeInfo.NOP; } return opcodeInfo.getFormat().decode(opcodeUnit, in); }
/** * Constructs an instance. */ public DecodedInstruction(InstructionCodec format, int opcode, int index, IndexType indexType, int target, long literal) { if (format == null) { throw new NullPointerException("format == null"); } if (!Opcodes.isValidShape(opcode)) { throw new IllegalArgumentException("invalid opcode"); } this.format = format; this.opcode = opcode; this.index = index; this.indexType = indexType; this.target = target; this.literal = literal; }
if (suppressExtendedOpcodes && Opcodes.isExtended(nextOpcode)) {
/** * Constructs an instance. */ public DecodedInstruction(InstructionCodec format, int opcode, int index, IndexType indexType, int target, long literal) { if (format == null) { throw new NullPointerException("format == null"); } if (!Opcodes.isValidShape(opcode)) { throw new IllegalArgumentException("invalid opcode"); } this.format = format; this.opcode = opcode; this.index = index; this.indexType = indexType; this.target = target; this.literal = literal; }
if (suppressExtendedOpcodes && Opcodes.isExtended(nextOpcode)) {
/** * Constructs an instance. */ public DecodedInstruction(InstructionCodec format, int opcode, int index, IndexType indexType, int target, long literal) { if (format == null) { throw new NullPointerException("format == null"); } if (!Opcodes.isValidShape(opcode)) { throw new IllegalArgumentException("invalid opcode"); } this.format = format; this.opcode = opcode; this.index = index; this.indexType = indexType; this.target = target; this.literal = literal; }
/** * Decodes an instruction from the given input source. */ public static DecodedInstruction decode(CodeInput in) throws EOFException { int opcodeUnit = in.read(); int opcode = Opcodes.extractOpcodeFromUnit(opcodeUnit); InstructionCodec format = OpcodeInfo.getFormat(opcode); return format.decode(opcodeUnit, in); }
if (suppressExtendedOpcodes && Opcodes.isExtended(nextOpcode)) {
/** * Constructs an instance. */ public DecodedInstruction(InstructionCodec format, int opcode, int index, IndexType indexType, int target, long literal) { if (format == null) { throw new NullPointerException("format == null"); } if (!Opcodes.isValidShape(opcode)) { throw new IllegalArgumentException("invalid opcode"); } this.format = format; this.opcode = opcode; this.index = index; this.indexType = indexType; this.target = target; this.literal = literal; }
/** * Decodes an instruction from the given input source. */ public static DecodedInstruction decode(CodeInput in) throws EOFException { int opcodeUnit = in.read(); int opcode = Opcodes.extractOpcodeFromUnit(opcodeUnit); InstructionCodec format = OpcodeInfo.getFormat(opcode); return format.decode(opcodeUnit, in); }
/** * Constructs an instance. */ public DecodedInstruction(InstructionCodec format, int opcode, int index, IndexType indexType, int target, long literal) { if (format == null) { throw new NullPointerException("format == null"); } if (!Opcodes.isValidShape(opcode)) { throw new IllegalArgumentException("invalid opcode"); } this.format = format; this.opcode = opcode; this.index = index; this.indexType = indexType; this.target = target; this.literal = literal; }
/** * Decodes an instruction from the given input source. */ public static DecodedInstruction decode(CodeInput in) throws EOFException { int opcodeUnit = in.read(); int opcode = Opcodes.extractOpcodeFromUnit(opcodeUnit); InstructionCodec format = OpcodeInfo.getFormat(opcode); return format.decode(opcodeUnit, in); }
/** * Constructs an instance. */ public DecodedInstruction(InstructionCodec format, int opcode, int index, IndexType indexType, int target, long literal) { if (format == null) { throw new NullPointerException("format == null"); } if (!Opcodes.isValidShape(opcode)) { throw new IllegalArgumentException("invalid opcode"); } this.format = format; this.opcode = opcode; this.index = index; this.indexType = indexType; this.target = target; this.literal = literal; }
/** * Decodes an instruction from the given input source. */ public static DecodedInstruction decode(CodeInput in) throws EOFException { int opcodeUnit = in.read(); int opcode = Opcodes.extractOpcodeFromUnit(opcodeUnit); InstructionCodec format = OpcodeInfo.getFormat(opcode); return format.decode(opcodeUnit, in); }
/** * Constructs an instance. */ public DecodedInstruction(InstructionCodec format, int opcode, int index, IndexType indexType, int target, long literal) { if (format == null) { throw new NullPointerException("format == null"); } if (!Opcodes.isValidShape(opcode)) { throw new IllegalArgumentException("invalid opcode"); } this.format = format; this.opcode = opcode; this.index = index; this.indexType = indexType; this.target = target; this.literal = literal; }
/** * Decodes an instruction from the given input source. */ public static DecodedInstruction decode(CodeInput in) throws EOFException { int opcodeUnit = in.read(); int opcode = Opcodes.extractOpcodeFromUnit(opcodeUnit); InstructionCodec format = OpcodeInfo.getFormat(opcode); return format.decode(opcodeUnit, in); }
if (!Opcodes.isValidShape(opcode)) { throw new IllegalArgumentException("bogus opcode"); if (!Opcodes.isValidShape(family)) { throw new IllegalArgumentException("bogus family"); if (!Opcodes.isValidShape(nextOpcode)) { throw new IllegalArgumentException("bogus nextOpcode");
/** * Decodes an instruction from the given input source. */ public static DecodedInstruction decode(CodeInput in) throws EOFException { int opcodeUnit = in.read(); int opcode = Opcodes.extractOpcodeFromUnit(opcodeUnit); InstructionCodec format = OpcodeInfo.getFormat(opcode); return format.decode(opcodeUnit, in); }
if (!Opcodes.isValidShape(opcode)) { throw new IllegalArgumentException("bogus opcode"); if (!Opcodes.isValidShape(family)) { throw new IllegalArgumentException("bogus family"); if (!Opcodes.isValidShape(nextOpcode)) { throw new IllegalArgumentException("bogus nextOpcode");
/** * Decodes an instruction from the given input source. */ public static DecodedInstruction decode(CodeInput in) throws EOFException { int opcodeUnit = in.read(); int opcode = Opcodes.extractOpcodeFromUnit(opcodeUnit); InstructionCodec format = OpcodeInfo.getFormat(opcode); return format.decode(opcodeUnit, in); }