2626#include " precompiled.hpp"
2727#include " asm/macroAssembler.inline.hpp"
2828#include " code/compiledIC.hpp"
29- #include " code/icBuffer.hpp"
3029#include " code/nmethod.hpp"
3130#include " logging/log.hpp"
3231#include " memory/resourceArea.hpp"
3635// ----------------------------------------------------------------------------
3736
3837#define __ _masm.
39- address CompiledStaticCall ::emit_to_interp_stub (CodeBuffer &cbuf, address mark) {
38+ address CompiledDirectCall ::emit_to_interp_stub (CodeBuffer &cbuf, address mark) {
4039 precond (cbuf.stubs ()->start () != badAddress);
4140 precond (cbuf.stubs ()->end () != badAddress);
4241
@@ -71,33 +70,26 @@ address CompiledStaticCall::emit_to_interp_stub(CodeBuffer &cbuf, address mark)
7170}
7271#undef __
7372
74- int CompiledStaticCall ::to_interp_stub_size () {
73+ int CompiledDirectCall ::to_interp_stub_size () {
7574 return MacroAssembler::static_call_stub_size ();
7675}
7776
78- int CompiledStaticCall ::to_trampoline_stub_size () {
77+ int CompiledDirectCall ::to_trampoline_stub_size () {
7978 // Somewhat pessimistically, we count 3 instructions here (although
8079 // there are only two) because we sometimes emit an alignment nop.
8180 // Trampoline stubs are always word aligned.
8281 return MacroAssembler::max_trampoline_stub_size ();
8382}
8483
8584// Relocation entries for call stub, compiled java to interpreter.
86- int CompiledStaticCall ::reloc_to_interp_stub () {
85+ int CompiledDirectCall ::reloc_to_interp_stub () {
8786 return 4 ; // 3 in emit_to_interp_stub + 1 in emit_call
8887}
8988
90- void CompiledDirectStaticCall ::set_to_interpreted (const methodHandle& callee, address entry) {
89+ void CompiledDirectCall ::set_to_interpreted (const methodHandle& callee, address entry) {
9190 address stub = find_stub ();
9291 guarantee (stub != nullptr , " stub not found" );
9392
94- {
95- ResourceMark rm;
96- log_trace (inlinecache)(" CompiledDirectStaticCall@" INTPTR_FORMAT " : set_to_interpreted %s" ,
97- p2i (instruction_address ()),
98- callee->name_and_sig_as_C_string ());
99- }
100-
10193 // Creation also verifies the object.
10294 NativeMovConstReg* method_holder
10395 = nativeMovConstReg_at (stub + NativeInstruction::instruction_size);
@@ -115,7 +107,7 @@ void CompiledDirectStaticCall::set_to_interpreted(const methodHandle& callee, ad
115107 set_destination_mt_safe (stub);
116108}
117109
118- void CompiledDirectStaticCall ::set_stub_to_clean (static_stub_Relocation* static_stub) {
110+ void CompiledDirectCall ::set_stub_to_clean (static_stub_Relocation* static_stub) {
119111 // Reset stub.
120112 address stub = static_stub->addr ();
121113 assert (stub != nullptr , " stub not found" );
@@ -132,7 +124,7 @@ void CompiledDirectStaticCall::set_stub_to_clean(static_stub_Relocation* static_
132124// Non-product mode code
133125#ifndef PRODUCT
134126
135- void CompiledDirectStaticCall ::verify () {
127+ void CompiledDirectCall ::verify () {
136128 // Verify call.
137129 _call->verify ();
138130 _call->verify_alignment ();
0 commit comments