Mercurial > hg > graal-compiler
comparison src/cpu/x86/vm/graalCodeInstaller_x86.cpp @ 18262:f7d45e2426d4
converted HotSpotObjectConstant to an interface
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 05 Nov 2014 21:07:59 +0100 |
parents | a8cff27ca2e1 |
children | d611982fb10e |
comparison
equal
deleted
inserted
replaced
18261:d66c79acfeac | 18262:f7d45e2426d4 |
---|---|
58 } | 58 } |
59 } | 59 } |
60 | 60 |
61 void CodeInstaller::pd_patch_OopConstant(int pc_offset, Handle& constant) { | 61 void CodeInstaller::pd_patch_OopConstant(int pc_offset, Handle& constant) { |
62 address pc = _instructions->start() + pc_offset; | 62 address pc = _instructions->start() + pc_offset; |
63 Handle obj = HotSpotObjectConstant::object(constant); | 63 Handle obj = HotSpotObjectConstantImpl::object(constant); |
64 jobject value = JNIHandles::make_local(obj()); | 64 jobject value = JNIHandles::make_local(obj()); |
65 if (HotSpotObjectConstant::compressed(constant)) { | 65 if (HotSpotObjectConstantImpl::compressed(constant)) { |
66 address operand = Assembler::locate_operand(pc, Assembler::narrow_oop_operand); | 66 address operand = Assembler::locate_operand(pc, Assembler::narrow_oop_operand); |
67 int oop_index = _oop_recorder->find_index(value); | 67 int oop_index = _oop_recorder->find_index(value); |
68 _instructions->relocate(pc, oop_Relocation::spec(oop_index), Assembler::narrow_oop_operand); | 68 _instructions->relocate(pc, oop_Relocation::spec(oop_index), Assembler::narrow_oop_operand); |
69 TRACE_graal_3("relocating (narrow oop constant) at %p/%p", pc, operand); | 69 TRACE_graal_3("relocating (narrow oop constant) at %p/%p", pc, operand); |
70 } else { | 70 } else { |