src/share/vm/opto/graphKit.cpp

changeset 464
d5fc211aea19
parent 458
9bdad1bb1c31
child 498
eac007780a58
equal deleted inserted replaced
463:67914967a4b5 464:d5fc211aea19
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) {

mercurial