Mercurial > hg > graal-jvmci-8
comparison src/cpu/sparc/vm/jvmciCodeInstaller_sparc.cpp @ 22721:510846133438
8139589: [JVMCI] Using fthrow when throwing JVMCIError.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Tue, 03 Nov 2015 16:55:51 +0100 |
parents | 316e768645c0 |
children | e5b5170606a2 |
comparison
equal
deleted
inserted
replaced
22720:48fde4d03767 | 22721:510846133438 |
---|---|
113 } else if (inst->is_sethi()) { | 113 } else if (inst->is_sethi()) { |
114 NativeJump* jump = nativeJump_at(pc); | 114 NativeJump* jump = nativeJump_at(pc); |
115 jump->set_jump_destination((address) foreign_call_destination); | 115 jump->set_jump_destination((address) foreign_call_destination); |
116 _instructions->relocate(jump->instruction_address(), runtime_call_Relocation::spec()); | 116 _instructions->relocate(jump->instruction_address(), runtime_call_Relocation::spec()); |
117 } else { | 117 } else { |
118 JVMCI_ERROR(err_msg("unknown call or jump instruction at " PTR_FORMAT, p2i(pc))); | 118 JVMCI_ERROR("unknown call or jump instruction at " PTR_FORMAT, p2i(pc)); |
119 } | 119 } |
120 TRACE_jvmci_3("relocating (foreign call) at %p", inst); | 120 TRACE_jvmci_3("relocating (foreign call) at %p", inst); |
121 } | 121 } |
122 | 122 |
123 void CodeInstaller::pd_relocate_JavaMethod(Handle hotspot_method, jint pc_offset, TRAPS) { | 123 void CodeInstaller::pd_relocate_JavaMethod(Handle hotspot_method, jint pc_offset, TRAPS) { |
195 } else if(jvmci_reg < 96) { | 195 } else if(jvmci_reg < 96) { |
196 floatRegisterNumber = 2 * (jvmci_reg - 64); | 196 floatRegisterNumber = 2 * (jvmci_reg - 64); |
197 } else if(jvmci_reg < 112) { | 197 } else if(jvmci_reg < 112) { |
198 floatRegisterNumber = 4 * (jvmci_reg - 96); | 198 floatRegisterNumber = 4 * (jvmci_reg - 96); |
199 } else { | 199 } else { |
200 JVMCI_ERROR_NULL(err_msg("invalid register number: %d", jvmci_reg)); | 200 JVMCI_ERROR_NULL("invalid register number: %d", jvmci_reg); |
201 } | 201 } |
202 return as_FloatRegister(floatRegisterNumber)->as_VMReg(); | 202 return as_FloatRegister(floatRegisterNumber)->as_VMReg(); |
203 } | 203 } |
204 } | 204 } |
205 | 205 |