List of Java bytecode instructions: Difference between revisions

Content deleted Content added
Undid revision 899556181 by YD407OTZ (talk) - Not supported by the references, and nonsensical: if it's computed a runtime, it's not a "constant". Constants come from a class's constant pool entries.
YD407OTZ (talk | contribs)
Undid revision 900613212 by Bigpeteb (talk) Also updated references to move on from horribly outdated specifications
Line 1,153:
|1: index
|→ value
|push a constant ''#index'' from a constant pool (String, int, float, Class, java.lang.invoke.MethodType, or java.lang.invoke.MethodHandle, or a dynamically-computed constant) onto the stack
|-
|ldc_w
Line 1,160:
|2: indexbyte1, indexbyte2
|→ value
|push a constant ''#index'' from a constant pool (String, int, float, Class, java.lang.invoke.MethodType, or java.lang.invoke.MethodHandle, or a dynamically-computed constant) onto the stack (wide ''index'' is constructed as {{mono|indexbyte1 << 8 + indexbyte2}})
|-
|ldc2_w
Line 1,167:
|2: indexbyte1, indexbyte2
|→ value
|push a constant ''#index'' from a constant pool (double, long, or longa dynamically-computed constant) onto the stack (wide ''index'' is constructed as {{mono|indexbyte1 << 8 + indexbyte2}})
|-
|ldiv
Line 1,465:
 
== External links ==
*[http://docs.oracle.com/javase/specs/jvms/se7se12/html/index.html Oracle's Java Virtual Machine Specification – Java SE 712 Edition]
*[httphttps://docs.oracle.com/javase/specs/jvms/se8se12/html/indexjvms-6.html Oracle'sThe Java Virtual Machine Specification – Java SE 8Instruction EditionSet]
*[http://homepages.inf.ed.ac.uk/kwxm/JVM/codeByFn.html List of Opcodes grouped by Function]
 
{{Java (Sun)}}