< prev index next >

src/hotspot/share/utilities/globalDefinitions.hpp

Print this page
rev 60435 : imported patch improve_inlining


  29 #include "utilities/debug.hpp"
  30 #include "utilities/macros.hpp"
  31 
  32 // Get constants like JVM_T_CHAR and JVM_SIGNATURE_INT, before pulling in <jvm.h>.
  33 #include "classfile_constants.h"
  34 
  35 #include COMPILER_HEADER(utilities/globalDefinitions)
  36 
  37 // Defaults for macros that might be defined per compiler.
  38 #ifndef NOINLINE
  39 #define NOINLINE
  40 #endif
  41 #ifndef ALWAYSINLINE
  42 #define ALWAYSINLINE inline
  43 #endif
  44 
  45 #ifndef ATTRIBUTE_ALIGNED
  46 #define ATTRIBUTE_ALIGNED(x)
  47 #endif
  48 




  49 // These are #defines to selectively turn on/off the Print(Opto)Assembly
  50 // capabilities. Choices should be led by a tradeoff between
  51 // code size and improved supportability.
  52 // if PRINT_ASSEMBLY then PRINT_ABSTRACT_ASSEMBLY must be true as well
  53 // to have a fallback in case hsdis is not available.
  54 #if defined(PRODUCT)
  55   #define SUPPORT_ABSTRACT_ASSEMBLY
  56   #define SUPPORT_ASSEMBLY
  57   #undef  SUPPORT_OPTO_ASSEMBLY      // Can't activate. In PRODUCT, many dump methods are missing.
  58   #undef  SUPPORT_DATA_STRUCTS       // Of limited use. In PRODUCT, many print methods are empty.
  59 #else
  60   #define SUPPORT_ABSTRACT_ASSEMBLY
  61   #define SUPPORT_ASSEMBLY
  62   #define SUPPORT_OPTO_ASSEMBLY
  63   #define SUPPORT_DATA_STRUCTS
  64 #endif
  65 #if defined(SUPPORT_ASSEMBLY) && !defined(SUPPORT_ABSTRACT_ASSEMBLY)
  66   #define SUPPORT_ABSTRACT_ASSEMBLY
  67 #endif
  68 




  29 #include "utilities/debug.hpp"
  30 #include "utilities/macros.hpp"
  31 
  32 // Get constants like JVM_T_CHAR and JVM_SIGNATURE_INT, before pulling in <jvm.h>.
  33 #include "classfile_constants.h"
  34 
  35 #include COMPILER_HEADER(utilities/globalDefinitions)
  36 
  37 // Defaults for macros that might be defined per compiler.
  38 #ifndef NOINLINE
  39 #define NOINLINE
  40 #endif
  41 #ifndef ALWAYSINLINE
  42 #define ALWAYSINLINE inline
  43 #endif
  44 
  45 #ifndef ATTRIBUTE_ALIGNED
  46 #define ATTRIBUTE_ALIGNED(x)
  47 #endif
  48 
  49 #ifndef ATTRIBUTE_FLATTEN
  50 #define ATTRIBUTE_FLATTEN
  51 #endif
  52 
  53 // These are #defines to selectively turn on/off the Print(Opto)Assembly
  54 // capabilities. Choices should be led by a tradeoff between
  55 // code size and improved supportability.
  56 // if PRINT_ASSEMBLY then PRINT_ABSTRACT_ASSEMBLY must be true as well
  57 // to have a fallback in case hsdis is not available.
  58 #if defined(PRODUCT)
  59   #define SUPPORT_ABSTRACT_ASSEMBLY
  60   #define SUPPORT_ASSEMBLY
  61   #undef  SUPPORT_OPTO_ASSEMBLY      // Can't activate. In PRODUCT, many dump methods are missing.
  62   #undef  SUPPORT_DATA_STRUCTS       // Of limited use. In PRODUCT, many print methods are empty.
  63 #else
  64   #define SUPPORT_ABSTRACT_ASSEMBLY
  65   #define SUPPORT_ASSEMBLY
  66   #define SUPPORT_OPTO_ASSEMBLY
  67   #define SUPPORT_DATA_STRUCTS
  68 #endif
  69 #if defined(SUPPORT_ASSEMBLY) && !defined(SUPPORT_ABSTRACT_ASSEMBLY)
  70   #define SUPPORT_ABSTRACT_ASSEMBLY
  71 #endif
  72 


< prev index next >