137.

prev next contents
dreturn

return from method with double result

Jasmin Syntax
     dreturn 

Stack

Before

After
return-value-word1
n/a
return-value-word2

...

Description

dreturn pops the two-word double off the stack and pushes it onto the operand stack of the invoker (i.e. the method which used invokevirtual, invokespecial, invokestatic or invokeinterface to call the currently executing method). All other items on the current method's operand stack are discarded. If the current method is marked as synchronized, then an implicit monitorexit instruction is executed. Then the current method's frame is discarded, the invoker's frame is reinstated, and control returns to the invoker. This instruction can only be used in methods whose return type is double.

Bytecode

Type

Description
u1
dreturn opcode = 0xAF (175)
See Also

areturn, lreturn, freturn, ireturn, return, invokevirtual, invokespecial, invokestatic, invokeinterface


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