10 * This code is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * version 2 for more details (a copy is included in the LICENSE file that
14 * accompanied this code).
15 *
16 * You should have received a copy of the GNU General Public License version
17 * 2 along with this work; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 *
24 */
25
26 #ifndef CPU_ZERO_REGISTER_ZERO_HPP
27 #define CPU_ZERO_REGISTER_ZERO_HPP
28
29 #include "asm/register.hpp"
30 #include "vm_version_zero.hpp"
31
32 class VMRegImpl;
33 typedef VMRegImpl* VMReg;
34
35 // Use Register as shortcut
36 class RegisterImpl;
37 typedef RegisterImpl* Register;
38
39 inline Register as_Register(int encoding) {
40 return (Register)(intptr_t) encoding;
41 }
42
43 // The implementation of integer registers for the zero architecture
44 class RegisterImpl : public AbstractRegisterImpl {
45 public:
46 enum {
47 number_of_registers = 0
48 };
49
50 // construction
|
10 * This code is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * version 2 for more details (a copy is included in the LICENSE file that
14 * accompanied this code).
15 *
16 * You should have received a copy of the GNU General Public License version
17 * 2 along with this work; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 *
24 */
25
26 #ifndef CPU_ZERO_REGISTER_ZERO_HPP
27 #define CPU_ZERO_REGISTER_ZERO_HPP
28
29 #include "asm/register.hpp"
30 #include "runtime/vm_version.hpp"
31
32 class VMRegImpl;
33 typedef VMRegImpl* VMReg;
34
35 // Use Register as shortcut
36 class RegisterImpl;
37 typedef RegisterImpl* Register;
38
39 inline Register as_Register(int encoding) {
40 return (Register)(intptr_t) encoding;
41 }
42
43 // The implementation of integer registers for the zero architecture
44 class RegisterImpl : public AbstractRegisterImpl {
45 public:
46 enum {
47 number_of_registers = 0
48 };
49
50 // construction
|