< prev index next >

src/hotspot/share/ci/ciType.cpp

Print this page
@@ -32,22 +32,22 @@
  
  ciType* ciType::_basic_types[T_CONFLICT+1];
  
  // ciType
  //
- // This class represents a Java reference or primitive type.
+ // This class represents a Java reference, inline type or primitive type.
  
  // ------------------------------------------------------------------
  // ciType::ciType
  //
  ciType::ciType(BasicType basic_type) : ciMetadata() {
    assert(basic_type >= T_BOOLEAN && basic_type <= T_CONFLICT, "range check");
    _basic_type = basic_type;
  }
  
  ciType::ciType(Klass* k) : ciMetadata(k) {
-   _basic_type = k->is_array_klass() ? T_ARRAY : T_OBJECT;
+   _basic_type = k->is_array_klass() ? T_ARRAY : (k->is_inline_klass() ? T_INLINE_TYPE : T_OBJECT);
  }
  
  
  // ------------------------------------------------------------------
  // ciType::is_subtype_of
< prev index next >