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
29 void CompiledDirectStaticCall::set_to_far(const methodHandle& callee, address entry) {
30 if (TraceICs) {
31 ResourceMark rm;
32 tty->print_cr("CompiledDirectStaticCall@" INTPTR_FORMAT ": set_to_far %s",
33 p2i(instruction_address()),
34 callee->name_and_sig_as_C_string());
35 }
36
37 set_destination_mt_safe(entry);
38 }
39
40 void CompiledPltStaticCall::set_to_interpreted(const methodHandle& callee, address entry) {
41 address stub = find_stub();
42 guarantee(stub != NULL, "stub not found");
43 if (TraceICs) {
44 ResourceMark rm;
45 tty->print_cr("CompiledPltStaticCall@" INTPTR_FORMAT ": set_to_interpreted %s",
46 p2i(instruction_address()),
47 callee->name_and_sig_as_C_string());
|
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) {
45 ResourceMark rm;
46 tty->print_cr("CompiledPltStaticCall@" INTPTR_FORMAT ": set_to_interpreted %s",
47 p2i(instruction_address()),
48 callee->name_and_sig_as_C_string());
|