use of org.freud.analysed.classbytecode.method.instruction.IntOperandInstruction in project freud by LMAX-Exchange.
the class AsmMethod method visitIntInsn.
public void visitIntInsn(final int opcodeUsed, final int operand) {
final Opcode opcode = OPCODES_ARRAY[opcodeUsed];
final Instruction instruction;
if (opcode == Opcode.NEWARRAY) {
instruction = new ReferenceOperandInstruction(instructionList.size(), opcode, currentLineNumber, NEWARRAY_TYPES[operand]);
} else {
instruction = new IntOperandInstruction(instructionList.size(), opcode, currentLineNumber, operand);
}
updateCurrentState(instruction);
}
use of org.freud.analysed.classbytecode.method.instruction.IntOperandInstruction in project freud by LMAX-Exchange.
the class AsmMethod method visitIincInsn.
public void visitIincInsn(final int var, final int increment) {
final Instruction instruction = new IntOperandInstruction(instructionList.size(), Opcode.IINC, currentLineNumber, increment);
updateCurrentState(instruction);
}
Aggregations