/** * Creates a stack manipulation for loading a {@code long} value onto the operand stack. * <p> </p> * This is achieved either by invoking a specific opcode, if any, or by creating a constant pool entry. * * @param value The {@code long} value to load onto the stack. * @return A stack manipulation for loading the given {@code long} value. */ public static StackManipulation forValue(long value) { if (value == 0L) { return ZERO; } else if (value == 1L) { return ONE; } else { return new ConstantPool(value); } }