hotspot/src/share/vm/utilities/globalDefinitions.hpp
changeset 2534 08dac9ce0cd7
parent 2131 98f9cef66a34
child 2570 ecc7862946d4
equal deleted inserted replaced
2533:9aa50ba9a67f 2534:08dac9ce0cd7
   404   T_ILLEGAL  = 99
   404   T_ILLEGAL  = 99
   405 };
   405 };
   406 
   406 
   407 inline bool is_java_primitive(BasicType t) {
   407 inline bool is_java_primitive(BasicType t) {
   408   return T_BOOLEAN <= t && t <= T_LONG;
   408   return T_BOOLEAN <= t && t <= T_LONG;
       
   409 }
       
   410 
       
   411 inline bool is_subword_type(BasicType t) {
       
   412   // these guys are processed exactly like T_INT in calling sequences:
       
   413   return (t == T_BOOLEAN || t == T_CHAR || t == T_BYTE || t == T_SHORT);
       
   414 }
       
   415 
       
   416 inline bool is_signed_subword_type(BasicType t) {
       
   417   return (t == T_BYTE || t == T_SHORT);
   409 }
   418 }
   410 
   419 
   411 // Convert a char from a classfile signature to a BasicType
   420 // Convert a char from a classfile signature to a BasicType
   412 inline BasicType char2type(char c) {
   421 inline BasicType char2type(char c) {
   413   switch( c ) {
   422   switch( c ) {