comparison src/share/vm/c1/c1_Compilation.cpp @ 12875:d13d7aba8c12

8023657: New type profiling points: arguments to call Summary: x86 interpreter and c1 type profiling for arguments at calls Reviewed-by: kvn, twisti
author roland
date Wed, 09 Oct 2013 16:32:21 +0200
parents e47de6dfec5d
children de6a9e811145
comparison
equal deleted inserted replaced
12874:46ef27bcacb3 12875:d13d7aba8c12
599 if (PrintCompilation || PrintBailouts) tty->print_cr("compilation bailout: %s", msg); 599 if (PrintCompilation || PrintBailouts) tty->print_cr("compilation bailout: %s", msg);
600 _bailout_msg = msg; 600 _bailout_msg = msg;
601 } 601 }
602 } 602 }
603 603
604 ciKlass* Compilation::cha_exact_type(ciType* type) {
605 if (type != NULL && type->is_loaded() && type->is_instance_klass()) {
606 ciInstanceKlass* ik = type->as_instance_klass();
607 assert(ik->exact_klass() == NULL, "no cha for final klass");
608 if (DeoptC1 && UseCHA && !(ik->has_subklass() || ik->is_interface())) {
609 dependency_recorder()->assert_leaf_type(ik);
610 return ik;
611 }
612 }
613 return NULL;
614 }
604 615
605 void Compilation::print_timers() { 616 void Compilation::print_timers() {
606 // tty->print_cr(" Native methods : %6.3f s, Average : %2.3f", CompileBroker::_t_native_compilation.seconds(), CompileBroker::_t_native_compilation.seconds() / CompileBroker::_total_native_compile_count); 617 // tty->print_cr(" Native methods : %6.3f s, Average : %2.3f", CompileBroker::_t_native_compilation.seconds(), CompileBroker::_t_native_compilation.seconds() / CompileBroker::_total_native_compile_count);
607 float total = timers[_t_setup].seconds() + timers[_t_buildIR].seconds() + timers[_t_emit_lir].seconds() + timers[_t_lir_schedule].seconds() + timers[_t_codeemit].seconds() + timers[_t_codeinstall].seconds(); 618 float total = timers[_t_setup].seconds() + timers[_t_buildIR].seconds() + timers[_t_emit_lir].seconds() + timers[_t_lir_schedule].seconds() + timers[_t_codeemit].seconds() + timers[_t_codeinstall].seconds();
608 619