List of Java bytecode instructions: Difference between revisions

Content deleted Content added
Moire9 (talk | contribs)
m format invokedynamic arguments to be the same as other invoke instructions
BattyBot (talk | contribs)
top: Fixed reference date error(s) (see CS1 errors: dates for details) and AWB general fixes
 
(12 intermediate revisions by 10 users not shown)
Line 1:
{{Short description|none}} <!-- This short description is INTENTIONALLY "none" - please see WP:SDNONE before you consider changing it! -->
{{Multiple issues|
{{Manual|date=June 2020}}
{{No footnotes|date=June 2020}}
}}
{{Main|Java bytecode}}
 
This is a list of the instructions that make up the [[Java bytecode]], an abstract machine language that is ultimately executed by the [[Java virtual machine]].<ref>{{cite web|url=https://docs.oracle.com/javase/specs/jvms/se24/html/index.html |title=The Java® Virtual Machine Specification – Java SE 24 Edition |access-date=July 26, 2025}}</ref> The Java bytecode is generated from languages running on the [[Java Platform]], most notably the [[Java (programming language)|Java programming language]].
 
''Note that any referenced "value" refers to a 32-bit int as per the Java instruction set.''
Line 12 ⟶ 9:
|-
! scope="col" | Mnemonic
! scope="col" | Opcode<br>''(in [[hexadecimal|hex]])''
!Opcode (in binary)
! scope="col" | Other bytes<br>[count]: [operand labels]
Line 1,462 ⟶ 1,459:
|}
{{Refbegin}}
{{note label|Deprecated|†||Deprecated in Java 7 (major class version 51).<ref>{{cite web|url=https://docs.oracle.com/javase/specs/jvms/se8se24/html/jvms-4.html#jvms-4.9.1 |title=Chapter 4. The class File Format 4.9.1. Static Constraints |access-date=July 26, 2025}}</ref> They will not appear in class files generated from a compiler newer than that. <code>ret</code> is not explicitly deprecated, but useless without the <code>jsr</code> and <code>jsr_w</code> opcodes.}}
{{Refend}}
 
Line 1,468 ⟶ 1,465:
*[[Jazelle]] DBX (Direct Bytecode eXecution), a feature that executes some Java bytecodes in hardware, on some ARM9 CPUs
*[[Common Intermediate Language]] (CIL), a similar bytecode specification that runs on the CLR of the .NET Framework
 
*[[C to Java Virtual Machine compilers]]
== References ==
{{reflist}}
 
== External links ==
*[httphttps://docs.oracle.com/javase/specs/jvms/se12se24/html/indexjvms-6.html Oracle'sThe Java Virtual Machine Specification – Java SE 12Instruction EditionSet]
*[https://docs.oracle.com/javase/specs/jvms/se12/html/jvms-6.html The Java Virtual Machine Instruction Set]
 
{{Java (Sun)}}