hotspot/src/cpu/zero/vm/sharedRuntime_zero.cpp

Print this page


   1 /*
   2  * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
   3  * Copyright 2007, 2008, 2009, 2010 Red Hat, Inc.
   4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5  *
   6  * This code is free software; you can redistribute it and/or modify it
   7  * under the terms of the GNU General Public License version 2 only, as
   8  * published by the Free Software Foundation.
   9  *
  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  *


  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());
  77 }
  78 
  79 nmethod *SharedRuntime::generate_native_wrapper(MacroAssembler *masm,
  80                                                 methodHandle method,
  81                                                 int total_in_args,
  82                                                 int comp_args_on_stack,
  83                                                 BasicType *in_sig_bt,
  84                                                 VMRegPair *in_regs,

  85                                                 BasicType ret_type) {
  86 #ifdef SHARK
  87   return SharkCompiler::compiler()->generate_native_wrapper(masm,
  88                                                             method,
  89                                                             in_sig_bt,

  90                                                             ret_type);
  91 #else
  92   ShouldNotCallThis();
  93 #endif // SHARK
  94 }
  95 
  96 int Deoptimization::last_frame_adjust(int callee_parameters,
  97                                       int callee_locals) {
  98   return 0;
  99 }
 100 
 101 uint SharedRuntime::out_preserve_stack_slots() {
 102   ShouldNotCallThis();
 103 }
 104 
 105 static RuntimeStub* generate_empty_runtime_stub(const char* name) {
 106   CodeBuffer buffer(name, 0, 0);
 107   return RuntimeStub::new_runtime_stub(name, &buffer, 0, 0, NULL, false);
 108 }
 109 


   1 /*
   2  * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
   3  * Copyright 2007, 2008, 2009, 2010, 2011 Red Hat, Inc.
   4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5  *
   6  * This code is free software; you can redistribute it and/or modify it
   7  * under the terms of the GNU General Public License version 2 only, as
   8  * published by the Free Software Foundation.
   9  *
  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  *


  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());
  77 }
  78 
  79 nmethod *SharedRuntime::generate_native_wrapper(MacroAssembler *masm,
  80                                                 methodHandle method,
  81                                                 int compile_id,
  82                                                 int total_args_passed,
  83                                                 int max_arg,
  84                                                 BasicType *sig_bt,
  85                                                 VMRegPair *regs,
  86                                                 BasicType ret_type) {
  87 #ifdef SHARK
  88   return SharkCompiler::compiler()->generate_native_wrapper(masm,
  89                                                             method,
  90                                                             compile_id,
  91                                                             sig_bt,
  92                                                             ret_type);
  93 #else
  94   ShouldNotCallThis();
  95 #endif // SHARK
  96 }
  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