< prev index next >

src/hotspot/cpu/zero/sharedRuntime_zero.cpp

Print this page
rev 47445 : 8171853: Remove Shark compiler


  24  */
  25 
  26 #include "precompiled.hpp"
  27 #include "asm/assembler.hpp"
  28 #include "assembler_zero.inline.hpp"
  29 #include "code/debugInfoRec.hpp"
  30 #include "code/icBuffer.hpp"
  31 #include "code/vtableStubs.hpp"
  32 #include "interpreter/interpreter.hpp"
  33 #include "oops/compiledICHolder.hpp"
  34 #include "runtime/sharedRuntime.hpp"
  35 #include "runtime/vframeArray.hpp"
  36 #include "vmreg_zero.inline.hpp"
  37 
  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 
  51 static address zero_null_code_stub() {
  52   address start = ShouldNotCallThisStub();
  53   return start;
  54 }
  55 
  56 int SharedRuntime::java_calling_convention(const BasicType *sig_bt,
  57                                            VMRegPair *regs,
  58                                            int total_args_passed,
  59                                            int is_outgoing) {
  60   return 0;
  61 }
  62 
  63 AdapterHandlerEntry* SharedRuntime::generate_i2c2i_adapters(
  64                         MacroAssembler *masm,
  65                         int total_args_passed,
  66                         int comp_args_on_stack,
  67                         const BasicType *sig_bt,
  68                         const VMRegPair *regs,
  69                         AdapterFingerPrint *fingerprint) {
  70   return AdapterHandlerLibrary::new_entry(
  71     fingerprint,
  72     CAST_FROM_FN_PTR(address,zero_null_code_stub),
  73     CAST_FROM_FN_PTR(address,zero_null_code_stub),
  74     CAST_FROM_FN_PTR(address,zero_null_code_stub));
  75 }
  76 
  77 nmethod *SharedRuntime::generate_native_wrapper(MacroAssembler *masm,
  78                                                 const methodHandle& method,
  79                                                 int compile_id,
  80                                                 BasicType *sig_bt,
  81                                                 VMRegPair *regs,
  82                                                 BasicType ret_type) {
  83 #ifdef SHARK
  84   return SharkCompiler::compiler()->generate_native_wrapper(masm,
  85                                                             method,
  86                                                             compile_id,
  87                                                             sig_bt,
  88                                                             ret_type);
  89 #else
  90   ShouldNotCallThis();
  91   return NULL;
  92 #endif // SHARK
  93 }
  94 
  95 int Deoptimization::last_frame_adjust(int callee_parameters,
  96                                       int callee_locals) {
  97   return 0;
  98 }
  99 
 100 uint SharedRuntime::out_preserve_stack_slots() {
 101   ShouldNotCallThis();
 102   return 0;
 103 }
 104 
 105 JRT_LEAF(void, zero_stub())
 106   ShouldNotCallThis();
 107 JRT_END
 108 
 109 static RuntimeStub* generate_empty_runtime_stub(const char* name) {
 110   return CAST_FROM_FN_PTR(RuntimeStub*,zero_stub);
 111 }
 112 




  24  */
  25 
  26 #include "precompiled.hpp"
  27 #include "asm/assembler.hpp"
  28 #include "assembler_zero.inline.hpp"
  29 #include "code/debugInfoRec.hpp"
  30 #include "code/icBuffer.hpp"
  31 #include "code/vtableStubs.hpp"
  32 #include "interpreter/interpreter.hpp"
  33 #include "oops/compiledICHolder.hpp"
  34 #include "runtime/sharedRuntime.hpp"
  35 #include "runtime/vframeArray.hpp"
  36 #include "vmreg_zero.inline.hpp"
  37 
  38 #ifdef COMPILER1
  39 #include "c1/c1_Runtime1.hpp"
  40 #endif
  41 #ifdef COMPILER2
  42 #include "opto/runtime.hpp"
  43 #endif





  44 
  45 
  46 static address zero_null_code_stub() {
  47   address start = ShouldNotCallThisStub();
  48   return start;
  49 }
  50 
  51 int SharedRuntime::java_calling_convention(const BasicType *sig_bt,
  52                                            VMRegPair *regs,
  53                                            int total_args_passed,
  54                                            int is_outgoing) {
  55   return 0;
  56 }
  57 
  58 AdapterHandlerEntry* SharedRuntime::generate_i2c2i_adapters(
  59                         MacroAssembler *masm,
  60                         int total_args_passed,
  61                         int comp_args_on_stack,
  62                         const BasicType *sig_bt,
  63                         const VMRegPair *regs,
  64                         AdapterFingerPrint *fingerprint) {
  65   return AdapterHandlerLibrary::new_entry(
  66     fingerprint,
  67     CAST_FROM_FN_PTR(address,zero_null_code_stub),
  68     CAST_FROM_FN_PTR(address,zero_null_code_stub),
  69     CAST_FROM_FN_PTR(address,zero_null_code_stub));
  70 }
  71 
  72 nmethod *SharedRuntime::generate_native_wrapper(MacroAssembler *masm,
  73                                                 const methodHandle& method,
  74                                                 int compile_id,
  75                                                 BasicType *sig_bt,
  76                                                 VMRegPair *regs,
  77                                                 BasicType ret_type) {







  78   ShouldNotCallThis();
  79   return NULL;

  80 }
  81 
  82 int Deoptimization::last_frame_adjust(int callee_parameters,
  83                                       int callee_locals) {
  84   return 0;
  85 }
  86 
  87 uint SharedRuntime::out_preserve_stack_slots() {
  88   ShouldNotCallThis();
  89   return 0;
  90 }
  91 
  92 JRT_LEAF(void, zero_stub())
  93   ShouldNotCallThis();
  94 JRT_END
  95 
  96 static RuntimeStub* generate_empty_runtime_stub(const char* name) {
  97   return CAST_FROM_FN_PTR(RuntimeStub*,zero_stub);
  98 }
  99 


< prev index next >