1 /*
2 * Copyright (c) 2008, 2025, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
107 // accessors for the instance variables
108 // Note: not necessarily the real 'frame pointer' (see real_fp)
109 intptr_t* fp() const { return _fp; }
110
111 inline address* sender_pc_addr() const;
112
113 // expression stack tos if we are nested in a java call
114 intptr_t* interpreter_frame_last_sp() const;
115
116 template <typename RegisterMapT>
117 static void update_map_with_saved_link(RegisterMapT* map, intptr_t** link_addr);
118
119 // deoptimization support
120 void interpreter_frame_set_last_sp(intptr_t* sp);
121
122 // helper to update a map with callee-saved FP
123 static void update_map_with_saved_link(RegisterMap* map, intptr_t** link_addr);
124
125 static jint interpreter_frame_expression_stack_direction() { return -1; }
126
127 #endif // CPU_ARM_FRAME_ARM_HPP
|
1 /*
2 * Copyright (c) 2008, 2026, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
107 // accessors for the instance variables
108 // Note: not necessarily the real 'frame pointer' (see real_fp)
109 intptr_t* fp() const { return _fp; }
110
111 inline address* sender_pc_addr() const;
112
113 // expression stack tos if we are nested in a java call
114 intptr_t* interpreter_frame_last_sp() const;
115
116 template <typename RegisterMapT>
117 static void update_map_with_saved_link(RegisterMapT* map, intptr_t** link_addr);
118
119 // deoptimization support
120 void interpreter_frame_set_last_sp(intptr_t* sp);
121
122 // helper to update a map with callee-saved FP
123 static void update_map_with_saved_link(RegisterMap* map, intptr_t** link_addr);
124
125 static jint interpreter_frame_expression_stack_direction() { return -1; }
126
127 intptr_t* repair_sender_sp(intptr_t* sender_sp, intptr_t** saved_fp_addr) const;
128 static intptr_t* repair_sender_sp(nmethod* nm, intptr_t* sp, intptr_t** saved_fp_addr);
129 bool was_augmented_on_entry(int& real_size) const;
130
131 #endif // CPU_ARM_FRAME_ARM_HPP
|