src/share/vm/utilities/macros.hpp

Print this page




  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
  68 #define NOT_COMPILER2(code)
  69 #else // COMPILER2
  70 #define COMPILER2_PRESENT(code)
  71 #define NOT_COMPILER2(code) code
  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




  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
  68 #define NOT_COMPILER2(code)
  69 #else // COMPILER2
  70 #define COMPILER2_PRESENT(code)
  71 #define NOT_COMPILER2(code) code
  72 #endif // COMPILER2
  73 
  74 
  75 // PRODUCT variant
  76 #ifdef PRODUCT
  77 #define PRODUCT_ONLY(code) code
  78 #define NOT_PRODUCT(code)
  79 #define NOT_PRODUCT_ARG(arg)
  80 #define PRODUCT_RETURN  {}
  81 #define PRODUCT_RETURN0 { return 0; }
  82 #define PRODUCT_RETURN_(code) { code }
  83 #else // PRODUCT
  84 #define PRODUCT_ONLY(code)
  85 #define NOT_PRODUCT(code) code
  86 #define NOT_PRODUCT_ARG(arg) arg,
  87 #define PRODUCT_RETURN  /*next token must be ;*/
  88 #define PRODUCT_RETURN0 /*next token must be ;*/
  89 #define PRODUCT_RETURN_(code)  /*next token must be ;*/
  90 #endif // PRODUCT
  91 
  92 #ifdef CHECK_UNHANDLED_OOPS
  93 #define CHECK_UNHANDLED_OOPS_ONLY(code) code
  94 #define NOT_CHECK_UNHANDLED_OOPS(code)
  95 #else
  96 #define CHECK_UNHANDLED_OOPS_ONLY(code)
  97 #define NOT_CHECK_UNHANDLED_OOPS(code)  code
  98 #endif // CHECK_UNHANDLED_OOPS
  99 
 100 #ifdef CC_INTERP
 101 #define CC_INTERP_ONLY(code) code
 102 #define NOT_CC_INTERP(code)
 103 #else
 104 #define CC_INTERP_ONLY(code)
 105 #define NOT_CC_INTERP(code) code
 106 #endif // CC_INTERP