1445 |
1445 |
1446 |
1446 |
1447 //-------------------------array_element_address------------------------- |
1447 //-------------------------array_element_address------------------------- |
1448 Node* GraphKit::array_element_address(Node* ary, Node* idx, BasicType elembt, |
1448 Node* GraphKit::array_element_address(Node* ary, Node* idx, BasicType elembt, |
1449 const TypeInt* sizetype) { |
1449 const TypeInt* sizetype) { |
1450 uint shift = exact_log2(type2aelembytes[elembt]); |
1450 uint shift = exact_log2(type2aelembytes(elembt)); |
1451 uint header = arrayOopDesc::base_offset_in_bytes(elembt); |
1451 uint header = arrayOopDesc::base_offset_in_bytes(elembt); |
1452 |
1452 |
1453 // short-circuit a common case (saves lots of confusing waste motion) |
1453 // short-circuit a common case (saves lots of confusing waste motion) |
1454 jint idx_con = find_int_con(idx, -1); |
1454 jint idx_con = find_int_con(idx, -1); |
1455 if (idx_con >= 0) { |
1455 if (idx_con >= 0) { |