Contents Prev Next Up


3.3 Loading Local Variables Onto the Stack

iload

Load integer from local variable
 
iload = 21
vindex

Stack: ... => ..., value

The value of the local variable at vindex in the current Java frame is pushed onto the operand stack.

iload_<n>

Load integer from local variable
 
iload_<n>

Stack: ... => ..., value

Forms: iload_0 = 26, iload_1 = 27, iload_2 = 28, iload_3 = 29

The value of the local variable at <n> in the current Java frame is pushed onto the operand stack.

This instruction is the same as iload with a vindex of <n>, except that the operand <n> is implicit.

lload

Load long integer from local variable
 
lload = 22
vindex

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

The value of the local variables at vindex and vindex+1 in the current Java frame is pushed onto the operand stack.

lload_<n>

Load long integer from local variable
 
lload_<n>

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

Forms: lload_0 = 30, lload_1 = 31, lload_2 = 32, lload_3 = 33

The value of the local variables at <n> and <n>+1 in the current Java frame is pushed onto the operand stack.

This instruction is the same as lload with a vindex of <n>, except that the operand <n> is implicit.

fload

Load single float from local variable
 
fload = 23
vindex

Stack: ... => ..., value

The value of the local variable at vindex in the current Java frame is pushed onto the operand stack.

fload_<n>

Load single float from local variable
 
fload_<n>

Stack: ... => ..., value

Forms: fload_0 = 34, fload_1 = 35, fload_2 = 36, fload_3 = 37

The value of the local variable at <n>in the current Java frame is pushed onto the operand stack.

This instruction is the same as fload with a vindex of <n>, except that the operand <n> is implicit.

dload

Load double float from local variable
 
dload = 24
vindex

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

The value of the local variables at vindex and vindex+1 in the current Java frame is pushed onto the operand stack.

dload_<n>

Load double float from local variable
 
dload_<n>

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

Forms: dload_0 = 38, dload_1 = 39, dload_2 = 40, dload_3 = 41

The value of the local variables at <n> and <n>+1 in the current Java frame is pushed onto the operand stack.

This instruction is the same as dload with a vindex of <n>, except that the operand <n> is implicit.

aload

Load object reference from local variable
 
aload = 25
vindex

Stack: ... => ..., value

The value of the local variable at vindex in the current Java frame is pushed onto the operand stack.

aload_<n>

Load object reference from local variable
 
aload_<n>

Stack: ... => ..., value

Forms: aload_0 = 42, aload_1 = 43, aload_2 = 44, aload_3 = 45

The value of the local variable at <n>in the current Java frame is pushed onto the operand stack.

This instruction is the same as aload with a vindex of <n>, except that the operand <n> is implicit.


Contents Prev Next Up