Java Virtual Machine (Java Series)

prev next contents
pop2

discard top two words on stack

Jasmin Syntax

pop2 Stack

Before

After
item1 ...
item2
...
Description

Removes two single-word items from the stack (e.g. two integers, or an integer and an object reference) or one two-word item (i.e. a double or a long).

Example

invokemethod Myclass/foo()D ; call double Myclass.foo(); pop2 ; discard the double result

Bytecode

Type

Description
u1 pop2 opcode = 0x58 (88)
See Also

pop


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

Категории