mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
6705887: Compressed Oops: generate x64 addressing and implicit null checks with narrow oops
Generate addresses and implicit null checks with narrow oops to avoid decoding. Reviewed-by: jrose, never
This commit is contained in:
parent
646ceb4a45
commit
a1f50998ae
20 changed files with 138 additions and 81 deletions
|
@ -1625,14 +1625,10 @@ Node *LoadKlassNode::make( PhaseGVN& gvn, Node *mem, Node *adr, const TypePtr* a
|
|||
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;
|
||||
#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);
|
||||
}
|
||||
|
||||
//------------------------------Value------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue