Java Reference
In-Depth Information
publicvoidaddLOOKUPSWITCHInstruction(StringdefaultLabel,
intnumPairs,
TreeMap<Integer,String>
matchLabelPairs)
where defaultLabel is the jump label for the default value, numPairs is the number of
pairs in the match table, and the matchLabelPairs is the key match table.
Mnemonic
Operation
Operand Stack
tableswitch Access jump table by in-
dex match and jump
;index )
The above instruction can be added to the code section of a method by sending the
CLEmitter instance the following message:
publicvoidaddTABLESWITCHInstruction(StringdefaultLabel,
intlow,
inthigh,
ArrayList<String>labels)
where defaultLabel is the jump label for the default value, low is smallest value of index,
high is the highest value of index, and labels is a list of jump labels for each index value
from low to high, end values included.
D.5.10
Load Store Instructions
Mnemonic
Operation
Operand Stack
iload_n ; n 2 [0 ::: 3]
Load int from local vari-
able at index n
) ;value
lload_n ; n 2 [0 ::: 3]
Load long from local vari-
able at index n
) ;value
fload_n ; n 2 [0 ::: 3]
Load float from
local
) ;value
variable at index n
dload_n ; n 2 [0 ::: 3]
Load double from local
variable at index n
) ;value
aload_n ; n 2 [0 ::: 3]
Load reference from local
variable at index n
) ;objectref
istore_n ; n 2 [0 ::: 3]
Store int into local vari-
able at index n
;value )
lstore_n ; n 2 [0 ::: 3]
Store long into local vari-
able at index n
;value )
fstore_n ; n 2 [0 ::: 3]
Store float into
local
;value )
variable at index n
dstore_n ; n 2 [0 ::: 3]
Store double into
local
;value )
variable at index n
astore_n ; n 2 [0 ::: 3]
Store reference into local
variable at index n
;objectref )
 
Search WWH ::




Custom Search