< prev index next >

src/hotspot/share/opto/type.cpp

Print this page

5133   switch( _ptr ) {
5134   case Constant:
5135     const_oop()->print(st);
5136     break;
5137   case BotPTR:
5138     if (!WizardMode && !Verbose) {
5139       if( _klass_is_exact ) st->print(":exact");
5140       break;
5141     }
5142   case TopPTR:
5143   case AnyNull:
5144   case NotNull:
5145     st->print(":%s", ptr_msg[_ptr]);
5146     if( _klass_is_exact ) st->print(":exact");
5147     break;
5148   default:
5149     break;
5150   }
5151 
5152   if( _offset != 0 ) {
5153     int header_size = objArrayOopDesc::header_size() * wordSize;

5154     if( _offset == OffsetTop )       st->print("+undefined");
5155     else if( _offset == OffsetBot )  st->print("+any");
5156     else if( _offset < header_size ) st->print("+%d", _offset);
5157     else {
5158       BasicType basic_elem_type = elem()->basic_type();
5159       if (basic_elem_type == T_ILLEGAL) {
5160         st->print("+any");
5161       } else {
5162         int array_base = arrayOopDesc::base_offset_in_bytes(basic_elem_type);
5163         int elem_size = type2aelembytes(basic_elem_type);
5164         st->print("[%d]", (_offset - array_base)/elem_size);
5165       }
5166     }
5167   }
5168   st->print(" *");
5169   if (_instance_id == InstanceTop)
5170     st->print(",iid=top");
5171   else if (_instance_id != InstanceBot)
5172     st->print(",iid=%d",_instance_id);
5173 
5174   dump_inline_depth(st);
5175   dump_speculative(st);
5176 }
5177 #endif
5178 

5133   switch( _ptr ) {
5134   case Constant:
5135     const_oop()->print(st);
5136     break;
5137   case BotPTR:
5138     if (!WizardMode && !Verbose) {
5139       if( _klass_is_exact ) st->print(":exact");
5140       break;
5141     }
5142   case TopPTR:
5143   case AnyNull:
5144   case NotNull:
5145     st->print(":%s", ptr_msg[_ptr]);
5146     if( _klass_is_exact ) st->print(":exact");
5147     break;
5148   default:
5149     break;
5150   }
5151 
5152   if( _offset != 0 ) {
5153     BasicType basic_elem_type = elem()->basic_type();
5154     int header_size = arrayOopDesc::base_offset_in_bytes(basic_elem_type);
5155     if( _offset == OffsetTop )       st->print("+undefined");
5156     else if( _offset == OffsetBot )  st->print("+any");
5157     else if( _offset < header_size ) st->print("+%d", _offset);
5158     else {

5159       if (basic_elem_type == T_ILLEGAL) {
5160         st->print("+any");
5161       } else {
5162         int array_base = arrayOopDesc::base_offset_in_bytes(basic_elem_type);
5163         int elem_size = type2aelembytes(basic_elem_type);
5164         st->print("[%d]", (_offset - array_base)/elem_size);
5165       }
5166     }
5167   }
5168   st->print(" *");
5169   if (_instance_id == InstanceTop)
5170     st->print(",iid=top");
5171   else if (_instance_id != InstanceBot)
5172     st->print(",iid=%d",_instance_id);
5173 
5174   dump_inline_depth(st);
5175   dump_speculative(st);
5176 }
5177 #endif
5178 
< prev index next >