equal
deleted
inserted
replaced
371 if( callee_method->should_exclude() ) return false; |
371 if( callee_method->should_exclude() ) return false; |
372 |
372 |
373 return true; |
373 return true; |
374 } |
374 } |
375 |
375 |
376 #ifndef PRODUCT |
|
377 //------------------------------print_inlining--------------------------------- |
376 //------------------------------print_inlining--------------------------------- |
378 // Really, the failure_msg can be a success message also. |
377 // Really, the failure_msg can be a success message also. |
379 void InlineTree::print_inlining(ciMethod* callee_method, int caller_bci, const char* failure_msg) const { |
378 void InlineTree::print_inlining(ciMethod* callee_method, int caller_bci, const char* failure_msg) const { |
380 CompileTask::print_inlining(callee_method, inline_depth(), caller_bci, failure_msg ? failure_msg : "inline"); |
379 CompileTask::print_inlining(callee_method, inline_depth(), caller_bci, failure_msg ? failure_msg : "inline"); |
381 if (callee_method == NULL) tty->print(" callee not monotonic or profiled"); |
380 if (callee_method == NULL) tty->print(" callee not monotonic or profiled"); |
383 const InlineTree *top = this; |
382 const InlineTree *top = this; |
384 while( top->caller_tree() != NULL ) { top = top->caller_tree(); } |
383 while( top->caller_tree() != NULL ) { top = top->caller_tree(); } |
385 tty->print(" bcs: %d+%d invoked: %d", top->count_inline_bcs(), callee_method->code_size(), callee_method->interpreter_invocation_count()); |
384 tty->print(" bcs: %d+%d invoked: %d", top->count_inline_bcs(), callee_method->code_size(), callee_method->interpreter_invocation_count()); |
386 } |
385 } |
387 } |
386 } |
388 #endif |
|
389 |
387 |
390 //------------------------------ok_to_inline----------------------------------- |
388 //------------------------------ok_to_inline----------------------------------- |
391 WarmCallInfo* InlineTree::ok_to_inline(ciMethod* callee_method, JVMState* jvms, ciCallProfile& profile, WarmCallInfo* initial_wci) { |
389 WarmCallInfo* InlineTree::ok_to_inline(ciMethod* callee_method, JVMState* jvms, ciCallProfile& profile, WarmCallInfo* initial_wci) { |
392 assert(callee_method != NULL, "caller checks for optimized virtual!"); |
390 assert(callee_method != NULL, "caller checks for optimized virtual!"); |
393 #ifdef ASSERT |
391 #ifdef ASSERT |