Mercurial > hg > graal-jvmci-8
comparison src/cpu/x86/vm/jvmciCodeInstaller_x86.cpp @ 22684:ceca35d52380
removed ununsed code
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 15 Oct 2015 17:30:42 +0200 |
parents | 3f6488b29c1a |
children | 316e768645c0 |
comparison
equal
deleted
inserted
replaced
22683:2935e7fbd941 | 22684:ceca35d52380 |
---|---|
111 assert(disp == (jint) disp, "disp doesn't fit in 32 bits"); | 111 assert(disp == (jint) disp, "disp doesn't fit in 32 bits"); |
112 *((jint*) operand) = (jint) disp; | 112 *((jint*) operand) = (jint) disp; |
113 | 113 |
114 _instructions->relocate(pc, section_word_Relocation::spec((address) dest, CodeBuffer::SECT_CONSTS), Assembler::disp32_operand); | 114 _instructions->relocate(pc, section_word_Relocation::spec((address) dest, CodeBuffer::SECT_CONSTS), Assembler::disp32_operand); |
115 TRACE_jvmci_3("relocating at %p/%p with destination at %p (%d)", pc, operand, dest, data_offset); | 115 TRACE_jvmci_3("relocating at %p/%p with destination at %p (%d)", pc, operand, dest, data_offset); |
116 } | |
117 | |
118 void CodeInstaller::pd_relocate_CodeBlob(CodeBlob* cb, NativeInstruction* inst) { | |
119 if (cb->is_nmethod()) { | |
120 nmethod* nm = (nmethod*) cb; | |
121 nativeJump_at((address)inst)->set_jump_destination(nm->verified_entry_point()); | |
122 } else { | |
123 nativeJump_at((address)inst)->set_jump_destination(cb->code_begin()); | |
124 } | |
125 _instructions->relocate((address)inst, runtime_call_Relocation::spec(), Assembler::call32_operand); | |
126 } | 116 } |
127 | 117 |
128 void CodeInstaller::pd_relocate_ForeignCall(NativeInstruction* inst, jlong foreign_call_destination) { | 118 void CodeInstaller::pd_relocate_ForeignCall(NativeInstruction* inst, jlong foreign_call_destination) { |
129 address pc = (address) inst; | 119 address pc = (address) inst; |
130 if (inst->is_call()) { | 120 if (inst->is_call()) { |