comparison src/share/vm/c1/c1_LIRGenerator.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 973293defacd
children 9164b8236699
comparison
equal deleted inserted replaced
4761:65149e74c706 4762:069ab3f976d3
1254 CodeEmitInfo* info = NULL; 1254 CodeEmitInfo* info = NULL;
1255 if (x->needs_null_check()) { 1255 if (x->needs_null_check()) {
1256 info = state_for(x); 1256 info = state_for(x);
1257 } 1257 }
1258 __ move(new LIR_Address(rcvr.result(), oopDesc::klass_offset_in_bytes(), T_OBJECT), result, info); 1258 __ move(new LIR_Address(rcvr.result(), oopDesc::klass_offset_in_bytes(), T_OBJECT), result, info);
1259 __ move_wide(new LIR_Address(result, Klass::java_mirror_offset_in_bytes() + 1259 __ move_wide(new LIR_Address(result, in_bytes(Klass::java_mirror_offset()), T_OBJECT), result);
1260 klassOopDesc::klass_part_offset_in_bytes(), T_OBJECT), result);
1261 } 1260 }
1262 1261
1263 1262
1264 // Example: Thread.currentThread() 1263 // Example: Thread.currentThread()
1265 void LIRGenerator::do_currentThread(Intrinsic* x) { 1264 void LIRGenerator::do_currentThread(Intrinsic* x) {