1 /*
2 * Copyright (c) 1999, 2025, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
36 class ciCallProfile;
37 class ciSignature;
38
39 class ciBytecodeStream;
40 class ciSignatureStream;
41 class ciExceptionHandlerStream;
42
43 class ciTypeFlow;
44
45 class ciBaseObject;
46 class ciObject;
47 class ciNullObject;
48 class ciInstance;
49 class ciCallSite;
50 class ciMemberName;
51 class ciMethodHandle;
52 class ciMethodType;
53 class ciArray;
54 class ciObjArray;
55 class ciTypeArray;
56 class ciSymbol;
57 class ciMetadata;
58 class ciMethod;
59 class ciMethodData;
60 class ciReceiverTypeData; // part of ciMethodData
61 class ciType;
62 class ciReturnAddress;
63 class ciKlass;
64 class ciInstanceKlass;
65 class ciArrayKlass;
66 class ciObjArrayKlass;
67 class ciTypeArrayKlass;
68
69 // Simulate Java Language style package-private access with
70 // friend declarations.
71 // This is a great idea but gcc and other C++ compilers give an
72 // error for being friends with yourself, so this macro does not
73 // compile on some platforms.
74
75 // Everyone gives access to ciObjectFactory
76 #define CI_PACKAGE_ACCESS \
77 friend class ciObjectFactory; \
78
79 // These are the packages that have access to ciEnv
80 // Any more access must be given explicitly.
81 #define CI_PACKAGE_ACCESS_TO \
82 friend class ciObjectFactory; \
83 friend class VMStructs; \
84 friend class ciCallSite; \
85 friend class ciConstantPoolCache; \
86 friend class ciField; \
88 friend class ciFlags; \
89 friend class ciExceptionHandler; \
90 friend class ciCallProfile; \
91 friend class ciSignature; \
92 friend class ciBytecodeStream; \
93 friend class ciSignatureStream; \
94 friend class ciExceptionHandlerStream; \
95 friend class ciObject; \
96 friend class ciNullObject; \
97 friend class ciInstance; \
98 friend class ciMemberName; \
99 friend class ciMethod; \
100 friend class ciMethodData; \
101 friend class ciMethodHandle; \
102 friend class ciMethodType; \
103 friend class ciReceiverTypeData; \
104 friend class ciTypeEntries; \
105 friend class ciSpeculativeTrapData; \
106 friend class ciSymbol; \
107 friend class ciArray; \
108 friend class ciObjArray; \
109 friend class ciMetadata; \
110 friend class ciReplay; \
111 friend class ciTypeArray; \
112 friend class ciType; \
113 friend class ciReturnAddress; \
114 friend class ciKlass; \
115 friend class ciInstanceKlass; \
116 friend class ciArrayKlass; \
117 friend class ciObjArrayKlass; \
118 friend class ciTypeArrayKlass; \
119
120 #endif // SHARE_CI_CICLASSLIST_HPP
|
1 /*
2 * Copyright (c) 1999, 2026, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
36 class ciCallProfile;
37 class ciSignature;
38
39 class ciBytecodeStream;
40 class ciSignatureStream;
41 class ciExceptionHandlerStream;
42
43 class ciTypeFlow;
44
45 class ciBaseObject;
46 class ciObject;
47 class ciNullObject;
48 class ciInstance;
49 class ciCallSite;
50 class ciMemberName;
51 class ciMethodHandle;
52 class ciMethodType;
53 class ciArray;
54 class ciObjArray;
55 class ciTypeArray;
56 class ciFlatArray;
57 class ciSymbol;
58 class ciMetadata;
59 class ciMethod;
60 class ciMethodData;
61 class ciReceiverTypeData; // part of ciMethodData
62 class ciType;
63 class ciWrapper;
64 class ciReturnAddress;
65 class ciKlass;
66 class ciInstanceKlass;
67 class ciInlineKlass;
68 class ciArrayKlass;
69 class ciObjArrayKlass;
70 class ciFlatArrayKlass;
71 class ciRefArrayKlass;
72 class ciTypeArrayKlass;
73
74 // Simulate Java Language style package-private access with
75 // friend declarations.
76 // This is a great idea but gcc and other C++ compilers give an
77 // error for being friends with yourself, so this macro does not
78 // compile on some platforms.
79
80 // Everyone gives access to ciObjectFactory
81 #define CI_PACKAGE_ACCESS \
82 friend class ciObjectFactory; \
83
84 // These are the packages that have access to ciEnv
85 // Any more access must be given explicitly.
86 #define CI_PACKAGE_ACCESS_TO \
87 friend class ciObjectFactory; \
88 friend class VMStructs; \
89 friend class ciCallSite; \
90 friend class ciConstantPoolCache; \
91 friend class ciField; \
93 friend class ciFlags; \
94 friend class ciExceptionHandler; \
95 friend class ciCallProfile; \
96 friend class ciSignature; \
97 friend class ciBytecodeStream; \
98 friend class ciSignatureStream; \
99 friend class ciExceptionHandlerStream; \
100 friend class ciObject; \
101 friend class ciNullObject; \
102 friend class ciInstance; \
103 friend class ciMemberName; \
104 friend class ciMethod; \
105 friend class ciMethodData; \
106 friend class ciMethodHandle; \
107 friend class ciMethodType; \
108 friend class ciReceiverTypeData; \
109 friend class ciTypeEntries; \
110 friend class ciSpeculativeTrapData; \
111 friend class ciSymbol; \
112 friend class ciArray; \
113 friend class ciFlatArray; \
114 friend class ciObjArray; \
115 friend class ciMetadata; \
116 friend class ciReplay; \
117 friend class ciTypeArray; \
118 friend class ciType; \
119 friend class ciReturnAddress; \
120 friend class ciWrapper; \
121 friend class ciKlass; \
122 friend class ciInstanceKlass; \
123 friend class ciInlineKlass; \
124 friend class ciArrayKlass; \
125 friend class ciFlatArrayKlass; \
126 friend class ciObjArrayKlass; \
127 friend class ciTypeArrayKlass; \
128
129 #endif // SHARE_CI_CICLASSLIST_HPP
|