[llvm-commits] CVS: llvm-java/runtime/runtime.c
Alkis Evlogimenos
alkis at cs.uiuc.edu
Wed Sep 15 11:06:57 PDT 2004
Changes in directory llvm-java/runtime:
runtime.c updated: 1.1 -> 1.2
---
Log message:
Add typeinfo for interfaces. Implement the invokeinterface bytecode.
---
Diffs of the changes: (+6 -1)
Index: llvm-java/runtime/runtime.c
diff -u llvm-java/runtime/runtime.c:1.1 llvm-java/runtime/runtime.c:1.2
--- llvm-java/runtime/runtime.c:1.1 Mon Sep 13 14:54:11 2004
+++ llvm-java/runtime/runtime.c Wed Sep 15 13:06:47 2004
@@ -17,8 +17,8 @@
struct llvm_java_object_vtable** vtables;
unsigned lastIface;
union {
- struct llvm_java_object_vtable** interfaces;
unsigned interfaceFlag;
+ struct llvm_java_object_vtable** interfaces;
};
};
@@ -26,6 +26,11 @@
struct llvm_java_object_typeinfo typeinfo;
};
+struct llvm_java_object_vtable*
+llvm_java_GetObjectClass(struct llvm_java_object_base* obj) {
+ return obj->vtable;
+}
+
int llvm_java_IsInstanceOf(struct llvm_java_object_base* obj,
struct llvm_java_object_vtable* clazz) {
struct llvm_java_object_vtable* objClazz = obj->vtable;
More information about the llvm-commits
mailing list