49 // Common transition function. Given a predicate determines if a method should transition to another level. |
49 // Common transition function. Given a predicate determines if a method should transition to another level. |
50 CompLevel common(Predicate p, Method* method, CompLevel cur_level); |
50 CompLevel common(Predicate p, Method* method, CompLevel cur_level); |
51 // Transition functions. |
51 // Transition functions. |
52 // call_event determines if a method should be compiled at a different |
52 // call_event determines if a method should be compiled at a different |
53 // level with a regular invocation entry. |
53 // level with a regular invocation entry. |
54 CompLevel call_event(Method* method, CompLevel cur_level); |
54 CompLevel call_event(Method* method, CompLevel cur_level, JavaThread* thread); |
55 // loop_event checks if a method should be OSR compiled at a different |
55 // loop_event checks if a method should be OSR compiled at a different |
56 // level. |
56 // level. |
57 CompLevel loop_event(Method* method, CompLevel cur_level); |
57 CompLevel loop_event(Method* method, CompLevel cur_level, JavaThread* thread); |
58 void print_counters(const char* prefix, methodHandle mh); |
58 void print_counters(const char* prefix, methodHandle mh); |
59 protected: |
59 protected: |
60 int c1_count() const { return _c1_count; } |
60 int c1_count() const { return _c1_count; } |
61 int c2_count() const { return _c2_count; } |
61 int c2_count() const { return _c2_count; } |
62 void set_c1_count(int x) { _c1_count = x; } |
62 void set_c1_count(int x) { _c1_count = x; } |