src/cpu/zero/vm/sharedRuntime_zero.cpp

Print this page
rev 5186 : 8024342: PPC64 (part 111): Support for C calling conventions that require 64-bit ints.
Summary: Some platforms, as ppc and s390x/zArch require that 32-bit ints are passed as 64-bit values to C functions. This change adds support to adapt the signature and to issue proper casts to c2-compiled stubs. The functions are used in generate_native_wrapper(). Adapt signature in PhaseIdealLoop::intrinsify_fill().


 122 
 123 void SharedRuntime::generate_deopt_blob() {
 124   _deopt_blob = generate_empty_deopt_blob();
 125 }
 126 
 127 SafepointBlob* SharedRuntime::generate_handler_blob(address call_ptr, int poll_type) {
 128   return generate_empty_safepoint_blob();
 129 }
 130 
 131 RuntimeStub* SharedRuntime::generate_resolve_blob(address destination, const char* name) {
 132   return generate_empty_runtime_stub("resolve_blob");
 133 }
 134 
 135 
 136 int SharedRuntime::c_calling_convention(const BasicType *sig_bt,
 137                                          VMRegPair *regs,
 138                                          int total_args_passed) {
 139   ShouldNotCallThis();
 140   return 0;
 141 }







 122 
 123 void SharedRuntime::generate_deopt_blob() {
 124   _deopt_blob = generate_empty_deopt_blob();
 125 }
 126 
 127 SafepointBlob* SharedRuntime::generate_handler_blob(address call_ptr, int poll_type) {
 128   return generate_empty_safepoint_blob();
 129 }
 130 
 131 RuntimeStub* SharedRuntime::generate_resolve_blob(address destination, const char* name) {
 132   return generate_empty_runtime_stub("resolve_blob");
 133 }
 134 
 135 
 136 int SharedRuntime::c_calling_convention(const BasicType *sig_bt,
 137                                          VMRegPair *regs,
 138                                          int total_args_passed) {
 139   ShouldNotCallThis();
 140   return 0;
 141 }
 142 
 143 // Do we need to convert ints to longs for c calls?
 144 bool SharedRuntime::c_calling_convention_requires_ints_as_longs() {
 145   ShouldNotCallThis();
 146 }