Skip to content

Commit

Permalink
casting
Browse files Browse the repository at this point in the history
  • Loading branch information
suchismith1993 committed Sep 3, 2024
1 parent 7c7de0e commit ba4887b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/hotspot/cpu/ppc/macroAssembler_ppc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,11 @@ class MacroAssembler: public Assembler {
// Call a C function via a function descriptor and use full C
// calling conventions. Updates and returns _last_calls_return_pc.
address call_c(Register function_descriptor);
address call_c(const FunctionDescriptor* function_descriptor, relocInfo::relocType rt);
address call_c(address function_entry, relocInfo::relocType rt = relocInfo::none) {
return call_c((FunctionDescriptor*)function_entry, rt);
}
// For tail calls: only branch, don't link, so callee returns to caller of this function.
return call_c((const FunctionDescriptor*)function_entry, rt);
}
// For tail calls: only branch, don't link, so callee returns to caller of this function.
address call_c_and_return_to_caller(Register function_descriptor);
address call_c(const FunctionDescriptor* function_descriptor, relocInfo::relocType rt);
address call_c_using_toc(const FunctionDescriptor* function_descriptor, relocInfo::relocType rt,
Expand Down

0 comments on commit ba4887b

Please sign in to comment.