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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 */
24
25 #include "aot/compiledIC_aot.hpp"
26 #include "code/codeCache.hpp"
27 #include "memory/resourceArea.hpp"
28 #include "memory/universe.hpp"
29
30 void CompiledDirectStaticCall::set_to_far(const methodHandle& callee, address entry) {
31 if (TraceICs) {
32 ResourceMark rm;
33 tty->print_cr("CompiledDirectStaticCall@" INTPTR_FORMAT ": set_to_far %s",
34 p2i(instruction_address()),
35 callee->name_and_sig_as_C_string());
36 }
37
38 set_destination_mt_safe(entry);
39 }
40
41 void CompiledPltStaticCall::set_to_interpreted(const methodHandle& callee, address entry) {
42 address stub = find_stub();
43 guarantee(stub != NULL, "stub not found");
44 if (TraceICs) {
|
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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 */
24
25 #include "precompiled.hpp"
26 #include "aot/compiledIC_aot.hpp"
27 #include "code/codeCache.hpp"
28 #include "memory/resourceArea.hpp"
29 #include "memory/universe.hpp"
30
31 void CompiledDirectStaticCall::set_to_far(const methodHandle& callee, address entry) {
32 if (TraceICs) {
33 ResourceMark rm;
34 tty->print_cr("CompiledDirectStaticCall@" INTPTR_FORMAT ": set_to_far %s",
35 p2i(instruction_address()),
36 callee->name_and_sig_as_C_string());
37 }
38
39 set_destination_mt_safe(entry);
40 }
41
42 void CompiledPltStaticCall::set_to_interpreted(const methodHandle& callee, address entry) {
43 address stub = find_stub();
44 guarantee(stub != NULL, "stub not found");
45 if (TraceICs) {
|