Mercurial > hg > graal-compiler
comparison src/share/vm/c1/c1_Compilation.cpp @ 13102:f9f4503a4ab5
Merge
author | Christos Kotselidis <christos.kotselidis@oracle.com> |
---|---|
date | Thu, 21 Nov 2013 15:04:54 +0100 |
parents | d13d7aba8c12 |
children | de6a9e811145 |
comparison
equal
deleted
inserted
replaced
13101:790ebab62d23 | 13102:f9f4503a4ab5 |
---|---|
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 |