Mercurial > hg > truffle
annotate src/cpu/zero/vm/sharedRuntime_zero.cpp @ 3594:af1319bc4fd5
Fixed wrong type char check.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Tue, 18 Oct 2011 20:07:52 +0200 |
parents | e863062e521d |
children | a3142bdb6707 |
rev | line source |
---|---|
1010 | 1 /* |
1972 | 2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. |
2447 | 3 * Copyright 2007, 2008, 2009, 2010, 2011 Red Hat, Inc. |
1010 | 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 * | |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1197
diff
changeset
|
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1197
diff
changeset
|
21 * or visit www.oracle.com if you need additional information or have any |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1197
diff
changeset
|
22 * questions. |
1010 | 23 * |
24 */ | |
25 | |
1972 | 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/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 | |
1010 | 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, | |
1197
9e1637a04678
6920970: Zero build fixes after 6849984 and 6911204
twisti
parents:
1078
diff
changeset
|
70 const VMRegPair *regs, |
9e1637a04678
6920970: Zero build fixes after 6849984 and 6911204
twisti
parents:
1078
diff
changeset
|
71 AdapterFingerPrint *fingerprint) { |
9e1637a04678
6920970: Zero build fixes after 6849984 and 6911204
twisti
parents:
1078
diff
changeset
|
72 return AdapterHandlerLibrary::new_entry( |
9e1637a04678
6920970: Zero build fixes after 6849984 and 6911204
twisti
parents:
1078
diff
changeset
|
73 fingerprint, |
1010 | 74 ShouldNotCallThisStub(), |
75 ShouldNotCallThisStub(), | |
76 ShouldNotCallThisStub()); | |
77 } | |
78 | |
79 nmethod *SharedRuntime::generate_native_wrapper(MacroAssembler *masm, | |
80 methodHandle method, | |
2447 | 81 int compile_id, |
82 int total_args_passed, | |
83 int max_arg, | |
84 BasicType *sig_bt, | |
85 VMRegPair *regs, | |
1010 | 86 BasicType ret_type) { |
1078 | 87 #ifdef SHARK |
88 return SharkCompiler::compiler()->generate_native_wrapper(masm, | |
89 method, | |
2447 | 90 compile_id, |
91 sig_bt, | |
1078 | 92 ret_type); |
93 #else | |
1010 | 94 ShouldNotCallThis(); |
1078 | 95 #endif // SHARK |
1010 | 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 | |
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 } |