Mercurial > hg > graal-jvmci-8
comparison src/share/vm/opto/graphKit.cpp @ 113:ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
Summary: Compressed oops in instances, arrays, and headers. Code contributors are coleenp, phh, never, swamyv
Reviewed-by: jmasa, kamg, acorn, tbell, kvn, rasbold
author | coleenp |
---|---|
date | Sun, 13 Apr 2008 17:43:42 -0400 |
parents | 2a9af0b9cb1c |
children | c436414a719e 37f87013dfd8 |
comparison
equal
deleted
inserted
replaced
110:a49a647afe9a | 113:ba764ed4b6f2 |
---|---|
1326 Node* mem = memory(adr_idx); | 1326 Node* mem = memory(adr_idx); |
1327 Node* ld; | 1327 Node* ld; |
1328 if (require_atomic_access && bt == T_LONG) { | 1328 if (require_atomic_access && bt == T_LONG) { |
1329 ld = LoadLNode::make_atomic(C, ctl, mem, adr, adr_type, t); | 1329 ld = LoadLNode::make_atomic(C, ctl, mem, adr, adr_type, t); |
1330 } else { | 1330 } else { |
1331 ld = LoadNode::make(C, ctl, mem, adr, adr_type, t, bt); | 1331 ld = LoadNode::make(_gvn, ctl, mem, adr, adr_type, t, bt); |
1332 } | 1332 } |
1333 return _gvn.transform(ld); | 1333 return _gvn.transform(ld); |
1334 } | 1334 } |
1335 | 1335 |
1336 Node* GraphKit::store_to_memory(Node* ctl, Node* adr, Node *val, BasicType bt, | 1336 Node* GraphKit::store_to_memory(Node* ctl, Node* adr, Node *val, BasicType bt, |
1342 Node *mem = memory(adr_idx); | 1342 Node *mem = memory(adr_idx); |
1343 Node* st; | 1343 Node* st; |
1344 if (require_atomic_access && bt == T_LONG) { | 1344 if (require_atomic_access && bt == T_LONG) { |
1345 st = StoreLNode::make_atomic(C, ctl, mem, adr, adr_type, val); | 1345 st = StoreLNode::make_atomic(C, ctl, mem, adr, adr_type, val); |
1346 } else { | 1346 } else { |
1347 st = StoreNode::make(C, ctl, mem, adr, adr_type, val, bt); | 1347 st = StoreNode::make(_gvn, ctl, mem, adr, adr_type, val, bt); |
1348 } | 1348 } |
1349 st = _gvn.transform(st); | 1349 st = _gvn.transform(st); |
1350 set_memory(st, adr_idx); | 1350 set_memory(st, adr_idx); |
1351 // Back-to-back stores can only remove intermediate store with DU info | 1351 // Back-to-back stores can only remove intermediate store with DU info |
1352 // so push on worklist for optimizer. | 1352 // so push on worklist for optimizer. |