35.

prev next contents
lload_<n>

retrieve long integer from local variables <n> and <n> + 1

Jasmin Syntax
     lload_0 or     lload_1 or     lload_2 or     lload_3 
Stack

Before

After
...
result-word1

result-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  
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)
See Also

fload, iload, dload


prev next contents
Java Virtual Machine, by Jon Meyer and Troy Downing, O'Reilly Associates


Java Virtual Machine
Java Virtual Machine (Java Series)
ISBN: 1565921941
EAN: 2147483647
Year: 1996
Pages: 171

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net