src/hotspot/share/oops/arrayKlass.hpp
changeset 51329 9c68699bebe5
parent 50752 9d62da00bf15
child 52216 b705eb06588f
equal deleted inserted replaced
51328:fad2334b2906 51329:9c68699bebe5
    71   int  array_header_in_bytes() const    { return layout_helper_header_size(layout_helper()); }
    71   int  array_header_in_bytes() const    { return layout_helper_header_size(layout_helper()); }
    72   int  log2_element_size() const        { return layout_helper_log2_element_size(layout_helper()); }
    72   int  log2_element_size() const        { return layout_helper_log2_element_size(layout_helper()); }
    73   // type of elements (T_OBJECT for both oop arrays and array-arrays)
    73   // type of elements (T_OBJECT for both oop arrays and array-arrays)
    74   BasicType element_type() const        { return layout_helper_element_type(layout_helper()); }
    74   BasicType element_type() const        { return layout_helper_element_type(layout_helper()); }
    75 
    75 
    76   virtual Klass* java_super() const;//{ return SystemDictionary::Object_klass(); }
    76   virtual InstanceKlass* java_super() const;//{ return SystemDictionary::Object_klass(); }
    77 
    77 
    78   // Allocation
    78   // Allocation
    79   // Sizes points to the first dimension of the array, subsequent dimensions
    79   // Sizes points to the first dimension of the array, subsequent dimensions
    80   // are always in higher memory.  The callers of these set that up.
    80   // are always in higher memory.  The callers of these set that up.
    81   virtual oop multi_allocate(int rank, jint* sizes, TRAPS);
    81   virtual oop multi_allocate(int rank, jint* sizes, TRAPS);
    98     assert(k->is_array_klass(), "cast to ArrayKlass");
    98     assert(k->is_array_klass(), "cast to ArrayKlass");
    99     return static_cast<const ArrayKlass*>(k);
    99     return static_cast<const ArrayKlass*>(k);
   100   }
   100   }
   101 
   101 
   102   GrowableArray<Klass*>* compute_secondary_supers(int num_extra_slots,
   102   GrowableArray<Klass*>* compute_secondary_supers(int num_extra_slots,
   103                                                   Array<Klass*>* transitive_interfaces);
   103                                                   Array<InstanceKlass*>* transitive_interfaces);
   104   bool compute_is_subtype_of(Klass* k);
   104   bool compute_is_subtype_of(Klass* k);
   105 
   105 
   106   // Sizing
   106   // Sizing
   107   static int static_size(int header_size);
   107   static int static_size(int header_size);
   108 
   108