equal
deleted
inserted
replaced
60 CompLevel_limited_profile = 2, // C1, invocation & backedge counters |
60 CompLevel_limited_profile = 2, // C1, invocation & backedge counters |
61 CompLevel_full_profile = 3, // C1, invocation & backedge counters + mdo |
61 CompLevel_full_profile = 3, // C1, invocation & backedge counters + mdo |
62 CompLevel_full_optimization = 4 // C2 or JVMCI |
62 CompLevel_full_optimization = 4 // C2 or JVMCI |
63 }; |
63 }; |
64 |
64 |
|
65 #ifdef TIERED |
65 class CompilationModeFlag : AllStatic { |
66 class CompilationModeFlag : AllStatic { |
66 static bool _quick_only; |
67 static bool _quick_only; |
67 static bool _high_only; |
68 static bool _high_only; |
68 static bool _high_only_quick_internal; |
69 static bool _high_only_quick_internal; |
69 |
70 |
77 static bool disable_intermediate() { return high_only() || high_only_quick_internal(); } |
78 static bool disable_intermediate() { return high_only() || high_only_quick_internal(); } |
78 static bool quick_internal() { return !high_only(); } |
79 static bool quick_internal() { return !high_only(); } |
79 |
80 |
80 static void set_high_only_quick_internal(bool x) { _high_only_quick_internal = x; } |
81 static void set_high_only_quick_internal(bool x) { _high_only_quick_internal = x; } |
81 }; |
82 }; |
|
83 #endif |
82 |
84 |
83 extern CompLevel CompLevel_highest_tier; |
85 extern CompLevel CompLevel_highest_tier; |
84 extern CompLevel CompLevel_initial_compile; |
86 extern CompLevel CompLevel_initial_compile; |
85 |
87 |
86 enum CompMode { |
88 enum CompMode { |
145 static bool check_args_consistency(bool status); |
147 static bool check_args_consistency(bool status); |
146 |
148 |
147 static void ergo_initialize(); |
149 static void ergo_initialize(); |
148 |
150 |
149 private: |
151 private: |
150 static void set_tiered_flags(); |
152 TIERED_ONLY(static void set_tiered_flags();) |
151 }; |
153 }; |
152 |
154 |
153 #endif // SHARE_COMPILER_COMPILERDEFINITIONS_HPP |
155 #endif // SHARE_COMPILER_COMPILERDEFINITIONS_HPP |