author | lana |
Sat, 22 Apr 2017 00:22:47 +0000 | |
changeset 44716 | 60901aefa352 |
parent 38259 | b495d1cfe673 |
permissions | -rw-r--r-- |
4013 | 1 |
/* |
33593
60764a78fa5c
8140274: methodHandles and constantPoolHandles should be passed as const references
coleenp
parents:
22872
diff
changeset
|
2 |
* Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved. |
9103 | 3 |
* Copyright 2007, 2008, 2009, 2010, 2011 Red Hat, Inc. |
4013 | 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 |
* |
|
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
4745
diff
changeset
|
20 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
4745
diff
changeset
|
21 |
* or visit www.oracle.com if you need additional information or have any |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
4745
diff
changeset
|
22 |
* questions. |
4013 | 23 |
* |
24 |
*/ |
|
25 |
||
7397 | 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" |
|
13728
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
10260
diff
changeset
|
33 |
#include "oops/compiledICHolder.hpp" |
7397 | 34 |
#include "runtime/sharedRuntime.hpp" |
35 |
#include "runtime/vframeArray.hpp" |
|
36 |
#include "vmreg_zero.inline.hpp" |
|
14294 | 37 |
|
7397 | 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 |
|
4013 | 48 |
|
49 |
||
14294 | 50 |
|
51 |
static address zero_null_code_stub() { |
|
52 |
address start = ShouldNotCallThisStub(); |
|
53 |
return start; |
|
54 |
} |
|
55 |
||
4013 | 56 |
int SharedRuntime::java_calling_convention(const BasicType *sig_bt, |
57 |
VMRegPair *regs, |
|
58 |
int total_args_passed, |
|
59 |
int is_outgoing) { |
|
60 |
return 0; |
|
61 |
} |
|
62 |
||
63 |
AdapterHandlerEntry* SharedRuntime::generate_i2c2i_adapters( |
|
64 |
MacroAssembler *masm, |
|
65 |
int total_args_passed, |
|
66 |
int comp_args_on_stack, |
|
67 |
const BasicType *sig_bt, |
|
4745
5ec280d96474
6920970: Zero build fixes after 6849984 and 6911204
twisti
parents:
4448
diff
changeset
|
68 |
const VMRegPair *regs, |
5ec280d96474
6920970: Zero build fixes after 6849984 and 6911204
twisti
parents:
4448
diff
changeset
|
69 |
AdapterFingerPrint *fingerprint) { |
5ec280d96474
6920970: Zero build fixes after 6849984 and 6911204
twisti
parents:
4448
diff
changeset
|
70 |
return AdapterHandlerLibrary::new_entry( |
5ec280d96474
6920970: Zero build fixes after 6849984 and 6911204
twisti
parents:
4448
diff
changeset
|
71 |
fingerprint, |
14294 | 72 |
CAST_FROM_FN_PTR(address,zero_null_code_stub), |
73 |
CAST_FROM_FN_PTR(address,zero_null_code_stub), |
|
74 |
CAST_FROM_FN_PTR(address,zero_null_code_stub)); |
|
4013 | 75 |
} |
76 |
||
77 |
nmethod *SharedRuntime::generate_native_wrapper(MacroAssembler *masm, |
|
33593
60764a78fa5c
8140274: methodHandles and constantPoolHandles should be passed as const references
coleenp
parents:
22872
diff
changeset
|
78 |
const methodHandle& method, |
9103 | 79 |
int compile_id, |
80 |
BasicType *sig_bt, |
|
81 |
VMRegPair *regs, |
|
4013 | 82 |
BasicType ret_type) { |
4448 | 83 |
#ifdef SHARK |
84 |
return SharkCompiler::compiler()->generate_native_wrapper(masm, |
|
85 |
method, |
|
9103 | 86 |
compile_id, |
87 |
sig_bt, |
|
4448 | 88 |
ret_type); |
89 |
#else |
|
4013 | 90 |
ShouldNotCallThis(); |
19336
ddceb0657500
8022956: Clang: enable return type warnings on BSD
twisti
parents:
14294
diff
changeset
|
91 |
return NULL; |
4448 | 92 |
#endif // SHARK |
4013 | 93 |
} |
94 |
||
95 |
int Deoptimization::last_frame_adjust(int callee_parameters, |
|
96 |
int callee_locals) { |
|
97 |
return 0; |
|
98 |
} |
|
99 |
||
100 |
uint SharedRuntime::out_preserve_stack_slots() { |
|
101 |
ShouldNotCallThis(); |
|
19336
ddceb0657500
8022956: Clang: enable return type warnings on BSD
twisti
parents:
14294
diff
changeset
|
102 |
return 0; |
4013 | 103 |
} |
104 |
||
14294 | 105 |
JRT_LEAF(void, zero_stub()) |
106 |
ShouldNotCallThis(); |
|
107 |
JRT_END |
|
108 |
||
4013 | 109 |
static RuntimeStub* generate_empty_runtime_stub(const char* name) { |
14294 | 110 |
return CAST_FROM_FN_PTR(RuntimeStub*,zero_stub); |
4013 | 111 |
} |
112 |
||
113 |
static SafepointBlob* generate_empty_safepoint_blob() { |
|
14294 | 114 |
return CAST_FROM_FN_PTR(SafepointBlob*,zero_stub); |
4013 | 115 |
} |
116 |
||
10260
b7007c4de557
7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
9103
diff
changeset
|
117 |
static DeoptimizationBlob* generate_empty_deopt_blob() { |
14294 | 118 |
return CAST_FROM_FN_PTR(DeoptimizationBlob*,zero_stub); |
10260
b7007c4de557
7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
9103
diff
changeset
|
119 |
} |
b7007c4de557
7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
9103
diff
changeset
|
120 |
|
4013 | 121 |
|
10260
b7007c4de557
7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
9103
diff
changeset
|
122 |
void SharedRuntime::generate_deopt_blob() { |
b7007c4de557
7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
9103
diff
changeset
|
123 |
_deopt_blob = generate_empty_deopt_blob(); |
b7007c4de557
7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
9103
diff
changeset
|
124 |
} |
b7007c4de557
7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
9103
diff
changeset
|
125 |
|
14294 | 126 |
SafepointBlob* SharedRuntime::generate_handler_blob(address call_ptr, int poll_type) { |
10260
b7007c4de557
7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
9103
diff
changeset
|
127 |
return generate_empty_safepoint_blob(); |
b7007c4de557
7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
9103
diff
changeset
|
128 |
} |
b7007c4de557
7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
9103
diff
changeset
|
129 |
|
b7007c4de557
7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
9103
diff
changeset
|
130 |
RuntimeStub* SharedRuntime::generate_resolve_blob(address destination, const char* name) { |
b7007c4de557
7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
9103
diff
changeset
|
131 |
return generate_empty_runtime_stub("resolve_blob"); |
4013 | 132 |
} |
133 |
||
37439
e8970711113b
8145221: Use trampolines for i2i and i2c entries in Methods that are stored in CDS archive
ccheung
parents:
33593
diff
changeset
|
134 |
size_t SharedRuntime::trampoline_size() { |
e8970711113b
8145221: Use trampolines for i2i and i2c entries in Methods that are stored in CDS archive
ccheung
parents:
33593
diff
changeset
|
135 |
ShouldNotCallThis(); |
e8970711113b
8145221: Use trampolines for i2i and i2c entries in Methods that are stored in CDS archive
ccheung
parents:
33593
diff
changeset
|
136 |
return 0; |
e8970711113b
8145221: Use trampolines for i2i and i2c entries in Methods that are stored in CDS archive
ccheung
parents:
33593
diff
changeset
|
137 |
} |
e8970711113b
8145221: Use trampolines for i2i and i2c entries in Methods that are stored in CDS archive
ccheung
parents:
33593
diff
changeset
|
138 |
|
e8970711113b
8145221: Use trampolines for i2i and i2c entries in Methods that are stored in CDS archive
ccheung
parents:
33593
diff
changeset
|
139 |
void SharedRuntime::generate_trampoline(MacroAssembler *masm, address destination) { |
e8970711113b
8145221: Use trampolines for i2i and i2c entries in Methods that are stored in CDS archive
ccheung
parents:
33593
diff
changeset
|
140 |
ShouldNotCallThis(); |
e8970711113b
8145221: Use trampolines for i2i and i2c entries in Methods that are stored in CDS archive
ccheung
parents:
33593
diff
changeset
|
141 |
return; |
e8970711113b
8145221: Use trampolines for i2i and i2c entries in Methods that are stored in CDS archive
ccheung
parents:
33593
diff
changeset
|
142 |
} |
14294 | 143 |
|
4013 | 144 |
int SharedRuntime::c_calling_convention(const BasicType *sig_bt, |
145 |
VMRegPair *regs, |
|
22832
03720a5b7595
8024344: PPC64 (part 112): C argument in register AND stack slot.
goetz
parents:
19336
diff
changeset
|
146 |
VMRegPair *regs2, |
4013 | 147 |
int total_args_passed) { |
148 |
ShouldNotCallThis(); |
|
19336
ddceb0657500
8022956: Clang: enable return type warnings on BSD
twisti
parents:
14294
diff
changeset
|
149 |
return 0; |
4013 | 150 |
} |