Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Documentation, internals: Core VM

Signed-off-by: Pekka Enberg <penberg@kernel.org>
  • Loading branch information...
commit 739b9abf517356a729a5ff30adce5ea5d57ae4e2 1 parent 8736a33
@penberg authored
Showing with 18 additions and 12 deletions.
  1. +18 −12 Documentation/internals.txt
View
30 Documentation/internals.txt
@@ -16,37 +16,43 @@ Java Virtual Machine <<Lindholm99>> <<Sun05>> <<JCP11>>, Java Native Interface
The Virtual Machine
-------------------
+The virtual machine core manages classes and objects at runtime. It implements
+JVM semantics but at code level is mostly decoupled from classfiles, bytecode
+execution, and the Java runtime.
+
Classes
~~~~~~~
-TODO
+Classes are internally represented by +struct vm_class+ and externally by
++java/lang/VMClass+.
+
+Objects
+~~~~~~~
+
+Objects are internally represented by +struct vm_object+ and externally by
++java/lang/VMObject+.
Methods
~~~~~~~
-TODO
+Methods are internally represented by +struct vm_method+ and externally by
++java/lang/reflect/VMMethod+.
Fields
~~~~~~
-TODO
-
-Objects
-~~~~~~~
-
-TODO
+Fields are internally represented by +struct vm_field+ and externally by
++java/lang/reflect/VMField+.
Exceptions
~~~~~~~~~~
-TODO
+Exceptions are not handle by the core VM itself. Instead, they are dealt with
+by the JIT runtime support code.
The Just-in-Time Compiler
-------------------------
-Introduction
-~~~~~~~~~~~~
-
The compiler is divided into the following passes: control-flow graph
construction, bytecode parsing, instruction selection, and code emission. The
compiler analyzes the given bytecode sequence to find basic blocks for
Please sign in to comment.
Something went wrong with that request. Please try again.