8275201: C2: hide klass() accessor from TypeOopPtr and typeKlassPtr subclasses

Reviewed-by: vlivanov, iveresov
This commit is contained in:
Roland Westrelin 2022-05-11 07:25:49 +00:00
parent 6586e5ae37
commit aa7ccdf445
33 changed files with 1046 additions and 666 deletions

View file

@ -713,8 +713,8 @@ inline bool is_double_word_type(BasicType t) {
return (t == T_DOUBLE || t == T_LONG);
}
inline bool is_reference_type(BasicType t) {
return (t == T_OBJECT || t == T_ARRAY);
inline bool is_reference_type(BasicType t, bool include_narrow_oop = false) {
return (t == T_OBJECT || t == T_ARRAY || (include_narrow_oop && t == T_NARROWOOP));
}
inline bool is_integral_type(BasicType t) {