Java Virtual Machine (Java Series)

prev next contents
dload_<n>

retrieve double from local variables <n> and <n> + 1

Jasmin Syntax

dload_0 or dload_1 or dload_2 or dload_3 Stack

Before

After
... result-word1
result-word2
...
Description

Retrieves the double-precision float 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 double.

See the description of dload for more information on how doubles are retrieved from local variables.

'dload_<n>' is functionally equivalent to 'dload <n>', although it is typically more efficient and also takes fewer bytes in the bytecode.

Example

dload_0 ; push double in local variables 0 and 1 onto stack dload_1 ; push double in local variables 1 and 2 onto stack dload_2 ; push double in local variables 2 and 3 onto stack dload_3 ; push double in local variables 3 and 4 onto stack Bytecode

Type

Description
u1 dload_0 opcode = 0x26 (38)
u1 dload_1 opcode = 0x27 (39)
u1 dload_2 opcode = 0x28 (40)
u1 dload_3 opcode = 0x29 (41)
See Also

dload, fload, aload, iload, lload


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

Категории