Load long
from local variable
Bytecode
Type | Description |
u1 | lload_0 opcode = 0x1E (30) |
u1 | lload_1 opcode = 0x1F (31) |
u1 | lload_2 opcode = 0x20 (32) |
u1 | lload_3 opcode = 0x21 (33) |
Stack ... => ..., value.word1, value.word2
Description
Retrieves the two-word long integer stored in local variables <n> and <n> + 1
and pushes it onto the operand stack. Both <n> and <n> + 1 must be valid local
variable numbers in the current frame, and together they must be holding a long.
See the description of lload for more information on how longs are retrieved from local variables.
'lload_<n>' is functionally equivalent to 'lload <n>', although it is typically more efficient and also takes fewer bytes in the bytecode.
Example
lload_0 ;push long integer in local variable 0 and 1 onto stack lload_1 ;push long integer in local variable 1 and 2 onto stack lload_2 ;push long integer in local variable 2 and 3 onto stack lload_3 ;push long integer in local variable 3 and 4 onto stack