Mercurial > hg > graal-jvmci-8
diff src/cpu/x86/vm/graalCodeInstaller_x86.cpp @ 18854:b8d3f84740c7
guarded use of 64-bit only code with #ifdefs
Contributed-by: Igor Ignatyev <igor.ignatyev@oracle.com>
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 13 Jan 2015 12:59:48 +0100 |
parents | d611982fb10e |
children |
line wrap: on
line diff
--- a/src/cpu/x86/vm/graalCodeInstaller_x86.cpp Tue Jan 13 11:18:46 2015 +0100 +++ b/src/cpu/x86/vm/graalCodeInstaller_x86.cpp Tue Jan 13 12:59:48 2015 +0100 @@ -67,10 +67,14 @@ Handle obj = HotSpotObjectConstantImpl::object(constant); jobject value = JNIHandles::make_local(obj()); if (HotSpotObjectConstantImpl::compressed(constant)) { +#ifdef _LP64 address operand = Assembler::locate_operand(pc, Assembler::narrow_oop_operand); int oop_index = _oop_recorder->find_index(value); _instructions->relocate(pc, oop_Relocation::spec(oop_index), Assembler::narrow_oop_operand); TRACE_graal_3("relocating (narrow oop constant) at %p/%p", pc, operand); +#else + fatal("compressed oop on 32bit"); +#endif } else { address operand = Assembler::locate_operand(pc, Assembler::imm_operand); *((jobject*) operand) = value;