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 "asm/assembler.hpp"
27 #include "interpreter/bytecode.hpp"
28 #include "interpreter/interpreter.hpp"
29 #include "oops/constMethod.hpp"
30 #include "oops/method.hpp"
31 #include "prims/methodHandles.hpp"
32 #include "runtime/handles.inline.hpp"
33 #include "runtime/frame.inline.hpp"
34 #include "runtime/synchronizer.hpp"
35 #include "utilities/macros.hpp"
36
37 int AbstractInterpreter::BasicType_as_index(BasicType type) {
38 int i = 0;
39 switch (type) {
40 #ifdef AARCH64
41 case T_BOOLEAN: i = 0; break;
42 case T_CHAR : i = 1; break;
43 case T_BYTE : i = 2; break;
44 case T_SHORT : i = 3; break;
45 case T_INT : // fall through
46 case T_LONG : // fall through
47 case T_VOID : // fall through
48 case T_FLOAT : // fall through
49 case T_DOUBLE : i = 4; break;
50 case T_OBJECT : // fall through
51 case T_ARRAY : i = 5; break;
52 #else
53 case T_VOID : i = 0; break;
54 case T_BOOLEAN: i = 1; break;
|
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 "asm/assembler.hpp"
27 #include "interpreter/bytecode.hpp"
28 #include "interpreter/interpreter.hpp"
29 #include "oops/constMethod.hpp"
30 #include "oops/method.hpp"
31 #include "prims/methodHandles.hpp"
32 #include "runtime/handles.inline.hpp"
33 #include "runtime/frame.inline.hpp"
34 #include "runtime/synchronizer.hpp"
35 #include "utilities/align.hpp"
36 #include "utilities/macros.hpp"
37
38 int AbstractInterpreter::BasicType_as_index(BasicType type) {
39 int i = 0;
40 switch (type) {
41 #ifdef AARCH64
42 case T_BOOLEAN: i = 0; break;
43 case T_CHAR : i = 1; break;
44 case T_BYTE : i = 2; break;
45 case T_SHORT : i = 3; break;
46 case T_INT : // fall through
47 case T_LONG : // fall through
48 case T_VOID : // fall through
49 case T_FLOAT : // fall through
50 case T_DOUBLE : i = 4; break;
51 case T_OBJECT : // fall through
52 case T_ARRAY : i = 5; break;
53 #else
54 case T_VOID : i = 0; break;
55 case T_BOOLEAN: i = 1; break;
|