132 // through JVMCI (where the JVMCI compiler was invoked not through the broker). Be sure
133 // to check for those (using is_jvmci()) in situations where it matters.
134
135 inline static bool is_tiered();
136
137 inline static bool is_c1_enabled();
138 inline static bool is_c1_only();
139 inline static bool is_c1_simple_only();
140 inline static bool is_c1_or_interpreter_only_no_jvmci();
141 inline static bool is_c1_only_no_jvmci();
142 inline static bool is_c1_profiling();
143
144 inline static bool is_jvmci_compiler_enabled();
145 inline static bool is_jvmci_compiler_only();
146
147 inline static bool is_c2_only();
148 inline static bool is_c2_enabled();
149 inline static bool is_c2_or_jvmci_compiler_only();
150 inline static bool is_c2_or_jvmci_compiler_enabled();
151
152 private:
153 static bool is_compilation_mode_selected();
154 static void set_compilation_policy_flags();
155 static void set_jvmci_specific_flags();
156 static void set_legacy_emulation_flags();
157 static void set_client_emulation_mode_flags();
158 };
159
160 #endif // SHARE_COMPILER_COMPILERDEFINITIONS_HPP
|
132 // through JVMCI (where the JVMCI compiler was invoked not through the broker). Be sure
133 // to check for those (using is_jvmci()) in situations where it matters.
134
135 inline static bool is_tiered();
136
137 inline static bool is_c1_enabled();
138 inline static bool is_c1_only();
139 inline static bool is_c1_simple_only();
140 inline static bool is_c1_or_interpreter_only_no_jvmci();
141 inline static bool is_c1_only_no_jvmci();
142 inline static bool is_c1_profiling();
143
144 inline static bool is_jvmci_compiler_enabled();
145 inline static bool is_jvmci_compiler_only();
146
147 inline static bool is_c2_only();
148 inline static bool is_c2_enabled();
149 inline static bool is_c2_or_jvmci_compiler_only();
150 inline static bool is_c2_or_jvmci_compiler_enabled();
151
152 inline static CompilerType compiler_type();
153
154 private:
155 static bool is_compilation_mode_selected();
156 static void set_compilation_policy_flags();
157 static void set_jvmci_specific_flags();
158 static void set_legacy_emulation_flags();
159 static void set_client_emulation_mode_flags();
160 };
161
162 #endif // SHARE_COMPILER_COMPILERDEFINITIONS_HPP
|