Mercurial > hg > graal-jvmci-8
annotate src/share/vm/utilities/macros.hpp @ 470:ad8c8ca4ab0f jdk7-b42
6785258: Update copyright year
Summary: Update copyright for files that have been modified starting July 2008 to Dec 2008
Reviewed-by: katleman, ohair, tbell
author | xdono |
---|---|
date | Mon, 15 Dec 2008 16:55:11 -0800 |
parents | c96030fff130 |
children | 6e2afda171db |
rev | line source |
---|---|
0 | 1 /* |
337 | 2 * Copyright 1997-2008 Sun Microsystems, Inc. All Rights Reserved. |
0 | 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, | |
20 * CA 95054 USA or visit www.sun.com if you need additional information or | |
21 * have any questions. | |
22 * | |
23 */ | |
24 | |
25 // Use this to mark code that needs to be cleaned up (for development only) | |
26 #define NEEDS_CLEANUP | |
27 | |
28 // Makes a string of the argument (which is not macro-expanded) | |
29 #define STR(a) #a | |
30 | |
31 // Makes a string of the macro expansion of a | |
32 #define XSTR(a) STR(a) | |
33 | |
34 // KERNEL variant | |
35 #ifdef KERNEL | |
36 #define COMPILER1 | |
37 #define SERIALGC | |
38 | |
39 #define JVMTI_KERNEL | |
40 #define FPROF_KERNEL | |
41 #define VM_STRUCTS_KERNEL | |
42 #define JNICHECK_KERNEL | |
43 #define SERVICES_KERNEL | |
44 | |
45 #define KERNEL_RETURN {} | |
46 #define KERNEL_RETURN_(code) { code } | |
47 | |
48 #else // KERNEL | |
49 | |
50 #define KERNEL_RETURN /* next token must be ; */ | |
51 #define KERNEL_RETURN_(code) /* next token must be ; */ | |
52 | |
53 #endif // KERNEL | |
54 | |
55 // COMPILER1 variant | |
56 #ifdef COMPILER1 | |
57 #ifdef COMPILER2 | |
58 #define TIERED | |
59 #endif | |
60 #define COMPILER1_PRESENT(code) code | |
61 #else // COMPILER1 | |
62 #define COMPILER1_PRESENT(code) | |
63 #endif // COMPILER1 | |
64 | |
65 // COMPILER2 variant | |
66 #ifdef COMPILER2 | |
67 #define COMPILER2_PRESENT(code) code | |
453
c96030fff130
6684579: SoftReference processing can be made more efficient
ysr
parents:
337
diff
changeset
|
68 #define NOT_COMPILER2(code) |
0 | 69 #else // COMPILER2 |
70 #define COMPILER2_PRESENT(code) | |
453
c96030fff130
6684579: SoftReference processing can be made more efficient
ysr
parents:
337
diff
changeset
|
71 #define NOT_COMPILER2(code) code |
0 | 72 #endif // COMPILER2 |
73 | |
74 | |
75 // PRODUCT variant | |
76 #ifdef PRODUCT | |
77 #define PRODUCT_ONLY(code) code | |
78 #define NOT_PRODUCT(code) | |
79 #define PRODUCT_RETURN {} | |
80 #define PRODUCT_RETURN0 { return 0; } | |
81 #define PRODUCT_RETURN_(code) { code } | |
82 #else // PRODUCT | |
83 #define PRODUCT_ONLY(code) | |
84 #define NOT_PRODUCT(code) code | |
85 #define PRODUCT_RETURN /*next token must be ;*/ | |
86 #define PRODUCT_RETURN0 /*next token must be ;*/ | |
87 #define PRODUCT_RETURN_(code) /*next token must be ;*/ | |
88 #endif // PRODUCT | |
89 | |
90 #ifdef CHECK_UNHANDLED_OOPS | |
91 #define CHECK_UNHANDLED_OOPS_ONLY(code) code | |
92 #define NOT_CHECK_UNHANDLED_OOPS(code) | |
93 #else | |
94 #define CHECK_UNHANDLED_OOPS_ONLY(code) | |
95 #define NOT_CHECK_UNHANDLED_OOPS(code) code | |
96 #endif // CHECK_UNHANDLED_OOPS | |
97 | |
98 #ifdef CC_INTERP | |
99 #define CC_INTERP_ONLY(code) code | |
100 #define NOT_CC_INTERP(code) | |
101 #else | |
102 #define CC_INTERP_ONLY(code) | |
103 #define NOT_CC_INTERP(code) code | |
104 #endif // CC_INTERP | |
105 | |
106 #ifdef ASSERT | |
107 #define DEBUG_ONLY(code) code | |
108 #define NOT_DEBUG(code) | |
109 // Historical. | |
110 #define debug_only(code) code | |
111 #else // ASSERT | |
112 #define DEBUG_ONLY(code) | |
113 #define NOT_DEBUG(code) code | |
114 #define debug_only(code) | |
115 #endif // ASSERT | |
116 | |
117 #ifdef _LP64 | |
118 #define LP64_ONLY(code) code | |
119 #define NOT_LP64(code) | |
120 #else // !_LP64 | |
121 #define LP64_ONLY(code) | |
122 #define NOT_LP64(code) code | |
123 #endif // _LP64 | |
124 | |
125 #ifdef LINUX | |
126 #define LINUX_ONLY(code) code | |
127 #define NOT_LINUX(code) | |
128 #else | |
129 #define LINUX_ONLY(code) | |
130 #define NOT_LINUX(code) code | |
131 #endif | |
132 | |
133 #ifdef SOLARIS | |
134 #define SOLARIS_ONLY(code) code | |
135 #define NOT_SOLARIS(code) | |
136 #else | |
137 #define SOLARIS_ONLY(code) | |
138 #define NOT_SOLARIS(code) code | |
139 #endif | |
140 | |
141 #ifdef _WINDOWS | |
142 #define WINDOWS_ONLY(code) code | |
143 #define NOT_WINDOWS(code) | |
144 #else | |
145 #define WINDOWS_ONLY(code) | |
146 #define NOT_WINDOWS(code) code | |
147 #endif | |
148 | |
304 | 149 #if defined(IA32) || defined(AMD64) |
150 #define X86 | |
151 #define X86_ONLY(code) code | |
152 #else | |
153 #undef X86 | |
154 #define X86_ONLY(code) | |
155 #endif | |
156 | |
0 | 157 #ifdef IA32 |
158 #define IA32_ONLY(code) code | |
159 #define NOT_IA32(code) | |
160 #else | |
161 #define IA32_ONLY(code) | |
162 #define NOT_IA32(code) code | |
163 #endif | |
164 | |
165 #ifdef IA64 | |
166 #define IA64_ONLY(code) code | |
167 #define NOT_IA64(code) | |
168 #else | |
169 #define IA64_ONLY(code) | |
170 #define NOT_IA64(code) code | |
171 #endif | |
172 | |
173 #ifdef AMD64 | |
174 #define AMD64_ONLY(code) code | |
175 #define NOT_AMD64(code) | |
176 #else | |
177 #define AMD64_ONLY(code) | |
178 #define NOT_AMD64(code) code | |
179 #endif | |
180 | |
181 #ifdef SPARC | |
182 #define SPARC_ONLY(code) code | |
183 #define NOT_SPARC(code) | |
184 #else | |
185 #define SPARC_ONLY(code) | |
186 #define NOT_SPARC(code) code | |
187 #endif | |
188 | |
189 #define FIX_THIS(code) report_assertion_failure("FIX_THIS",__FILE__, __LINE__, "") | |
190 | |
191 #define define_pd_global(type, name, value) const type pd_##name = value; |