ldc_quick

Push item from constant pool

Type Description
u1 ldc_quick opcode = 0xCB (203)
u1 index

Stack ... => ..., item

Description

ldc_quick pushes a one-word constant onto the operand stack. ldc_quick takes a single parameter, <value>, which is the value to push. The following Java types can be pushed using ldc_quick: int, float and String.

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

The opcode of this instruction was originally ldc. The operand of the ldc instruction is not modified.