comparison 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
comparison
equal deleted inserted replaced
4761:65149e74c706 4762:069ab3f976d3
211 state()->pop()->jobject_value(), 211 state()->pop()->jobject_value(),
212 in_ByteSize(oopDesc::klass_offset_in_bytes()), 212 in_ByteSize(oopDesc::klass_offset_in_bytes()),
213 SharkType::oop_type(), 213 SharkType::oop_type(),
214 "klass"); 214 "klass");
215 215
216 Value *klass_part = builder()->CreateAddressOfStructEntry(
217 klass,
218 in_ByteSize(klassOopDesc::klass_part_offset_in_bytes()),
219 SharkType::klass_type(),
220 "klass_part");
221
222 state()->push( 216 state()->push(
223 SharkValue::create_jobject( 217 SharkValue::create_jobject(
224 builder()->CreateValueOfStructEntry( 218 builder()->CreateValueOfStructEntry(
225 klass_part, 219 klass,
226 in_ByteSize(Klass::java_mirror_offset_in_bytes()), 220 Klass::java_mirror_offset(),
227 SharkType::oop_type(), 221 SharkType::oop_type(),
228 "java_mirror"), 222 "java_mirror"),
229 true)); 223 true));
230 } 224 }
231 225