annotate src/cpu/ppc/vm/templateTable_ppc_64.hpp @ 18408:2c3666f44855

Truffle: initial commit of object API implementation
author Andreas Woess <andreas.woess@jku.at>
date Tue, 18 Nov 2014 23:19:43 +0100
parents 58cf34613a72
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14694
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
1 /*
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
2 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
3 * Copyright 2013, 2014 SAP AG. All rights reserved.
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
5 *
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
6 * This code is free software; you can redistribute it and/or modify it
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
7 * under the terms of the GNU General Public License version 2 only, as
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
8 * published by the Free Software Foundation.
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
9 *
58cf34613a72 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
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
58cf34613a72 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
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
14 * accompanied this code).
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
15 *
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
16 * You should have received a copy of the GNU General Public License version
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
17 * 2 along with this work; if not, write to the Free Software Foundation,
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
19 *
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
21 * or visit www.oracle.com if you need additional information or have any
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
22 * questions.
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
23 *
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
24 */
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
25
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
26 #ifndef CPU_PPC_VM_TEMPLATETABLE_PPC_64_HPP
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
27 #define CPU_PPC_VM_TEMPLATETABLE_PPC_64_HPP
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
28
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
29 static void prepare_invoke(int byte_no, Register Rmethod, Register Rret_addr, Register Rindex, Register Rrecv, Register Rflags, Register Rscratch);
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
30 static void invokevfinal_helper(Register Rmethod, Register Rflags, Register Rscratch1, Register Rscratch2);
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
31 static void generate_vtable_call(Register Rrecv_klass, Register Rindex, Register Rret, Register Rtemp);
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
32 static void invokeinterface_object_method(Register Rrecv_klass, Register Rret, Register Rflags, Register Rindex, Register Rtemp, Register Rtemp2);
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
33
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
34 // Branch_conditional which takes TemplateTable::Condition.
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
35 static void branch_conditional(ConditionRegister crx, TemplateTable::Condition cc, Label& L, bool invert = false);
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
36 static void if_cmp_common(Register Rfirst, Register Rsecond, Register Rscratch1, Register Rscratch2, Condition cc, bool is_jint, bool cmp0);
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
37
58cf34613a72 8036976: PPC64: implement the template interpreter
goetz
parents:
diff changeset
38 #endif // CPU_PPC_VM_TEMPLATETABLE_PPC_64_HPP