ldc2_w :
push two-word constant onto stack : index : visitLdcInsn()
- Description
- ldc2_w pushes a two-word constant value onto the operand stack.
ldc2_w takes a single parameter, <value>, which is
the two-word item to push. The following Java types can be pushed using
ldc2_w:
long
double - Example
ldc2_w 10 ; push the long integer 10
ldc2_w 1.54 ; push the double precision float 1.54
- See also
- bipush sipush ldc ldc_w aconst_null iconst_m1 iconst_n lconst_l fconst_f dconst_d
- Stack
Before
|
After |
... |
<value>-word1 |
|
<value>-word2 |
|
... |
- Bytecode
Type
|
Description |
u1
|
ldc2_w
opcode = 0x14 (20)
|
u2
|
index |