src/share/vm/c1/c1_LIRGenerator.cpp

Print this page
rev 3688 : 7054512: Compress class pointers after perm gen removal
Summary: support of compress class pointers in the compilers.
Reviewed-by:

*** 1284,1294 **** // need to perform the null check on the rcvr CodeEmitInfo* info = NULL; if (x->needs_null_check()) { info = state_for(x); } ! __ move(new LIR_Address(rcvr.result(), oopDesc::klass_offset_in_bytes(), UseCompressedKlassPointers ? T_OBJECT : T_ADDRESS), result, info); __ move_wide(new LIR_Address(result, in_bytes(Klass::java_mirror_offset()), T_OBJECT), result); } // Example: Thread.currentThread() --- 1284,1294 ---- // need to perform the null check on the rcvr CodeEmitInfo* info = NULL; if (x->needs_null_check()) { info = state_for(x); } ! __ move(new LIR_Address(rcvr.result(), oopDesc::klass_offset_in_bytes(), T_ADDRESS), result, info); __ move_wide(new LIR_Address(result, in_bytes(Klass::java_mirror_offset()), T_OBJECT), result); } // Example: Thread.currentThread()