< prev index next >

src/hotspot/share/utilities/globalDefinitions.hpp

Print this page

 704   // these guys are processed exactly like T_INT in calling sequences:
 705   return (t == T_BOOLEAN || t == T_CHAR || t == T_BYTE || t == T_SHORT);
 706 }
 707 
 708 inline bool is_signed_subword_type(BasicType t) {
 709   return (t == T_BYTE || t == T_SHORT);
 710 }
 711 
 712 inline bool is_double_word_type(BasicType t) {
 713   return (t == T_DOUBLE || t == T_LONG);
 714 }
 715 
 716 inline bool is_reference_type(BasicType t) {
 717   return (t == T_OBJECT || t == T_ARRAY);
 718 }
 719 
 720 inline bool is_integral_type(BasicType t) {
 721   return is_subword_type(t) || t == T_INT || t == T_LONG;
 722 }
 723 




 724 inline bool is_floating_point_type(BasicType t) {
 725   return (t == T_FLOAT || t == T_DOUBLE);
 726 }
 727 
 728 extern char type2char_tab[T_CONFLICT+1];     // Map a BasicType to a jchar
 729 inline char type2char(BasicType t) { return (uint)t < T_CONFLICT+1 ? type2char_tab[t] : 0; }
 730 extern int type2size[T_CONFLICT+1];         // Map BasicType to result stack elements
 731 extern const char* type2name_tab[T_CONFLICT+1];     // Map a BasicType to a jchar
 732 inline const char* type2name(BasicType t) { return (uint)t < T_CONFLICT+1 ? type2name_tab[t] : NULL; }
 733 extern BasicType name2type(const char* name);
 734 
 735 inline jlong max_signed_integer(BasicType bt) {
 736   if (bt == T_INT) {
 737     return max_jint;
 738   }
 739   assert(bt == T_LONG, "unsupported");
 740   return max_jlong;
 741 }
 742 
 743 inline jlong min_signed_integer(BasicType bt) {

 704   // these guys are processed exactly like T_INT in calling sequences:
 705   return (t == T_BOOLEAN || t == T_CHAR || t == T_BYTE || t == T_SHORT);
 706 }
 707 
 708 inline bool is_signed_subword_type(BasicType t) {
 709   return (t == T_BYTE || t == T_SHORT);
 710 }
 711 
 712 inline bool is_double_word_type(BasicType t) {
 713   return (t == T_DOUBLE || t == T_LONG);
 714 }
 715 
 716 inline bool is_reference_type(BasicType t) {
 717   return (t == T_OBJECT || t == T_ARRAY);
 718 }
 719 
 720 inline bool is_integral_type(BasicType t) {
 721   return is_subword_type(t) || t == T_INT || t == T_LONG;
 722 }
 723 
 724 inline bool is_non_subword_integral_type(BasicType t) {
 725   return t == T_INT || t == T_LONG;
 726 }
 727 
 728 inline bool is_floating_point_type(BasicType t) {
 729   return (t == T_FLOAT || t == T_DOUBLE);
 730 }
 731 
 732 extern char type2char_tab[T_CONFLICT+1];     // Map a BasicType to a jchar
 733 inline char type2char(BasicType t) { return (uint)t < T_CONFLICT+1 ? type2char_tab[t] : 0; }
 734 extern int type2size[T_CONFLICT+1];         // Map BasicType to result stack elements
 735 extern const char* type2name_tab[T_CONFLICT+1];     // Map a BasicType to a jchar
 736 inline const char* type2name(BasicType t) { return (uint)t < T_CONFLICT+1 ? type2name_tab[t] : NULL; }
 737 extern BasicType name2type(const char* name);
 738 
 739 inline jlong max_signed_integer(BasicType bt) {
 740   if (bt == T_INT) {
 741     return max_jint;
 742   }
 743   assert(bt == T_LONG, "unsupported");
 744   return max_jlong;
 745 }
 746 
 747 inline jlong min_signed_integer(BasicType bt) {
< prev index next >