Philipp Tomsich
Edwin Steiner
- $Id: global.h 699 2003-12-07 14:45:12Z edwin $
+ $Id: global.h 702 2003-12-07 17:20:56Z twisti $
*/
#endif
#endif
-/* standard includes **********************************************************/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
-
-#include "toolbox/memory.h"
-#include "toolbox/chain.h"
-#include "toolbox/list.h"
-#include "toolbox/loging.h"
-
-/* system dependent types *****************************************************/
-
-#include "types.h"
-
/* additional data types ******************************************************/
/* methodinfo static info ****************************************************/
typedef struct xtainfo {
- s4 XTAmethodUsed; /* XTA if used in callgraph - not used /used */
- classSet *XTAclassSet; /* method class type set */
+ s4 XTAmethodUsed; /* XTA if used in callgraph - not used /used */
+ classSet *XTAclassSet; /* method class type set */
/*classSet *PartClassSet */ /* method class type set */
- classSetNode *paramClassSet; /* cone set of methods parameters */
+ classSetNode *paramClassSet; /* cone set of methods parameters */
- methSet *calls; /* methods this method calls */
+ methSet *calls; /* methods this method calls */
methSet *calledBy; /* methods that call this method */
methSet *marked; /* methods that marked by this method */
/*methSet *markedBy*/
fldSet *fldsUsed; /* fields used by this method */
/*methSetNode *interfaceCalls*/ /* methods this method calls as interface */
- bool chgdSinceLastParse; /* Changed since last parse ? */
+ bool chgdSinceLastParse; /* Changed since last parse ? */
} xtainfo;
+
/* methodinfo *****************************************************************/
struct methodinfo { /* method structure */
};
-
/* innerclassinfo *************************************************************/
typedef struct innerclassinfo {
s4 flags; /* ACC flags */
} innerclassinfo;
+
/* classinfo ******************************************************************/
struct classinfo { /* class structure */
struct java_lang_reflect_Constructor* constructor;
- s4 initializing_thread; /* gnu classpath*/
- s4 erroneous_state; /* gnu classpath*/
- struct gnu_classpath_RawData* vmData; /* gnu classpath*/
+ s4 initializing_thread; /* gnu classpath */
+ s4 erroneous_state; /* gnu classpath */
+ struct gnu_classpath_RawData* vmData; /* gnu classpath */
s4 flags; /* ACC flags */
utf *name; /* class name */
bool initialized; /* true, if class already initialised */
bool loaded; /* true, if class already loaded */
bool linked; /* true, if class already linked */
- s4 index; /* hierarchy depth (classes) or index
+ s4 index; /* hierarchy depth (classes) or index
(interfaces) */
s4 instancesize; /* size of an instance of this class */
#ifdef SIZE_FROM_CLASSINFO
s4 alignedsize; /* size of an instance, aligned to the
- allocation size on the heap */
+ allocation size on the heap */
#endif
vftbl *vftbl; /* pointer to virtual function table */
classinfo *hashlink; /* link for external hash chain */
bool classvftbl; /* has its own copy of the Class vtbl */
- s4 classUsed; /* 0= not used 1 = used CO-RT */
+ s4 classUsed; /* 0= not used 1 = used CO-RT */
- classSetNode *impldBy; /* implemented by class set */
+ classSetNode *impldBy; /* implemented by class set */
};
/* check if class is an array class. Only use for linked classes! */
short elementtype; /* ARRAYTYPE_* constant (XXX optimize away?) */
};
+
/* references to some system classes ******************************************/
extern classinfo *class_java_lang_Object;
extern classinfo *pseudo_class_Null;
extern vftbl *pseudo_class_Arraystub_vftbl;
+
/* instances of some system classes *******************************************/
extern java_objectheader *proto_java_lang_ClassCastException;
//extern void RT_jit_parse(methodinfo *m);
+
/* statistic variables ********************************************************/
extern int count_class_infos;
extern int count_utf_new;
extern int count_utf_new_found;
+
/* table of primitive types ***************************************************/
/* This array can be indexed by the PRIMITIVETYPE_ and ARRAYTYPE_
if ((utf_ptr)[-1] != ';') \
(errorflag) = true; }}
+#endif /* _GLOBAL_H */
-#endif
/*
* These are local overrides for various environment variables in Emacs.
Philipp Tomsich
Edwin Steiner
- $Id: global.h 699 2003-12-07 14:45:12Z edwin $
+ $Id: global.h 702 2003-12-07 17:20:56Z twisti $
*/
#endif
#endif
-/* standard includes **********************************************************/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
-
-#include "toolbox/memory.h"
-#include "toolbox/chain.h"
-#include "toolbox/list.h"
-#include "toolbox/loging.h"
-
-/* system dependent types *****************************************************/
-
-#include "types.h"
-
/* additional data types ******************************************************/
/* methodinfo static info ****************************************************/
typedef struct xtainfo {
- s4 XTAmethodUsed; /* XTA if used in callgraph - not used /used */
- classSet *XTAclassSet; /* method class type set */
+ s4 XTAmethodUsed; /* XTA if used in callgraph - not used /used */
+ classSet *XTAclassSet; /* method class type set */
/*classSet *PartClassSet */ /* method class type set */
- classSetNode *paramClassSet; /* cone set of methods parameters */
+ classSetNode *paramClassSet; /* cone set of methods parameters */
- methSet *calls; /* methods this method calls */
+ methSet *calls; /* methods this method calls */
methSet *calledBy; /* methods that call this method */
methSet *marked; /* methods that marked by this method */
/*methSet *markedBy*/
fldSet *fldsUsed; /* fields used by this method */
/*methSetNode *interfaceCalls*/ /* methods this method calls as interface */
- bool chgdSinceLastParse; /* Changed since last parse ? */
+ bool chgdSinceLastParse; /* Changed since last parse ? */
} xtainfo;
+
/* methodinfo *****************************************************************/
struct methodinfo { /* method structure */
};
-
/* innerclassinfo *************************************************************/
typedef struct innerclassinfo {
s4 flags; /* ACC flags */
} innerclassinfo;
+
/* classinfo ******************************************************************/
struct classinfo { /* class structure */
struct java_lang_reflect_Constructor* constructor;
- s4 initializing_thread; /* gnu classpath*/
- s4 erroneous_state; /* gnu classpath*/
- struct gnu_classpath_RawData* vmData; /* gnu classpath*/
+ s4 initializing_thread; /* gnu classpath */
+ s4 erroneous_state; /* gnu classpath */
+ struct gnu_classpath_RawData* vmData; /* gnu classpath */
s4 flags; /* ACC flags */
utf *name; /* class name */
bool initialized; /* true, if class already initialised */
bool loaded; /* true, if class already loaded */
bool linked; /* true, if class already linked */
- s4 index; /* hierarchy depth (classes) or index
+ s4 index; /* hierarchy depth (classes) or index
(interfaces) */
s4 instancesize; /* size of an instance of this class */
#ifdef SIZE_FROM_CLASSINFO
s4 alignedsize; /* size of an instance, aligned to the
- allocation size on the heap */
+ allocation size on the heap */
#endif
vftbl *vftbl; /* pointer to virtual function table */
classinfo *hashlink; /* link for external hash chain */
bool classvftbl; /* has its own copy of the Class vtbl */
- s4 classUsed; /* 0= not used 1 = used CO-RT */
+ s4 classUsed; /* 0= not used 1 = used CO-RT */
- classSetNode *impldBy; /* implemented by class set */
+ classSetNode *impldBy; /* implemented by class set */
};
/* check if class is an array class. Only use for linked classes! */
short elementtype; /* ARRAYTYPE_* constant (XXX optimize away?) */
};
+
/* references to some system classes ******************************************/
extern classinfo *class_java_lang_Object;
extern classinfo *pseudo_class_Null;
extern vftbl *pseudo_class_Arraystub_vftbl;
+
/* instances of some system classes *******************************************/
extern java_objectheader *proto_java_lang_ClassCastException;
//extern void RT_jit_parse(methodinfo *m);
+
/* statistic variables ********************************************************/
extern int count_class_infos;
extern int count_utf_new;
extern int count_utf_new_found;
+
/* table of primitive types ***************************************************/
/* This array can be indexed by the PRIMITIVETYPE_ and ARRAYTYPE_
if ((utf_ptr)[-1] != ';') \
(errorflag) = true; }}
+#endif /* _GLOBAL_H */
-#endif
/*
* These are local overrides for various environment variables in Emacs.