< prev index next >

src/hotspot/share/compiler/compilerDefinitions.inline.hpp

Print this page

114 // Tiered is basically C1 & (C2 | JVMCI) minus all the odd cases with restrictions.
115 inline bool CompilerConfig::is_tiered() {
116   assert(!is_c1_simple_only() || is_c1_only(), "c1 simple mode must imply c1-only mode");
117   return has_tiered() && !is_interpreter_only() && !is_c1_only() && !is_c2_or_jvmci_compiler_only();
118 }
119 
120 inline bool CompilerConfig::is_c1_enabled() {
121   return has_c1() && !is_interpreter_only() && !is_c2_or_jvmci_compiler_only();
122 }
123 
124 inline bool CompilerConfig::is_c1_profiling() {
125   const bool c1_only_profiling = is_c1_only() && !is_c1_simple_only();
126   const bool tiered = is_tiered();
127   return c1_only_profiling || tiered;
128 }
129 
130 inline bool CompilerConfig::is_c2_or_jvmci_compiler_enabled() {
131   return is_c2_enabled() || is_jvmci_compiler_enabled();
132 }
133 













134 #endif // SHARE_COMPILER_COMPILERDEFINITIONS_INLINE_HPP

114 // Tiered is basically C1 & (C2 | JVMCI) minus all the odd cases with restrictions.
115 inline bool CompilerConfig::is_tiered() {
116   assert(!is_c1_simple_only() || is_c1_only(), "c1 simple mode must imply c1-only mode");
117   return has_tiered() && !is_interpreter_only() && !is_c1_only() && !is_c2_or_jvmci_compiler_only();
118 }
119 
120 inline bool CompilerConfig::is_c1_enabled() {
121   return has_c1() && !is_interpreter_only() && !is_c2_or_jvmci_compiler_only();
122 }
123 
124 inline bool CompilerConfig::is_c1_profiling() {
125   const bool c1_only_profiling = is_c1_only() && !is_c1_simple_only();
126   const bool tiered = is_tiered();
127   return c1_only_profiling || tiered;
128 }
129 
130 inline bool CompilerConfig::is_c2_or_jvmci_compiler_enabled() {
131   return is_c2_enabled() || is_jvmci_compiler_enabled();
132 }
133 
134 // Return type of most optimizing compiler which is used
135 inline CompilerType CompilerConfig::compiler_type() {
136   CompilerType compiler_type = CompilerType::compiler_none; // Interpreter only
137   if (CompilerConfig::is_c2_enabled()) {
138     compiler_type = CompilerType::compiler_c2;
139   } else if (CompilerConfig::is_jvmci_compiler_enabled()) {
140     compiler_type = CompilerType::compiler_jvmci;
141   } else if (CompilerConfig::is_c1_enabled()) {
142     compiler_type = CompilerType::compiler_c1;
143   }
144   return compiler_type;
145 }
146 
147 #endif // SHARE_COMPILER_COMPILERDEFINITIONS_INLINE_HPP
< prev index next >