< prev index next >

src/share/vm/utilities/macros.hpp

Print this page


   1 /*
   2  * Copyright (c) 1997, 2015, 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  *


 189 
 190 // COMPILER1 variant
 191 #ifdef COMPILER1
 192 #ifdef COMPILER2
 193   #define TIERED
 194 #endif
 195 #define COMPILER1_PRESENT(code) code
 196 #else // COMPILER1
 197 #define COMPILER1_PRESENT(code)
 198 #endif // COMPILER1
 199 
 200 // COMPILER2 variant
 201 #ifdef COMPILER2
 202 #define COMPILER2_PRESENT(code) code
 203 #define NOT_COMPILER2(code)
 204 #else // COMPILER2
 205 #define COMPILER2_PRESENT(code)
 206 #define NOT_COMPILER2(code) code
 207 #endif // COMPILER2
 208 









 209 #ifdef TIERED
 210 #define TIERED_ONLY(code) code
 211 #define NOT_TIERED(code)
 212 #else // TIERED
 213 #define TIERED_ONLY(code)
 214 #define NOT_TIERED(code) code
 215 #endif // TIERED
 216 
 217 
 218 // PRODUCT variant
 219 #ifdef PRODUCT
 220 #define PRODUCT_ONLY(code) code
 221 #define NOT_PRODUCT(code)
 222 #define NOT_PRODUCT_ARG(arg)
 223 #define PRODUCT_RETURN  {}
 224 #define PRODUCT_RETURN0 { return 0; }
 225 #define PRODUCT_RETURN_(code) { code }
 226 #else // PRODUCT
 227 #define PRODUCT_ONLY(code)
 228 #define NOT_PRODUCT(code) code


   1 /*
   2  * Copyright (c) 1997, 2016, 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  *


 189 
 190 // COMPILER1 variant
 191 #ifdef COMPILER1
 192 #ifdef COMPILER2
 193   #define TIERED
 194 #endif
 195 #define COMPILER1_PRESENT(code) code
 196 #else // COMPILER1
 197 #define COMPILER1_PRESENT(code)
 198 #endif // COMPILER1
 199 
 200 // COMPILER2 variant
 201 #ifdef COMPILER2
 202 #define COMPILER2_PRESENT(code) code
 203 #define NOT_COMPILER2(code)
 204 #else // COMPILER2
 205 #define COMPILER2_PRESENT(code)
 206 #define NOT_COMPILER2(code) code
 207 #endif // COMPILER2
 208 
 209 // COMPILER2 or JVMCI
 210 #if defined(COMPILER2) || INCLUDE_JVMCI
 211 #define COMPILER2_OR_JVMCI_PRESENT(code) code
 212 #define NOT_COMPILER2_OR_JVMCI(code)
 213 #else
 214 #define COMPILER2_OR_JVMCI_PRESENT(code)
 215 #define NOT_COMPILER2_OR_JVMCI(code) code
 216 #endif
 217 
 218 #ifdef TIERED
 219 #define TIERED_ONLY(code) code
 220 #define NOT_TIERED(code)
 221 #else // TIERED
 222 #define TIERED_ONLY(code)
 223 #define NOT_TIERED(code) code
 224 #endif // TIERED
 225 
 226 
 227 // PRODUCT variant
 228 #ifdef PRODUCT
 229 #define PRODUCT_ONLY(code) code
 230 #define NOT_PRODUCT(code)
 231 #define NOT_PRODUCT_ARG(arg)
 232 #define PRODUCT_RETURN  {}
 233 #define PRODUCT_RETURN0 { return 0; }
 234 #define PRODUCT_RETURN_(code) { code }
 235 #else // PRODUCT
 236 #define PRODUCT_ONLY(code)
 237 #define NOT_PRODUCT(code) code


< prev index next >