annotate src/cpu/ppc/vm/templateInterpreterGenerator_ppc.hpp @ 17804:fd1b9f02cc91

8036976: PPC64: implement the template interpreter Reviewed-by: kvn, coleenp Contributed-by: axel.siebenborn@sap.com, martin.doerr@sap.com
author goetz
date Mon, 10 Mar 2014 12:58:02 +0100
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17804
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
1 /*
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
2 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
3 * Copyright 2013, 2014 SAP AG. All rights reserved.
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
5 *
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
6 * This code is free software; you can redistribute it and/or modify it
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
7 * under the terms of the GNU General Public License version 2 only, as
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
8 * published by the Free Software Foundation.
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
9 *
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
10 * This code is distributed in the hope that it will be useful, but WITHOUT
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
13 * version 2 for more details (a copy is included in the LICENSE file that
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
14 * accompanied this code).
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
15 *
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
16 * You should have received a copy of the GNU General Public License version
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
17 * 2 along with this work; if not, write to the Free Software Foundation,
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
19 *
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
21 * or visit www.oracle.com if you need additional information or have any
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
22 * questions.
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
23 *
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
24 */
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
25
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
26 #ifndef CPU_PPC_VM_TEMPLATEINTERPRETERGENERATOR_PPC_HPP
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
27 #define CPU_PPC_VM_TEMPLATEINTERPRETERGENERATOR_PPC_HPP
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
28
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
29 protected:
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
30 address generate_normal_entry(bool synchronized);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
31 address generate_native_entry(bool synchronized);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
32 address generate_math_entry(AbstractInterpreter::MethodKind kind);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
33 address generate_empty_entry(void);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
34
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
35 void lock_method(Register Rflags, Register Rscratch1, Register Rscratch2, bool flags_preloaded=false);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
36 void unlock_method(bool check_exceptions = true);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
37
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
38 void generate_counter_incr(Label* overflow, Label* profile_method, Label* profile_method_continue);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
39 void generate_counter_overflow(Label& continue_entry);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
40
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
41 void generate_fixed_frame(bool native_call, Register Rsize_of_parameters, Register Rsize_of_locals);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
42 void generate_stack_overflow_check(Register Rframe_size, Register Rscratch1);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
43
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
44 #endif // CPU_PPC_VM_TEMPLATEINTERPRETERGENERATOR_PPC_HPP