[llvm-commits] CVS: llvm-java/docs/object-layout.txt
Alkis Evlogimenos
alkis at cs.uiuc.edu
Tue Oct 26 13:42:03 PDT 2004
Changes in directory llvm-java/docs:
object-layout.txt updated: 1.6 -> 1.7
---
Log message:
Make description about arrays of objecs a bit more clear and add a
missing struct element name.
---
Diffs of the changes: (+5 -3)
Index: llvm-java/docs/object-layout.txt
diff -u llvm-java/docs/object-layout.txt:1.6 llvm-java/docs/object-layout.txt:1.7
--- llvm-java/docs/object-layout.txt:1.6 Tue Oct 26 13:56:26 2004
+++ llvm-java/docs/object-layout.txt Tue Oct 26 15:41:53 2004
@@ -91,13 +91,15 @@
same way as if this was a proper class. This will allow isInstanceOf
to work transparently for primitive java arrays.
-For reference type arrays we use the same struct with a different
-typeinfo:
+For reference type arrays we use the same struct for all types. The
+only difference is the vtable (actually the vtables are identical but
+they have different typeinfo structs to reflect the hierarchy of the
+contained elements):
struct javaObjectArray {
struct java_lang_Object;
unsigned length;
- java_lang_Object[0];
+ java_lang_Object array[0];
};
The typeinfo struct will reflect a hierarchy of array types as if B[]
More information about the llvm-commits
mailing list