prev next contents
laload

retrieve long integer from array

Jasmin Syntax


    laload

Stack

Before

After
index
value-word1
arrayrefref
value-word2
...
...
Description

Retrieves a long integer from a long integer array and places it on the stack. arrayref is a reference to an array of long integers. index is an int. The arrayref and index are removed from the stack, and the long integer entry at the given index in the array is pushed onto the stack.

Example


; This is like the Java code:
;     long x = arr[0];
; where x is local variable 2 and arr is an array of longs in local variable 1
aload_1       ; load local variable 1 onto the stack
iconst_0      ; push the integer 0 onto the stack
laload        ; retrieve the entry
lstore_2      ; store the entry in local variables 2 and 3
Exceptions

NullPointerException - arrayref is null

ArrayIndexOutOfBoundsException - index is < 0 or >= arrayref.length

Bytecode

Type

Description
u1
laload opcode = 0x2F (47)
See Also

iaload, faload, daload, aaload, baload, caload, saload, iastore, lastore, fastore, dastore, aastore, bastore, castore, sastore

Notes

Array indices start at 0 (the first entry in the array is at index 0).


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