comparison src/share/vm/ci/ciTypeFlow.cpp @ 20574:9dc314de223d

8058828: Wrong ciConstant type for arrays from ConstantPool::_resolved_reference Reviewed-by: kvn, jrose
author vlivanov
date Wed, 01 Oct 2014 12:34:38 -0700
parents 55fb97c4c58d
children 9e69e8d1c900
comparison
equal deleted inserted replaced
20573:8ed0a8dbea70 20574:9dc314de223d
728 if (basic_type == T_OBJECT || basic_type == T_ARRAY) { 728 if (basic_type == T_OBJECT || basic_type == T_ARRAY) {
729 ciObject* obj = con.as_object(); 729 ciObject* obj = con.as_object();
730 if (obj->is_null_object()) { 730 if (obj->is_null_object()) {
731 push_null(); 731 push_null();
732 } else { 732 } else {
733 assert(obj->is_instance(), "must be java_mirror of klass"); 733 assert(obj->is_instance() || obj->is_array(), "must be java_mirror of klass");
734 push_object(obj->klass()); 734 push_object(obj->klass());
735 } 735 }
736 } else { 736 } else {
737 push_translate(ciType::make(basic_type)); 737 push_translate(ciType::make(basic_type));
738 } 738 }