229 void compile(const methodHandle& mh, int bci, CompLevel level, JavaThread* thread); |
229 void compile(const methodHandle& mh, int bci, CompLevel level, JavaThread* thread); |
230 // Submit a given method for compilation |
230 // Submit a given method for compilation |
231 virtual void submit_compile(const methodHandle& mh, int bci, CompLevel level, JavaThread* thread); |
231 virtual void submit_compile(const methodHandle& mh, int bci, CompLevel level, JavaThread* thread); |
232 // Simple methods are as good being compiled with C1 as C2. |
232 // Simple methods are as good being compiled with C1 as C2. |
233 // This function tells if it's such a function. |
233 // This function tells if it's such a function. |
234 inline bool is_trivial(Method* method); |
234 inline static bool is_trivial(Method* method); |
|
235 // Force method to be compiled at CompLevel_simple? |
|
236 inline static bool should_compile_at_level_simple(Method* method); |
235 |
237 |
236 // Predicate helpers are used by .*_predicate() methods as well as others. |
238 // Predicate helpers are used by .*_predicate() methods as well as others. |
237 // They check the given counter values, multiplied by the scale against the thresholds. |
239 // They check the given counter values, multiplied by the scale against the thresholds. |
238 template<CompLevel level> static inline bool call_predicate_helper(int i, int b, double scale, Method* method); |
240 template<CompLevel level> static inline bool call_predicate_helper(int i, int b, double scale, Method* method); |
239 template<CompLevel level> static inline bool loop_predicate_helper(int i, int b, double scale, Method* method); |
241 template<CompLevel level> static inline bool loop_predicate_helper(int i, int b, double scale, Method* method); |