harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlyd...@apache.org
Subject svn commit: r330909 - /incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/class.h
Date Fri, 04 Nov 2005 21:26:13 GMT
Author: dlydick
Date: Fri Nov  4 13:26:04 2005
New Revision: 330909

URL: http://svn.apache.org/viewcvs?rev=330909&view=rev
Log:
Added class hierarchy utilities.

Restructured status bits.

Modified:
    incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/class.h

Modified: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/class.h
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/class.h?rev=330909&r1=330908&r2=330909&view=diff
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/class.h (original)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/class.h Fri
Nov  4 13:26:04 2005
@@ -124,17 +124,13 @@
                                       * being initialized. */
 /******************************************************************/
 
-/****** Next 2 bits same for class and object *********************/
+/****** Next 3 bits same for class and object *********************/
 #define CLASS_STATUS_GCREQ    0x0004 /**< Class may be garbage
                                           collected. */
 #define CLASS_STATUS_ARRAY    0x0008 /**< Class is an array type where
                                           @p @b arraydims contains
                                           number of dimensions */
-/******************************************************************/
-
-/****** Next 5 bits unique between class and object except: *******/
-
-#define CLASS_STATUS_REFERENCE 0x0080 /**< Class variable is a
+#define CLASS_STATUS_REFERENCE 0x0010 /**< Class static variable is a
                                        * reference.  This is the
                                        * @e same definition as for
                                        * @link #OBJECT_STATUS_REFERENCE
@@ -147,12 +143,15 @@
                                        * frame, where the GC algorithm
                                        * implements it.
                                        */
-
 /******************************************************************/
 
-/****** Next 4 bits unique between class and object ***************/
-#define CLASS_STATUS_PRIMATIVE 0x0200 /**< Primative for
-                                      @c @b java.lang.Class */
+/****** Next 9 bits unique between class and object ***************/
+#define CLASS_STATUS_0020     0x0020 /**< not used */
+#define CLASS_STATUS_0040     0x0040 /**< not used */
+#define CLASS_STATUS_PRIMATIVE 0x0080 /**< Primative for
+                                      *   @c @b java.lang.Class */
+#define CLASS_STATUS_0100     0x0100 /**< not used */
+#define CLASS_STATUS_0200     0x0200 /**< not used */
 #define CLASS_STATUS_LINKED   0x0400 /**< Class linkages completed */
 #define CLASS_STATUS_DOCLINIT 0x0800 /**< Class loaded,
                                       * needs @c @b \<clinit\> */
@@ -294,9 +293,21 @@
                                         jvm_object_hash  objhash,
                                               ClassFile *pcfs);
 
+
 /* Prototypes for functions in 'classutil.c' */
-extern jvm_class_index classutil_jobject2clsidx(jvm_object_hash
-                                                               objhash);
+
+extern rboolean classutil_subclass_of(jvm_class_index clsidx1,
+                                      jvm_class_index clsidx2);
+
+extern rboolean classutil_implements_interface(jvm_class_index clsidx1,
+                                               jvm_class_index clsidx2);
+
+extern rboolean classutil_superinterface_of(jvm_class_index clsidx1,
+                                            jvm_class_index clsidx2);
+
+extern rboolean
+      classutil_interface_implemented_by_arrays(jvm_class_index clsidx);
+
 #endif /* _class_h_included_ */
 
 



Mime
View raw message