dup2 :
duplicate top two stack words : index : visitInsn()
- Description
- Duplicates the top two words on the stack and pushes the duplicates onto
the stack in the same order. You can use this to duplicate two single-word
items (e.g. two integers, or an integer and an object reference) or one
two-word item (i.e. a double or a long).
- See also
- dup dup_x1 dup2_x1 dup2_x2
- Stack
Before
|
After |
word1 |
word1 |
word2 |
word2 |
... |
word1 |
|
word2 |
|
... |
- Bytecode
Type
|
Description |
u1
|
dup2
opcode = 0x5C (92)
|