29 #include "code/debugInfoRec.hpp" 30 #include "code/icBuffer.hpp" 31 #include "code/vtableStubs.hpp" 32 #include "interpreter/interpreter.hpp" 33 #include "oops/compiledICHolderOop.hpp" 34 #include "prims/jvmtiRedefineClassesTrace.hpp" 35 #include "runtime/sharedRuntime.hpp" 36 #include "runtime/vframeArray.hpp" 37 #include "vmreg_zero.inline.hpp" 38 #ifdef COMPILER1 39 #include "c1/c1_Runtime1.hpp" 40 #endif 41 #ifdef COMPILER2 42 #include "opto/runtime.hpp" 43 #endif 44 #ifdef SHARK 45 #include "compiler/compileBroker.hpp" 46 #include "shark/sharkCompiler.hpp" 47 #endif 48 49 DeoptimizationBlob *SharedRuntime::_deopt_blob; 50 SafepointBlob *SharedRuntime::_polling_page_safepoint_handler_blob; 51 SafepointBlob *SharedRuntime::_polling_page_return_handler_blob; 52 RuntimeStub *SharedRuntime::_wrong_method_blob; 53 RuntimeStub *SharedRuntime::_ic_miss_blob; 54 RuntimeStub *SharedRuntime::_resolve_opt_virtual_call_blob; 55 RuntimeStub *SharedRuntime::_resolve_virtual_call_blob; 56 RuntimeStub *SharedRuntime::_resolve_static_call_blob; 57 58 int SharedRuntime::java_calling_convention(const BasicType *sig_bt, 59 VMRegPair *regs, 60 int total_args_passed, 61 int is_outgoing) { 62 return 0; 63 } 64 65 AdapterHandlerEntry* SharedRuntime::generate_i2c2i_adapters( 66 MacroAssembler *masm, 67 int total_args_passed, 68 int comp_args_on_stack, 69 const BasicType *sig_bt, 70 const VMRegPair *regs, 71 AdapterFingerPrint *fingerprint) { 72 return AdapterHandlerLibrary::new_entry( 73 fingerprint, 74 ShouldNotCallThisStub(), 75 ShouldNotCallThisStub(), 76 ShouldNotCallThisStub()); 97 98 int Deoptimization::last_frame_adjust(int callee_parameters, 99 int callee_locals) { 100 return 0; 101 } 102 103 uint SharedRuntime::out_preserve_stack_slots() { 104 ShouldNotCallThis(); 105 } 106 107 static RuntimeStub* generate_empty_runtime_stub(const char* name) { 108 CodeBuffer buffer(name, 0, 0); 109 return RuntimeStub::new_runtime_stub(name, &buffer, 0, 0, NULL, false); 110 } 111 112 static SafepointBlob* generate_empty_safepoint_blob() { 113 CodeBuffer buffer("handler_blob", 0, 0); 114 return SafepointBlob::create(&buffer, NULL, 0); 115 } 116 117 void SharedRuntime::generate_stubs() { 118 _wrong_method_blob = 119 generate_empty_runtime_stub("wrong_method_stub"); 120 _ic_miss_blob = 121 generate_empty_runtime_stub("ic_miss_stub"); 122 _resolve_opt_virtual_call_blob = 123 generate_empty_runtime_stub("resolve_opt_virtual_call"); 124 _resolve_virtual_call_blob = 125 generate_empty_runtime_stub("resolve_virtual_call"); 126 _resolve_static_call_blob = 127 generate_empty_runtime_stub("resolve_static_call"); 128 129 _polling_page_safepoint_handler_blob = 130 generate_empty_safepoint_blob(); 131 _polling_page_return_handler_blob = 132 generate_empty_safepoint_blob(); 133 } 134 135 int SharedRuntime::c_calling_convention(const BasicType *sig_bt, 136 VMRegPair *regs, 137 int total_args_passed) { 138 ShouldNotCallThis(); 139 } | 29 #include "code/debugInfoRec.hpp" 30 #include "code/icBuffer.hpp" 31 #include "code/vtableStubs.hpp" 32 #include "interpreter/interpreter.hpp" 33 #include "oops/compiledICHolderOop.hpp" 34 #include "prims/jvmtiRedefineClassesTrace.hpp" 35 #include "runtime/sharedRuntime.hpp" 36 #include "runtime/vframeArray.hpp" 37 #include "vmreg_zero.inline.hpp" 38 #ifdef COMPILER1 39 #include "c1/c1_Runtime1.hpp" 40 #endif 41 #ifdef COMPILER2 42 #include "opto/runtime.hpp" 43 #endif 44 #ifdef SHARK 45 #include "compiler/compileBroker.hpp" 46 #include "shark/sharkCompiler.hpp" 47 #endif 48 49 50 int SharedRuntime::java_calling_convention(const BasicType *sig_bt, 51 VMRegPair *regs, 52 int total_args_passed, 53 int is_outgoing) { 54 return 0; 55 } 56 57 AdapterHandlerEntry* SharedRuntime::generate_i2c2i_adapters( 58 MacroAssembler *masm, 59 int total_args_passed, 60 int comp_args_on_stack, 61 const BasicType *sig_bt, 62 const VMRegPair *regs, 63 AdapterFingerPrint *fingerprint) { 64 return AdapterHandlerLibrary::new_entry( 65 fingerprint, 66 ShouldNotCallThisStub(), 67 ShouldNotCallThisStub(), 68 ShouldNotCallThisStub()); 89 90 int Deoptimization::last_frame_adjust(int callee_parameters, 91 int callee_locals) { 92 return 0; 93 } 94 95 uint SharedRuntime::out_preserve_stack_slots() { 96 ShouldNotCallThis(); 97 } 98 99 static RuntimeStub* generate_empty_runtime_stub(const char* name) { 100 CodeBuffer buffer(name, 0, 0); 101 return RuntimeStub::new_runtime_stub(name, &buffer, 0, 0, NULL, false); 102 } 103 104 static SafepointBlob* generate_empty_safepoint_blob() { 105 CodeBuffer buffer("handler_blob", 0, 0); 106 return SafepointBlob::create(&buffer, NULL, 0); 107 } 108 109 static DeoptimizationBlob* generate_empty_deopt_blob() { 110 CodeBuffer buffer("handler_blob", 0, 0); 111 return DeoptimizationBlob::create(&buffer, NULL, 0, 0, 0, 0); 112 } 113 114 115 void SharedRuntime::generate_deopt_blob() { 116 _deopt_blob = generate_empty_deopt_blob(); 117 } 118 119 SafepointBlob* SharedRuntime::generate_handler_blob(address call_ptr, bool cause_return) { 120 return generate_empty_safepoint_blob(); 121 } 122 123 RuntimeStub* SharedRuntime::generate_resolve_blob(address destination, const char* name) { 124 return generate_empty_runtime_stub("resolve_blob"); 125 } 126 127 int SharedRuntime::c_calling_convention(const BasicType *sig_bt, 128 VMRegPair *regs, 129 int total_args_passed) { 130 ShouldNotCallThis(); 131 } |