Mercurial > hg > truffle
annotate src/cpu/zero/vm/sharedRuntime_zero.cpp @ 1406:35069ca331f2
Hooked C1XCompiler class into the system.
Two new flags:
-XX:+UseC1X makes sure that the C1X compiler is used instead of C1
-XX:TraceC1X=0 sets the trace level for C1X (value between 0=no output and 5=verbose)
author | Thomas Wuerthinger <thomas.wuerthinger@gmail.com> |
---|---|
date | Tue, 11 May 2010 18:19:17 +0200 |
parents | 9e1637a04678 |
children | c18cbe5936b8 |
rev | line source |
---|---|
1010 | 1 /* |
2 * Copyright 2003-2007 Sun Microsystems, Inc. All Rights Reserved. | |
1197
9e1637a04678
6920970: Zero build fixes after 6849984 and 6911204
twisti
parents:
1078
diff
changeset
|
3 * Copyright 2007, 2008, 2009, 2010 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 * | |
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 * | |
24 */ | |
25 | |
26 #include "incls/_precompiled.incl" | |
27 #include "incls/_sharedRuntime_zero.cpp.incl" | |
28 | |
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; | |
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, | |
1197
9e1637a04678
6920970: Zero build fixes after 6849984 and 6911204
twisti
parents:
1078
diff
changeset
|
50 const VMRegPair *regs, |
9e1637a04678
6920970: Zero build fixes after 6849984 and 6911204
twisti
parents:
1078
diff
changeset
|
51 AdapterFingerPrint *fingerprint) { |
9e1637a04678
6920970: Zero build fixes after 6849984 and 6911204
twisti
parents:
1078
diff
changeset
|
52 return AdapterHandlerLibrary::new_entry( |
9e1637a04678
6920970: Zero build fixes after 6849984 and 6911204
twisti
parents:
1078
diff
changeset
|
53 fingerprint, |
1010 | 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) { | |
1078 | 66 #ifdef SHARK |
67 return SharkCompiler::compiler()->generate_native_wrapper(masm, | |
68 method, | |
69 in_sig_bt, | |
70 ret_type); | |
71 #else | |
1010 | 72 ShouldNotCallThis(); |
1078 | 73 #endif // SHARK |
1010 | 74 } |
75 | |
76 int Deoptimization::last_frame_adjust(int callee_parameters, | |
77 int callee_locals) { | |
78 return 0; | |
79 } | |
80 | |
81 uint SharedRuntime::out_preserve_stack_slots() { | |
82 ShouldNotCallThis(); | |
83 } | |
84 | |
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 } | |
89 | |
90 static SafepointBlob* generate_empty_safepoint_blob() { | |
91 CodeBuffer buffer("handler_blob", 0, 0); | |
92 return SafepointBlob::create(&buffer, NULL, 0); | |
93 } | |
94 | |
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"); | |
106 | |
107 _polling_page_safepoint_handler_blob = | |
108 generate_empty_safepoint_blob(); | |
109 _polling_page_return_handler_blob = | |
110 generate_empty_safepoint_blob(); | |
111 } | |
112 | |
113 int SharedRuntime::c_calling_convention(const BasicType *sig_bt, | |
114 VMRegPair *regs, | |
115 int total_args_passed) { | |
116 ShouldNotCallThis(); | |
117 } |