1365 assert((uint)t < T_VOID+1, "range check"); |
1365 assert((uint)t < T_VOID+1, "range check"); |
1366 assert(_type_signatures[t] != NULL, "domain check"); |
1366 assert(_type_signatures[t] != NULL, "domain check"); |
1367 return _type_signatures[t]; |
1367 return _type_signatures[t]; |
1368 } |
1368 } |
1369 // inverse of type_signature; returns T_OBJECT if s is not recognized |
1369 // inverse of type_signature; returns T_OBJECT if s is not recognized |
1370 static BasicType signature_type(Symbol* s); |
1370 static BasicType signature_type(const Symbol* s); |
1371 |
1371 |
1372 static Symbol* symbol_at(SID id) { |
1372 static Symbol* symbol_at(SID id) { |
1373 assert(id >= FIRST_SID && id < SID_LIMIT, "oob"); |
1373 assert(id >= FIRST_SID && id < SID_LIMIT, "oob"); |
1374 assert(_symbols[id] != NULL, "init"); |
1374 assert(_symbols[id] != NULL, "init"); |
1375 return _symbols[id]; |
1375 return _symbols[id]; |
1376 } |
1376 } |
1377 |
1377 |
1378 // Returns symbol's SID if one is assigned, else NO_SID. |
1378 // Returns symbol's SID if one is assigned, else NO_SID. |
1379 static SID find_sid(Symbol* symbol); |
1379 static SID find_sid(const Symbol* symbol); |
1380 static SID find_sid(const char* symbol_name); |
1380 static SID find_sid(const char* symbol_name); |
1381 |
1381 |
1382 #ifndef PRODUCT |
1382 #ifndef PRODUCT |
1383 // No need for this in the product: |
1383 // No need for this in the product: |
1384 static const char* name_for(SID sid); |
1384 static const char* name_for(SID sid); |