equal
deleted
inserted
replaced
262 int highest_comp_level() const; |
262 int highest_comp_level() const; |
263 void set_highest_comp_level(int level); |
263 void set_highest_comp_level(int level); |
264 int highest_osr_comp_level() const; |
264 int highest_osr_comp_level() const; |
265 void set_highest_osr_comp_level(int level); |
265 void set_highest_osr_comp_level(int level); |
266 |
266 |
|
267 #if defined(COMPILER2) || INCLUDE_JVMCI |
267 // Count of times method was exited via exception while interpreting |
268 // Count of times method was exited via exception while interpreting |
268 void interpreter_throwout_increment(TRAPS) { |
269 void interpreter_throwout_increment(TRAPS) { |
269 MethodCounters* mcs = get_method_counters(CHECK); |
270 MethodCounters* mcs = get_method_counters(CHECK); |
270 if (mcs != NULL) { |
271 if (mcs != NULL) { |
271 mcs->interpreter_throwout_increment(); |
272 mcs->interpreter_throwout_increment(); |
272 } |
273 } |
273 } |
274 } |
|
275 #endif |
274 |
276 |
275 int interpreter_throwout_count() const { |
277 int interpreter_throwout_count() const { |
276 MethodCounters* mcs = method_counters(); |
278 MethodCounters* mcs = method_counters(); |
277 if (mcs == NULL) { |
279 if (mcs == NULL) { |
278 return 0; |
280 return 0; |
405 } else { |
407 } else { |
406 MethodCounters* mcs = method_counters(); |
408 MethodCounters* mcs = method_counters(); |
407 return (mcs == NULL) ? 0 : mcs->interpreter_invocation_count(); |
409 return (mcs == NULL) ? 0 : mcs->interpreter_invocation_count(); |
408 } |
410 } |
409 } |
411 } |
|
412 #if defined(COMPILER2) || INCLUDE_JVMCI |
410 int increment_interpreter_invocation_count(TRAPS) { |
413 int increment_interpreter_invocation_count(TRAPS) { |
411 if (TieredCompilation) ShouldNotReachHere(); |
414 if (TieredCompilation) ShouldNotReachHere(); |
412 MethodCounters* mcs = get_method_counters(CHECK_0); |
415 MethodCounters* mcs = get_method_counters(CHECK_0); |
413 return (mcs == NULL) ? 0 : mcs->increment_interpreter_invocation_count(); |
416 return (mcs == NULL) ? 0 : mcs->increment_interpreter_invocation_count(); |
414 } |
417 } |
|
418 #endif |
415 |
419 |
416 #ifndef PRODUCT |
420 #ifndef PRODUCT |
417 int compiled_invocation_count() const { return _compiled_invocation_count; } |
421 int compiled_invocation_count() const { return _compiled_invocation_count; } |
418 void set_compiled_invocation_count(int count) { _compiled_invocation_count = count; } |
422 void set_compiled_invocation_count(int count) { _compiled_invocation_count = count; } |
419 #else |
423 #else |