Push long
or double
from constant pool
Type | Description |
u1 | ldc2_w opcode = 0x14 (20) |
u2 | index |
Stack ... => ..., item.word1, item.word2
Description
ldc2_w pushes a two-word constant onto the operand stack. The following Java types can be pushed using ldc2_w: long, double.
Pushing a String causes a reference to a java.lang.String object to be constructed and pushed onto the operand stack. Pusing an int or a float causes a primitive value to be pushed onto the stack.
Notes
Only a wide-index version of the ldc2_w instruction exists;
there is no ldc2 instruction that pushes a long
or double
with a single-byte index.