88 _instructions->relocate(pc + NativeMovConstReg::sethi_offset, internal_word_Relocation::spec((address) dest)); |
88 _instructions->relocate(pc + NativeMovConstReg::sethi_offset, internal_word_Relocation::spec((address) dest)); |
89 _instructions->relocate(pc + NativeMovConstReg::add_offset, internal_word_Relocation::spec((address) dest)); |
89 _instructions->relocate(pc + NativeMovConstReg::add_offset, internal_word_Relocation::spec((address) dest)); |
90 } |
90 } |
91 TRACE_jvmci_3("relocating at " PTR_FORMAT " (+%d) with destination at %d", p2i(pc), pc_offset, data_offset); |
91 TRACE_jvmci_3("relocating at " PTR_FORMAT " (+%d) with destination at %d", p2i(pc), pc_offset, data_offset); |
92 }else { |
92 }else { |
93 int const_size = align_size_up(_constants->end()-_constants->start(), CodeEntryAlignment); |
93 int const_size = align_up(_constants->end()-_constants->start(), CodeEntryAlignment); |
94 NativeMovRegMem* load = nativeMovRegMem_at(pc); |
94 NativeMovRegMem* load = nativeMovRegMem_at(pc); |
95 // This offset must match with SPARCLoadConstantTableBaseOp.emitCode |
95 // This offset must match with SPARCLoadConstantTableBaseOp.emitCode |
96 load->set_offset(- (const_size - data_offset + Assembler::min_simm13())); |
96 load->set_offset(- (const_size - data_offset + Assembler::min_simm13())); |
97 TRACE_jvmci_3("relocating ld at " PTR_FORMAT " (+%d) with destination at %d", p2i(pc), pc_offset, data_offset); |
97 TRACE_jvmci_3("relocating ld at " PTR_FORMAT " (+%d) with destination at %d", p2i(pc), pc_offset, data_offset); |
98 } |
98 } |