src/hotspot/share/runtime/fieldType.hpp
changeset 51997 9ce37fa2e179
parent 49354 c6f2f91a1b4e
child 53244 9807daeb47c4
equal deleted inserted replaced
51996:84743156e780 51997:9ce37fa2e179
    56 
    56 
    57   // Return basic type
    57   // Return basic type
    58   static BasicType basic_type(Symbol* signature);
    58   static BasicType basic_type(Symbol* signature);
    59 
    59 
    60   // Testing
    60   // Testing
    61   static bool is_array(Symbol* signature) { return signature->utf8_length() > 1 && signature->byte_at(0) == '[' && is_valid_array_signature(signature); }
    61   static bool is_array(Symbol* signature) { return signature->utf8_length() > 1 && signature->char_at(0) == '[' && is_valid_array_signature(signature); }
    62 
    62 
    63   static bool is_obj(Symbol* signature) {
    63   static bool is_obj(Symbol* signature) {
    64      int sig_length = signature->utf8_length();
    64      int sig_length = signature->utf8_length();
    65      // Must start with 'L' and end with ';'
    65      // Must start with 'L' and end with ';'
    66      return (sig_length >= 2 &&
    66      return (sig_length >= 2 &&
    67              (signature->byte_at(0) == 'L') &&
    67              (signature->char_at(0) == 'L') &&
    68              (signature->byte_at(sig_length - 1) == ';'));
    68              (signature->char_at(sig_length - 1) == ';'));
    69   }
    69   }
    70 
    70 
    71   // Parse field and extract array information. Works for T_ARRAY only.
    71   // Parse field and extract array information. Works for T_ARRAY only.
    72   static BasicType get_array_info(Symbol* signature, FieldArrayInfo& ai, TRAPS);
    72   static BasicType get_array_info(Symbol* signature, FieldArrayInfo& ai, TRAPS);
    73 };
    73 };