hotspot/src/share/vm/opto/type.cpp
changeset 40881 a4955213b573
parent 38060 954c9575f653
child 42063 dca9294d9f59
equal deleted inserted replaced
40880:74222f8c095e 40881:a4955213b573
  1013     st->print(" [narrow]");
  1013     st->print(" [narrow]");
  1014   } else if (is_ptr_to_narrowklass()) {
  1014   } else if (is_ptr_to_narrowklass()) {
  1015     st->print(" [narrowklass]");
  1015     st->print(" [narrowklass]");
  1016   }
  1016   }
  1017 }
  1017 }
       
  1018 
       
  1019 //-----------------------------------------------------------------------------
       
  1020 const char* Type::str(const Type* t) {
       
  1021   stringStream ss;
       
  1022   t->dump_on(&ss);
       
  1023   return ss.as_string();
       
  1024 }
  1018 #endif
  1025 #endif
  1019 
  1026 
  1020 //------------------------------singleton--------------------------------------
  1027 //------------------------------singleton--------------------------------------
  1021 // TRUE if Type is a singleton type, FALSE otherwise.   Singletons are simple
  1028 // TRUE if Type is a singleton type, FALSE otherwise.   Singletons are simple
  1022 // constants (Ldi nodes).  Singletons are integer, float or double constants.
  1029 // constants (Ldi nodes).  Singletons are integer, float or double constants.