350 return (BasicType) btvalue; |
350 return (BasicType) btvalue; |
351 } |
351 } |
352 static int layout_helper_log2_element_size(jint lh) { |
352 static int layout_helper_log2_element_size(jint lh) { |
353 assert(lh < (jint)_lh_neutral_value, "must be array"); |
353 assert(lh < (jint)_lh_neutral_value, "must be array"); |
354 int l2esz = (lh >> _lh_log2_element_size_shift) & _lh_log2_element_size_mask; |
354 int l2esz = (lh >> _lh_log2_element_size_shift) & _lh_log2_element_size_mask; |
355 assert(l2esz <= LogBitsPerLong, "sanity"); |
355 assert(l2esz <= LogBitsPerLong, |
|
356 err_msg("sanity. l2esz: 0x%x for lh: 0x%x", (uint)l2esz, (uint)lh)); |
356 return l2esz; |
357 return l2esz; |
357 } |
358 } |
358 static jint array_layout_helper(jint tag, int hsize, BasicType etype, int log2_esize) { |
359 static jint array_layout_helper(jint tag, int hsize, BasicType etype, int log2_esize) { |
359 return (tag << _lh_array_tag_shift) |
360 return (tag << _lh_array_tag_shift) |
360 | (hsize << _lh_header_size_shift) |
361 | (hsize << _lh_header_size_shift) |