Mercurial > hg > graal-jvmci-8
diff src/share/vm/shark/sharkIntrinsics.cpp @ 4762:069ab3f976d3
7118863: Move sizeof(klassOopDesc) into the *Klass::*_offset_in_bytes() functions
Summary: Moved sizeof(klassOopDesc), changed the return type to ByteSize and removed the _in_bytes suffix.
Reviewed-by: never, bdelsart, coleenp, jrose
author | stefank |
---|---|
date | Wed, 07 Dec 2011 11:35:03 +0100 |
parents | f95d63e2154a |
children | 2cd5e15048e6 |
line wrap: on
line diff
--- a/src/share/vm/shark/sharkIntrinsics.cpp Tue Dec 20 00:55:02 2011 -0800 +++ b/src/share/vm/shark/sharkIntrinsics.cpp Wed Dec 07 11:35:03 2011 +0100 @@ -213,17 +213,11 @@ SharkType::oop_type(), "klass"); - Value *klass_part = builder()->CreateAddressOfStructEntry( - klass, - in_ByteSize(klassOopDesc::klass_part_offset_in_bytes()), - SharkType::klass_type(), - "klass_part"); - state()->push( SharkValue::create_jobject( builder()->CreateValueOfStructEntry( - klass_part, - in_ByteSize(Klass::java_mirror_offset_in_bytes()), + klass, + Klass::java_mirror_offset(), SharkType::oop_type(), "java_mirror"), true));