1 /*
2 * Copyright 2003-2007 Sun Microsystems, Inc. All Rights Reserved.
3 * Copyright 2007, 2008, 2009 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
21 * CA 95054 USA or visit www.sun.com if you need additional information or
22 * have any questions.
23 *
30 SafepointBlob *SharedRuntime::_polling_page_safepoint_handler_blob;
31 SafepointBlob *SharedRuntime::_polling_page_return_handler_blob;
32 RuntimeStub *SharedRuntime::_wrong_method_blob;
33 RuntimeStub *SharedRuntime::_ic_miss_blob;
34 RuntimeStub *SharedRuntime::_resolve_opt_virtual_call_blob;
35 RuntimeStub *SharedRuntime::_resolve_virtual_call_blob;
36 RuntimeStub *SharedRuntime::_resolve_static_call_blob;
37
38 int SharedRuntime::java_calling_convention(const BasicType *sig_bt,
39 VMRegPair *regs,
40 int total_args_passed,
41 int is_outgoing) {
42 return 0;
43 }
44
45 AdapterHandlerEntry* SharedRuntime::generate_i2c2i_adapters(
46 MacroAssembler *masm,
47 int total_args_passed,
48 int comp_args_on_stack,
49 const BasicType *sig_bt,
50 const VMRegPair *regs) {
51 return new AdapterHandlerEntry(
52 ShouldNotCallThisStub(),
53 ShouldNotCallThisStub(),
54 ShouldNotCallThisStub());
55 }
56
57 nmethod *SharedRuntime::generate_native_wrapper(MacroAssembler *masm,
58 methodHandle method,
59 int total_in_args,
60 int comp_args_on_stack,
61 BasicType *in_sig_bt,
62 VMRegPair *in_regs,
63 BasicType ret_type) {
64 #ifdef SHARK
65 return SharkCompiler::compiler()->generate_native_wrapper(masm,
66 method,
67 in_sig_bt,
68 ret_type);
69 #else
70 ShouldNotCallThis();
71 #endif // SHARK
|
1 /*
2 * Copyright 2003-2007 Sun Microsystems, Inc. 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
21 * CA 95054 USA or visit www.sun.com if you need additional information or
22 * have any questions.
23 *
30 SafepointBlob *SharedRuntime::_polling_page_safepoint_handler_blob;
31 SafepointBlob *SharedRuntime::_polling_page_return_handler_blob;
32 RuntimeStub *SharedRuntime::_wrong_method_blob;
33 RuntimeStub *SharedRuntime::_ic_miss_blob;
34 RuntimeStub *SharedRuntime::_resolve_opt_virtual_call_blob;
35 RuntimeStub *SharedRuntime::_resolve_virtual_call_blob;
36 RuntimeStub *SharedRuntime::_resolve_static_call_blob;
37
38 int SharedRuntime::java_calling_convention(const BasicType *sig_bt,
39 VMRegPair *regs,
40 int total_args_passed,
41 int is_outgoing) {
42 return 0;
43 }
44
45 AdapterHandlerEntry* SharedRuntime::generate_i2c2i_adapters(
46 MacroAssembler *masm,
47 int total_args_passed,
48 int comp_args_on_stack,
49 const BasicType *sig_bt,
50 const VMRegPair *regs,
51 AdapterFingerPrint *fingerprint) {
52 return AdapterHandlerLibrary::new_entry(
53 fingerprint,
54 ShouldNotCallThisStub(),
55 ShouldNotCallThisStub(),
56 ShouldNotCallThisStub());
57 }
58
59 nmethod *SharedRuntime::generate_native_wrapper(MacroAssembler *masm,
60 methodHandle method,
61 int total_in_args,
62 int comp_args_on_stack,
63 BasicType *in_sig_bt,
64 VMRegPair *in_regs,
65 BasicType ret_type) {
66 #ifdef SHARK
67 return SharkCompiler::compiler()->generate_native_wrapper(masm,
68 method,
69 in_sig_bt,
70 ret_type);
71 #else
72 ShouldNotCallThis();
73 #endif // SHARK
|