equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * Copyright 2007, 2008, 2011 Red Hat, Inc. |
3 * Copyright 2007, 2008, 2011 Red Hat, Inc. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 * |
5 * |
6 * This code is free software; you can redistribute it and/or modify it |
6 * This code is free software; you can redistribute it and/or modify it |
7 * under the terms of the GNU General Public License version 2 only, as |
7 * under the terms of the GNU General Public License version 2 only, as |
21 * or visit www.oracle.com if you need additional information or have any |
21 * or visit www.oracle.com if you need additional information or have any |
22 * questions. |
22 * questions. |
23 * |
23 * |
24 */ |
24 */ |
25 |
25 |
26 #ifndef CPU_ZERO_VM_BYTECODEINTERPRETER_ZERO_HPP |
26 #ifndef CPU_ZERO_BYTECODEINTERPRETER_ZERO_HPP |
27 #define CPU_ZERO_VM_BYTECODEINTERPRETER_ZERO_HPP |
27 #define CPU_ZERO_BYTECODEINTERPRETER_ZERO_HPP |
28 |
28 |
29 // Platform specific for C++ based Interpreter |
29 // Platform specific for C++ based Interpreter |
30 |
30 |
31 #if defined(PPC) || defined(SPARC) || defined(IA64) |
31 #if defined(PPC) || defined(SPARC) || defined(IA64) |
32 #define LOTS_OF_REGS // Use plenty of registers |
32 #define LOTS_OF_REGS // Use plenty of registers |
169 #define SET_VMSLOTS_FLOAT(value, offset) (*((jfloat *)&vmslots[(offset)]) = (value)) |
169 #define SET_VMSLOTS_FLOAT(value, offset) (*((jfloat *)&vmslots[(offset)]) = (value)) |
170 #define SET_VMSLOTS_OBJECT(value, offset) (*((oop *)&vmslots[(offset)]) = (value)) |
170 #define SET_VMSLOTS_OBJECT(value, offset) (*((oop *)&vmslots[(offset)]) = (value)) |
171 #define SET_VMSLOTS_DOUBLE(value, offset) (((VMJavaVal64*)&vmslots[(offset) - 1])->d = (value)) |
171 #define SET_VMSLOTS_DOUBLE(value, offset) (((VMJavaVal64*)&vmslots[(offset) - 1])->d = (value)) |
172 #define SET_VMSLOTS_LONG(value, offset) (((VMJavaVal64*)&vmslots[(offset) - 1])->l = (value)) |
172 #define SET_VMSLOTS_LONG(value, offset) (((VMJavaVal64*)&vmslots[(offset) - 1])->l = (value)) |
173 |
173 |
174 #endif // CPU_ZERO_VM_BYTECODEINTERPRETER_ZERO_HPP |
174 #endif // CPU_ZERO_BYTECODEINTERPRETER_ZERO_HPP |