final Instruction instruction;
if (constant instanceof Type) {
instruction = new ReferenceOperandInstruction(instructionList.size(), Opcode.LDC, currentLineNumber, constant.toString());
}
else {
instruction = new ConstInstruction(instructionList.size(), Opcode.LDC, currentLineNumber, constant);
}
updateCurrentState(instruction);
}