[llvm-commits] CVS: llvm-java/runtime/runtime.c

Alkis Evlogimenos alkis at cs.uiuc.edu
Tue Sep 21 11:12:55 PDT 2004



Changes in directory llvm-java/runtime:

runtime.c updated: 1.3 -> 1.4
---
Log message:

Define VM internal types.


---
Diffs of the changes:  (+8 -2)

Index: llvm-java/runtime/runtime.c
diff -u llvm-java/runtime/runtime.c:1.3 llvm-java/runtime/runtime.c:1.4
--- llvm-java/runtime/runtime.c:1.3	Tue Sep 21 13:08:33 2004
+++ llvm-java/runtime/runtime.c	Tue Sep 21 13:12:44 2004
@@ -3,6 +3,12 @@
 struct llvm_java_object_vtable;
 struct llvm_java_object_typeinfo;
 
+/* Define VM internal types */
+typedef struct llvm_java_object_base* jobject;
+typedef unsigned jfieldID;
+typedef unsigned jmethodID;
+#define _JNI_VM_INTERNAL_TYPES_DEFINED
+
 struct llvm_java_object_header {
   /* gc info, hash info, locking */
 };
@@ -27,11 +33,11 @@
 };
 
 struct llvm_java_object_vtable*
-llvm_java_GetObjectClass(struct llvm_java_object_base* obj) {
+llvm_java_GetObjectClass(jobject obj) {
   return obj->vtable;
 }
 
-int llvm_java_IsInstanceOf(struct llvm_java_object_base* obj,
+int llvm_java_IsInstanceOf(jobject obj,
                            struct llvm_java_object_vtable* clazz) {
   struct llvm_java_object_vtable* objClazz = obj->vtable;
   if (objClazz == clazz)






More information about the llvm-commits mailing list