< prev index next >

src/hotspot/share/runtime/fieldType.hpp

Print this page
rev 55090 : secret-sfac


  48   ~FieldArrayInfo() { if (_object_key != NULL) _object_key->decrement_refcount(); }
  49 };
  50 
  51 
  52 class FieldType: public AllStatic {
  53  private:
  54   static bool is_valid_array_signature(Symbol* signature);
  55  public:
  56 
  57   // Return basic type
  58   static BasicType basic_type(Symbol* signature);
  59 
  60   // Testing
  61   static bool is_array(Symbol* signature) { return signature->utf8_length() > 1 && signature->char_at(0) == '[' && is_valid_array_signature(signature); }
  62 
  63   static bool is_obj(Symbol* signature) {
  64      int sig_length = signature->utf8_length();
  65      // Must start with 'L' and end with ';'
  66      return (sig_length >= 2 &&
  67              (signature->char_at(0) == 'L') &&
  68              (signature->char_at(sig_length - 1) == ';'));
  69   }
  70 
  71   static bool is_valuetype(Symbol* signature) {
  72     return signature->is_Q_signature();
  73     }
  74 
  75   // Parse field and extract array information. Works for T_ARRAY only.
  76   static BasicType get_array_info(Symbol* signature, FieldArrayInfo& ai, TRAPS);
  77 };
  78 
  79 #endif // SHARE_RUNTIME_FIELDTYPE_HPP


  48   ~FieldArrayInfo() { if (_object_key != NULL) _object_key->decrement_refcount(); }
  49 };
  50 
  51 
  52 class FieldType: public AllStatic {
  53  private:
  54   static bool is_valid_array_signature(Symbol* signature);
  55  public:
  56 
  57   // Return basic type
  58   static BasicType basic_type(Symbol* signature);
  59 
  60   // Testing
  61   static bool is_array(Symbol* signature) { return signature->utf8_length() > 1 && signature->char_at(0) == '[' && is_valid_array_signature(signature); }
  62 
  63   static bool is_obj(Symbol* signature) {
  64      int sig_length = signature->utf8_length();
  65      // Must start with 'L' and end with ';'
  66      return (sig_length >= 2 &&
  67              (signature->char_at(0) == 'L') &&
  68              (signature->ends_with(';')));
  69   }
  70 
  71   static bool is_valuetype(Symbol* signature) {
  72     return signature->is_Q_signature();
  73     }
  74 
  75   // Parse field and extract array information. Works for T_ARRAY only.
  76   static BasicType get_array_info(Symbol* signature, FieldArrayInfo& ai, TRAPS);
  77 };
  78 
  79 #endif // SHARE_RUNTIME_FIELDTYPE_HPP
< prev index next >