Contents Prev Next Up


- An Optimization


Pushing Constants onto the Stack (_quick variants)

ldc1_quick
ldc2_quick
ldc2w_quick

ldc1_quick

Push item from constant pool onto 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

... => ..., 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

... =>=> ..., 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

Generated with CERN WebMaker