1 /*
2 * Copyright (c) 1997, 2017, 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 *
178
179 #if INCLUDE_JVMCI
180 #define JVMCI_ONLY(code) code
181 #define NOT_JVMCI(code)
182 #define NOT_JVMCI_RETURN /* next token must be ; */
183 #else
184 #define JVMCI_ONLY(code)
185 #define NOT_JVMCI(code) code
186 #define NOT_JVMCI_RETURN {}
187 #endif // INCLUDE_JVMCI
188
189 #if INCLUDE_AOT
190 #define AOT_ONLY(code) code
191 #define NOT_AOT(code)
192 #define NOT_AOT_RETURN /* next token must be ; */
193 #else
194 #define AOT_ONLY(code)
195 #define NOT_AOT(code) code
196 #define NOT_AOT_RETURN {}
197 #endif // INCLUDE_AOT
198
199 // COMPILER1 variant
200 #ifdef COMPILER1
201 #ifdef COMPILER2
202 #define TIERED
203 #endif
204 #define COMPILER1_PRESENT(code) code
205 #else // COMPILER1
206 #define COMPILER1_PRESENT(code)
207 #endif // COMPILER1
208
209 // COMPILER2 variant
210 #ifdef COMPILER2
211 #define COMPILER2_PRESENT(code) code
212 #define NOT_COMPILER2(code)
213 #else // COMPILER2
214 #define COMPILER2_PRESENT(code)
215 #define NOT_COMPILER2(code) code
216 #endif // COMPILER2
217
|
1 /*
2 * Copyright (c) 1997, 2018, 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 *
178
179 #if INCLUDE_JVMCI
180 #define JVMCI_ONLY(code) code
181 #define NOT_JVMCI(code)
182 #define NOT_JVMCI_RETURN /* next token must be ; */
183 #else
184 #define JVMCI_ONLY(code)
185 #define NOT_JVMCI(code) code
186 #define NOT_JVMCI_RETURN {}
187 #endif // INCLUDE_JVMCI
188
189 #if INCLUDE_AOT
190 #define AOT_ONLY(code) code
191 #define NOT_AOT(code)
192 #define NOT_AOT_RETURN /* next token must be ; */
193 #else
194 #define AOT_ONLY(code)
195 #define NOT_AOT(code) code
196 #define NOT_AOT_RETURN {}
197 #endif // INCLUDE_AOT
198
199 #ifndef INCLUDE_VBC
200 #define INCLUDE_VBC 1
201 #endif // INCLUDE_VBC
202
203 // COMPILER1 variant
204 #ifdef COMPILER1
205 #ifdef COMPILER2
206 #define TIERED
207 #endif
208 #define COMPILER1_PRESENT(code) code
209 #else // COMPILER1
210 #define COMPILER1_PRESENT(code)
211 #endif // COMPILER1
212
213 // COMPILER2 variant
214 #ifdef COMPILER2
215 #define COMPILER2_PRESENT(code) code
216 #define NOT_COMPILER2(code)
217 #else // COMPILER2
218 #define COMPILER2_PRESENT(code)
219 #define NOT_COMPILER2(code) code
220 #endif // COMPILER2
221
|