Mercurial > hg > graal-jvmci-8
comparison src/share/vm/opto/graphKit.cpp @ 29:d5fc211aea19
6633953: type2aelembytes{T_ADDRESS} should be 8 bytes in 64 bit VM
Summary: T_ADDRESS size is defined as 'int' size (4 bytes) but C2 use it for raw pointers and as memory type for StoreP and LoadP nodes.
Reviewed-by: jrose
author | kvn |
---|---|
date | Mon, 25 Feb 2008 15:05:44 -0800 |
parents | 9bdad1bb1c31 |
children | eac007780a58 |
comparison
equal
deleted
inserted
replaced
28:67914967a4b5 | 29: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) { |