Mercurial > hg > truffle
diff src/share/vm/opto/memnode.cpp @ 168:7793bd37a336
6705887: Compressed Oops: generate x64 addressing and implicit null checks with narrow oops
Summary: Generate addresses and implicit null checks with narrow oops to avoid decoding.
Reviewed-by: jrose, never
author | kvn |
---|---|
date | Thu, 29 May 2008 12:04:14 -0700 |
parents | c436414a719e |
children | 9148c65abefc |
line wrap: on
line diff
--- a/src/share/vm/opto/memnode.cpp Wed May 28 21:06:24 2008 -0700 +++ b/src/share/vm/opto/memnode.cpp Thu May 29 12:04:14 2008 -0700 @@ -1625,14 +1625,10 @@ const TypeNarrowOop* narrowtype = tk->is_oopptr()->make_narrowoop(); Node* load_klass = gvn.transform(new (C, 3) LoadNKlassNode(ctl, mem, adr, at, narrowtype)); return DecodeNNode::decode(&gvn, load_klass); - } else + } #endif - { - assert(!adr_type->is_ptr_to_narrowoop(), "should have got back a narrow oop"); - return new (C, 3) LoadKlassNode(ctl, mem, adr, at, tk); - } - ShouldNotReachHere(); - return (LoadKlassNode*)NULL; + assert(!adr_type->is_ptr_to_narrowoop(), "should have got back a narrow oop"); + return new (C, 3) LoadKlassNode(ctl, mem, adr, at, tk); } //------------------------------Value------------------------------------------