dup_x1 :
duplicate top stack word and insert beneath second
word : index : visitInsn()
- Description
- Duplicates the top item on the stack and inserts the duplicate below the
second-from-top item. Both items must be single-word items.
- Notes
- This instruction cannot be used if either of item1 or item2 are two-word
items. To duplicate a two-word item (a long or a double) you must use
dup2, dup2_x1 or dup2_x2.
- See also
- dup dup2 dup2_x1 dup2_x2
- Stack
Before
|
After |
word1 |
word1 |
word2 |
word2 |
... |
word1 |
|
... |
- Bytecode
Type
|
Description |
u1
|
dup_x1
= 0x5A (90)
|