Contents Prev Next Up


A.2 Pushing Constants onto the Stack (_quick variants)

ldc1_quick

Push item from constant pool onto stack
 
ldc1_quick
indexbyte1

Stack: ... => ..., item

indexbyte1 is used as an unsigned 8-bit index into the constant pool of the current class. The item at that index is pushed onto the stack.

ldc2_quick

Push item from constant pool onto stack
 
ldc2_quick
indexbyte1
indexbyte2

Stack: ... => ..., item

indexbyte1 and indexbyte2 are used to construct an index into the constant pool of the current class. The constant at that index is resolved and the item at that index is pushed onto the stack.

ldc2w_quick

Push long integer or double float from constant pool onto stack
 
ldc2w_quick
indexbyte1
indexbyte2

Stack: ... => ..., constant-word1, constant-word2

indexbyte1 and indexbyte2 are used to construct an index into the constant pool of the current class. The constant at that index is pushed onto the stack.


Contents Prev Next Up