[llvm-commits] CVS: llvm-java/docs/object-layout.txt
Alkis Evlogimenos
alkis at cs.uiuc.edu
Sat Feb 5 10:45:32 PST 2005
Changes in directory llvm-java/docs:
object-layout.txt updated: 1.8 -> 1.9
---
Log message:
Update docs on object layout.
---
Diffs of the changes: (+6 -4)
object-layout.txt | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
Index: llvm-java/docs/object-layout.txt
diff -u llvm-java/docs/object-layout.txt:1.8 llvm-java/docs/object-layout.txt:1.9
--- llvm-java/docs/object-layout.txt:1.8 Thu Oct 28 03:54:49 2004
+++ llvm-java/docs/object-layout.txt Sat Feb 5 12:45:21 2005
@@ -45,16 +45,18 @@
is for an interface and the lastIface field is the unique number of
this interface in the objects interfaces array. The field lastIface is
the max index of all implemented interfaces. For a class that doesn't
-implement any it is -1.
+implement any it is -1. An additional field describes the elementSize
+of an array. This allows us to implement System.arraycopy().
struct llvm_java_object_typeinfo {
- unsigned depth;
+ jint depth;
struct llvm_java_object_vtable** vtables;
- int lastIface;
+ jint lastIface;
union {
struct llvm_java_object_vtable** interfaces;
- int interfaceFlag;
+ jint interfaceFlag;
};
+ jint elementSize;
};
The structure of llvm_java_object_typeinfo allows constant time
More information about the llvm-commits
mailing list