Thu, 27 May 2010 19:08:38 -0700
6941466: Oracle rebranding changes for Hotspot repositories
Summary: Change all the Sun copyrights to Oracle copyright
Reviewed-by: ohair
1 /*
2 * Copyright (c) 2003, 2007, 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 *
24 */
26 #include "incls/_precompiled.incl"
27 #include "incls/_sharedRuntime_zero.cpp.incl"
29 DeoptimizationBlob *SharedRuntime::_deopt_blob;
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;
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 }
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 }
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
74 }
76 int Deoptimization::last_frame_adjust(int callee_parameters,
77 int callee_locals) {
78 return 0;
79 }
81 uint SharedRuntime::out_preserve_stack_slots() {
82 ShouldNotCallThis();
83 }
85 static RuntimeStub* generate_empty_runtime_stub(const char* name) {
86 CodeBuffer buffer(name, 0, 0);
87 return RuntimeStub::new_runtime_stub(name, &buffer, 0, 0, NULL, false);
88 }
90 static SafepointBlob* generate_empty_safepoint_blob() {
91 CodeBuffer buffer("handler_blob", 0, 0);
92 return SafepointBlob::create(&buffer, NULL, 0);
93 }
95 void SharedRuntime::generate_stubs() {
96 _wrong_method_blob =
97 generate_empty_runtime_stub("wrong_method_stub");
98 _ic_miss_blob =
99 generate_empty_runtime_stub("ic_miss_stub");
100 _resolve_opt_virtual_call_blob =
101 generate_empty_runtime_stub("resolve_opt_virtual_call");
102 _resolve_virtual_call_blob =
103 generate_empty_runtime_stub("resolve_virtual_call");
104 _resolve_static_call_blob =
105 generate_empty_runtime_stub("resolve_static_call");
107 _polling_page_safepoint_handler_blob =
108 generate_empty_safepoint_blob();
109 _polling_page_return_handler_blob =
110 generate_empty_safepoint_blob();
111 }
113 int SharedRuntime::c_calling_convention(const BasicType *sig_bt,
114 VMRegPair *regs,
115 int total_args_passed) {
116 ShouldNotCallThis();
117 }