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 *
23 */
24
25 #include "precompiled.hpp"
26 #include "ci/ciMethod.hpp"
27 #include "interpreter/interpreter.hpp"
28 #include "runtime/frame.inline.hpp"
29
30
31 // asm based interpreter deoptimization helpers
32 int AbstractInterpreter::size_activation(int max_stack,
33 int temps,
34 int extra_args,
35 int monitors,
36 int callee_params,
37 int callee_locals,
38 bool is_top_frame) {
39 // Note: This calculation must exactly parallel the frame setup
40 // in TemplateInterpreterGenerator::generate_fixed_frame.
41
42 // fixed size of an interpreter frame:
43 int overhead = frame::sender_sp_offset -
44 frame::interpreter_frame_initial_sp_offset;
45 // Our locals were accounted for by the caller (or last_frame_adjust
46 // on the transistion) Since the callee parameters already account
47 // for the callee's params we only need to account for the extra
|
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 *
23 */
24
25 #include "precompiled.hpp"
26 #include "ci/ciMethod.hpp"
27 #include "interpreter/interpreter.hpp"
28 #include "oops/klass.inline.hpp"
29 #include "runtime/frame.inline.hpp"
30
31
32 // asm based interpreter deoptimization helpers
33 int AbstractInterpreter::size_activation(int max_stack,
34 int temps,
35 int extra_args,
36 int monitors,
37 int callee_params,
38 int callee_locals,
39 bool is_top_frame) {
40 // Note: This calculation must exactly parallel the frame setup
41 // in TemplateInterpreterGenerator::generate_fixed_frame.
42
43 // fixed size of an interpreter frame:
44 int overhead = frame::sender_sp_offset -
45 frame::interpreter_frame_initial_sp_offset;
46 // Our locals were accounted for by the caller (or last_frame_adjust
47 // on the transistion) Since the callee parameters already account
48 // for the callee's params we only need to account for the extra
|