3 Copyright (C) 1996-2005, 2006 R. Grafl, A. Krall, C. Kruegel,
4 C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
5 E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
6 J. Wenninger, Institut f. Computersprachen - TU Wien
8 This file is part of CACAO.
10 This program is free software; you can redistribute it and/or
11 modify it under the terms of the GNU General Public License as
12 published by the Free Software Foundation; either version 2, or (at
13 your option) any later version.
15 This program is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
25 Contact: cacao@cacaojvm.org
27 Authors: Carolyn Oates
29 $Id: sets.h 4357 2006-01-22 23:33:38Z twisti $
37 typedef struct methSet methSet;
38 typedef struct methSetNode methSetNode;
39 typedef struct fldSet fldSet;
40 typedef struct fldSetNode fldSetNode;
41 typedef struct classSet classSet;
42 typedef struct classSetNode classSetNode;
45 #include "vm/global.h"
46 #include "vm/method.h"
50 /*------------ Method /Class Used Markers -------------------------------*/
53 USED all methods and fields are available;
54 PARTUSED = specific methods (static, <init>, <clinit>, inherited def used, special) used,
56 NOTUSED = nothing used in class - not needed
60 USED = method definition is used
61 PARTUSED = method definition will be used if class instanciated
62 NOTUSED = method defintion never used
70 #define SYSCALL -1 /* XTA initialization ??? should it be used for RTA for main ??? */
72 #define MONO1 1 /* potential poly that is really mono */
75 /*------------------------------------------------------------*/
76 /*-- flds used by a method set fns */
77 /*------------------------------------------------------------*/
88 fldSetNode *nextfldRef;
91 classSetNode *lastptrPUT;
92 classSetNode *lastptrGET;
97 fldSetNode *inFldSet (fldSetNode *, fieldinfo *);
98 fldSetNode *addFldRef (fldSetNode *, fieldinfo *);
99 fldSet *add2FldSet (fldSet *, fieldinfo *, bool, bool);
100 fldSet *createFldSet (void);
101 int printFldSet (fldSetNode *);
102 int printFieldSet (fldSet *);
105 /*------------------------------------------------------------*/
106 /*-- methodinfo call set fns */
107 /*------------------------------------------------------------*/
118 methSetNode *nextmethRef;
119 classSetNode *lastptrIntoClassSet2;
125 int inMethSet (methSetNode *, methodinfo *);
126 methSetNode *addMethRef (methSetNode *, methodinfo *);
127 methSet *add2MethSet (methSet *, methodinfo *);
128 methSet *createMethSet (void);
129 int printMethSet (methSetNode *);
130 int printMethodSet (methSet *);
133 /*------------------------------------------------------------*/
134 /*-- classinfo XTA set fns */
135 /*------------------------------------------------------------*/
145 struct classSetNode {
146 classinfo *classType;
147 classSetNode *nextClass;
152 int inSet (classSetNode *, classinfo *);
153 classSetNode *addElement (classSetNode *, classinfo *);
154 classSet *add2ClassSet (classSet *, classinfo *);
155 classSet *createClassSet (void);
156 int inRange (classSetNode *, classinfo *);
157 classSetNode *addClassCone (classSetNode *, classinfo *);
158 classSetNode *intersectSubtypesWithSet(classinfo *, classSetNode *);
159 int sizeOfSet (classSetNode *s);
160 int setSize (classSetNode *);
161 int printSet (classSetNode *);
162 int printClassSet (classSet *);
163 /**classSetNode *copyClassSet (classSetNode *); **/
169 * These are local overrides for various environment variables in Emacs.
170 * Please do not remove this and leave it at the end of the file, where
171 * Emacs will automagically detect them.
172 * ---------------------------------------------------------------------
175 * indent-tabs-mode: t