Java has a dup2_x2
instruction which, according to the documentation, has the following behavior:
Duplicate the top one or two values on the operand stack and insert the duplicated values, in the original order, into the operand stack.
Does javac
produce bytecode with this instruction? What are its potential use cases?