author | prr |
Wed, 15 Apr 2015 14:28:43 -0700 | |
changeset 30465 | a77083748efc |
parent 25359 | 8a19ff205f89 |
child 32082 | 2a3323e25de1 |
permissions | -rw-r--r-- |
17094
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
1 |
/* |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
2 |
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
4 |
* |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
8 |
* |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
13 |
* accompanied this code). |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
14 |
* |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
18 |
* |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
21 |
* questions. |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
22 |
* |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
23 |
*/ |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
24 |
|
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
25 |
#include "precompiled.hpp" |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
26 |
#include "asm/macroAssembler.inline.hpp" |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
27 |
#include "code/compiledIC.hpp" |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
28 |
#include "code/icBuffer.hpp" |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
29 |
#include "code/nmethod.hpp" |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
30 |
#include "memory/resourceArea.hpp" |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
31 |
#include "runtime/mutexLocker.hpp" |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
32 |
#include "runtime/safepoint.hpp" |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
33 |
#ifdef COMPILER2 |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
34 |
#include "opto/matcher.hpp" |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
35 |
#endif |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
36 |
|
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
37 |
// Release the CompiledICHolder* associated with this call site is there is one. |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
38 |
void CompiledIC::cleanup_call_site(virtual_call_Relocation* call_site) { |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
39 |
// This call site might have become stale so inspect it carefully. |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
40 |
NativeCall* call = nativeCall_at(call_site->addr()); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
41 |
if (is_icholder_entry(call->destination())) { |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
42 |
NativeMovConstReg* value = nativeMovConstReg_at(call_site->cached_value()); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
43 |
InlineCacheBuffer::queue_for_release((CompiledICHolder*)value->data()); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
44 |
} |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
45 |
} |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
46 |
|
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
47 |
bool CompiledIC::is_icholder_call_site(virtual_call_Relocation* call_site) { |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
48 |
// This call site might have become stale so inspect it carefully. |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
49 |
NativeCall* call = nativeCall_at(call_site->addr()); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
50 |
return is_icholder_entry(call->destination()); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
51 |
} |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
52 |
|
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
53 |
// ---------------------------------------------------------------------------- |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
54 |
|
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
55 |
#define __ _masm. |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
56 |
void CompiledStaticCall::emit_to_interp_stub(CodeBuffer &cbuf) { |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
57 |
#ifdef COMPILER2 |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
58 |
// Stub is fixed up when the corresponding call is converted from calling |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
59 |
// compiled code to calling interpreted code. |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
60 |
// set (empty), G5 |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
61 |
// jmp -1 |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
62 |
|
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
63 |
address mark = cbuf.insts_mark(); // Get mark within main instrs section. |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
64 |
|
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
65 |
MacroAssembler _masm(&cbuf); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
66 |
|
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
67 |
address base = |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
68 |
__ start_a_stub(to_interp_stub_size()*2); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
69 |
if (base == NULL) return; // CodeBuffer::expand failed. |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
70 |
|
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
71 |
// Static stub relocation stores the instruction address of the call. |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
72 |
__ relocate(static_stub_Relocation::spec(mark)); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
73 |
|
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
74 |
__ set_metadata(NULL, as_Register(Matcher::inline_cache_reg_encode())); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
75 |
|
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
76 |
__ set_inst_mark(); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
77 |
AddressLiteral addrlit(-1); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
78 |
__ JUMP(addrlit, G3, 0); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
79 |
|
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
80 |
__ delayed()->nop(); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
81 |
|
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
82 |
// Update current stubs pointer and restore code_end. |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
83 |
__ end_a_stub(); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
84 |
#else |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
85 |
ShouldNotReachHere(); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
86 |
#endif |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
87 |
} |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
88 |
#undef __ |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
89 |
|
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
90 |
int CompiledStaticCall::to_interp_stub_size() { |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
91 |
// This doesn't need to be accurate but it must be larger or equal to |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
92 |
// the real size of the stub. |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
93 |
return (NativeMovConstReg::instruction_size + // sethi/setlo; |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
94 |
NativeJump::instruction_size + // sethi; jmp; nop |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
95 |
(TraceJumps ? 20 * BytesPerInstWord : 0) ); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
96 |
} |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
97 |
|
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
98 |
// Relocation entries for call stub, compiled java to interpreter. |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
99 |
int CompiledStaticCall::reloc_to_interp_stub() { |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
100 |
return 10; // 4 in emit_java_to_interp + 1 in Java_Static_Call |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
101 |
} |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
102 |
|
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
103 |
void CompiledStaticCall::set_to_interpreted(methodHandle callee, address entry) { |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
104 |
address stub = find_stub(); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
105 |
guarantee(stub != NULL, "stub not found"); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
106 |
|
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
107 |
if (TraceICs) { |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
108 |
ResourceMark rm; |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
109 |
tty->print_cr("CompiledStaticCall@" INTPTR_FORMAT ": set_to_interpreted %s", |
24917 | 110 |
p2i(instruction_address()), |
17094
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
111 |
callee->name_and_sig_as_C_string()); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
112 |
} |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
113 |
|
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
114 |
// Creation also verifies the object. |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
115 |
NativeMovConstReg* method_holder = nativeMovConstReg_at(stub); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
116 |
NativeJump* jump = nativeJump_at(method_holder->next_instruction_address()); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
117 |
|
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
118 |
assert(method_holder->data() == 0 || method_holder->data() == (intptr_t)callee(), |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
119 |
"a) MT-unsafe modification of inline cache"); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
120 |
assert(jump->jump_destination() == (address)-1 || jump->jump_destination() == entry, |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
121 |
"b) MT-unsafe modification of inline cache"); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
122 |
|
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
123 |
// Update stub. |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
124 |
method_holder->set_data((intptr_t)callee()); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
125 |
jump->set_jump_destination(entry); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
126 |
|
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
127 |
// Update jump to call. |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
128 |
set_destination_mt_safe(stub); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
129 |
} |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
130 |
|
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
131 |
void CompiledStaticCall::set_stub_to_clean(static_stub_Relocation* static_stub) { |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
132 |
assert (CompiledIC_lock->is_locked() || SafepointSynchronize::is_at_safepoint(), "mt unsafe call"); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
133 |
// Reset stub. |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
134 |
address stub = static_stub->addr(); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
135 |
assert(stub != NULL, "stub not found"); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
136 |
// Creation also verifies the object. |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
137 |
NativeMovConstReg* method_holder = nativeMovConstReg_at(stub); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
138 |
NativeJump* jump = nativeJump_at(method_holder->next_instruction_address()); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
139 |
method_holder->set_data(0); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
140 |
jump->set_jump_destination((address)-1); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
141 |
} |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
142 |
|
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
143 |
//----------------------------------------------------------------------------- |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
144 |
// Non-product mode code |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
145 |
#ifndef PRODUCT |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
146 |
|
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
147 |
void CompiledStaticCall::verify() { |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
148 |
// Verify call. |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
149 |
NativeCall::verify(); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
150 |
if (os::is_MP()) { |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
151 |
verify_alignment(); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
152 |
} |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
153 |
|
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
154 |
// Verify stub. |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
155 |
address stub = find_stub(); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
156 |
assert(stub != NULL, "no stub found for static call"); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
157 |
// Creation also verifies the object. |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
158 |
NativeMovConstReg* method_holder = nativeMovConstReg_at(stub); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
159 |
NativeJump* jump = nativeJump_at(method_holder->next_instruction_address()); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
160 |
|
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
161 |
// Verify state. |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
162 |
assert(is_clean() || is_call_to_compiled() || is_call_to_interpreted(), "sanity check"); |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
163 |
} |
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
164 |
|
29c4955396d2
8003853: specify offset of IC load in java_to_interp stub
dlong
parents:
diff
changeset
|
165 |
#endif // !PRODUCT |