comparison src/share/vm/opto/doCall.cpp @ 367:194b8e3a2fc4

6384206: Phis which are later unneeded are impairing our ability to inline based on static types Reviewed-by: rasbold, jrose
author never
date Wed, 17 Sep 2008 12:59:52 -0700
parents d1605aabd0a1
children be93aad57795
comparison
equal deleted inserted replaced
366:8261ee795323 367:194b8e3a2fc4
793 return NULL; 793 return NULL;
794 } 794 }
795 795
796 ciInstanceKlass *ikl = receiver_type->klass()->as_instance_klass(); 796 ciInstanceKlass *ikl = receiver_type->klass()->as_instance_klass();
797 if (ikl->is_loaded() && ikl->is_initialized() && !ikl->is_interface() && 797 if (ikl->is_loaded() && ikl->is_initialized() && !ikl->is_interface() &&
798 (ikl == actual_receiver || ikl->is_subclass_of(actual_receiver))) { 798 (ikl == actual_receiver || ikl->is_subtype_of(actual_receiver))) {
799 // ikl is a same or better type than the original actual_receiver, 799 // ikl is a same or better type than the original actual_receiver,
800 // e.g. static receiver from bytecodes. 800 // e.g. static receiver from bytecodes.
801 actual_receiver = ikl; 801 actual_receiver = ikl;
802 // Is the actual_receiver exact? 802 // Is the actual_receiver exact?
803 actual_receiver_is_exact = receiver_type->klass_is_exact(); 803 actual_receiver_is_exact = receiver_type->klass_is_exact();