src/cpu/zero/vm/nativeInst_zero.hpp

Mon, 14 Jun 2010 00:52:15 -0700

author
twisti
date
Mon, 14 Jun 2010 00:52:15 -0700
changeset 1960
d179e225c164
parent 1907
c18cbe5936b8
child 2314
f95d63e2154a
permissions
-rw-r--r--

6960550: Missing semicolon in Zero
Summary: There is a missing semicolon in cppInterpreter_zero.cpp.
Reviewed-by: twisti
Contributed-by: Gary Benson <gbenson@redhat.com>

never@1445 1 /*
trims@1907 2 * Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved.
never@1445 3 * Copyright 2007 Red Hat, Inc.
never@1445 4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
never@1445 5 *
never@1445 6 * This code is free software; you can redistribute it and/or modify it
never@1445 7 * under the terms of the GNU General Public License version 2 only, as
never@1445 8 * published by the Free Software Foundation.
never@1445 9 *
never@1445 10 * This code is distributed in the hope that it will be useful, but WITHOUT
never@1445 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
never@1445 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
never@1445 13 * version 2 for more details (a copy is included in the LICENSE file that
never@1445 14 * accompanied this code).
never@1445 15 *
never@1445 16 * You should have received a copy of the GNU General Public License version
never@1445 17 * 2 along with this work; if not, write to the Free Software Foundation,
never@1445 18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
never@1445 19 *
trims@1907 20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@1907 21 * or visit www.oracle.com if you need additional information or have any
trims@1907 22 * questions.
never@1445 23 *
never@1445 24 */
never@1445 25
never@1445 26 // We have interfaces for the following instructions:
never@1445 27 // - NativeInstruction
never@1445 28 // - - NativeCall
never@1445 29 // - - NativeMovConstReg
never@1445 30 // - - NativeMovConstRegPatching
never@1445 31 // - - NativeJump
never@1445 32 // - - NativeIllegalOpCode
never@1445 33 // - - NativeReturn
never@1445 34 // - - NativeReturnX (return with argument)
never@1445 35 // - - NativePushConst
never@1445 36 // - - NativeTstRegMem
never@1445 37
never@1445 38 // The base class for different kinds of native instruction abstractions.
never@1445 39 // Provides the primitive operations to manipulate code relative to this.
never@1445 40
never@1445 41 class NativeInstruction VALUE_OBJ_CLASS_SPEC {
never@1445 42 public:
never@1445 43 bool is_jump() {
never@1445 44 ShouldNotCallThis();
never@1445 45 }
never@1445 46
never@1445 47 bool is_safepoint_poll() {
never@1445 48 ShouldNotCallThis();
never@1445 49 }
never@1445 50 };
never@1445 51
never@1445 52 inline NativeInstruction* nativeInstruction_at(address address) {
never@1445 53 ShouldNotCallThis();
never@1445 54 }
never@1445 55
never@1445 56 class NativeCall : public NativeInstruction {
never@1445 57 public:
never@1445 58 enum zero_specific_constants {
never@1445 59 instruction_size = 0 // not used within the interpreter
never@1445 60 };
never@1445 61
never@1445 62 address instruction_address() const {
never@1445 63 ShouldNotCallThis();
never@1445 64 }
never@1445 65
never@1445 66 address next_instruction_address() const {
never@1445 67 ShouldNotCallThis();
never@1445 68 }
never@1445 69
never@1445 70 address return_address() const {
never@1445 71 ShouldNotCallThis();
never@1445 72 }
never@1445 73
never@1445 74 address destination() const {
never@1445 75 ShouldNotCallThis();
never@1445 76 }
never@1445 77
never@1445 78 void set_destination_mt_safe(address dest) {
never@1445 79 ShouldNotCallThis();
never@1445 80 }
never@1445 81
never@1445 82 void verify_alignment() {
never@1445 83 ShouldNotCallThis();
never@1445 84 }
never@1445 85
never@1445 86 void verify() {
never@1445 87 ShouldNotCallThis();
never@1445 88 }
never@1445 89
never@1445 90 static bool is_call_before(address return_address) {
never@1445 91 ShouldNotCallThis();
never@1445 92 }
never@1445 93 };
never@1445 94
never@1445 95 inline NativeCall* nativeCall_before(address return_address) {
never@1445 96 ShouldNotCallThis();
never@1445 97 }
never@1445 98
never@1445 99 inline NativeCall* nativeCall_at(address address) {
never@1445 100 ShouldNotCallThis();
never@1445 101 }
never@1445 102
never@1445 103 class NativeMovConstReg : public NativeInstruction {
never@1445 104 public:
never@1445 105 address next_instruction_address() const {
never@1445 106 ShouldNotCallThis();
never@1445 107 }
never@1445 108
never@1445 109 intptr_t data() const {
never@1445 110 ShouldNotCallThis();
never@1445 111 }
never@1445 112
never@1445 113 void set_data(intptr_t x) {
never@1445 114 ShouldNotCallThis();
never@1445 115 }
never@1445 116 };
never@1445 117
never@1445 118 inline NativeMovConstReg* nativeMovConstReg_at(address address) {
never@1445 119 ShouldNotCallThis();
never@1445 120 }
never@1445 121
never@1445 122 class NativeMovRegMem : public NativeInstruction {
never@1445 123 public:
never@1445 124 int offset() const {
never@1445 125 ShouldNotCallThis();
never@1445 126 }
never@1445 127
never@1445 128 void set_offset(intptr_t x) {
never@1445 129 ShouldNotCallThis();
never@1445 130 }
never@1445 131
never@1445 132 void add_offset_in_bytes(int add_offset) {
never@1445 133 ShouldNotCallThis();
never@1445 134 }
never@1445 135 };
never@1445 136
never@1445 137 inline NativeMovRegMem* nativeMovRegMem_at(address address) {
never@1445 138 ShouldNotCallThis();
never@1445 139 }
never@1445 140
never@1445 141 class NativeJump : public NativeInstruction {
never@1445 142 public:
never@1445 143 enum zero_specific_constants {
never@1445 144 instruction_size = 0 // not used within the interpreter
never@1445 145 };
never@1445 146
never@1445 147 address jump_destination() const {
never@1445 148 ShouldNotCallThis();
never@1445 149 }
never@1445 150
never@1445 151 void set_jump_destination(address dest) {
never@1445 152 ShouldNotCallThis();
never@1445 153 }
never@1445 154
never@1445 155 static void check_verified_entry_alignment(address entry,
never@1445 156 address verified_entry) {
never@1445 157 }
never@1445 158
never@1445 159 static void patch_verified_entry(address entry,
never@1445 160 address verified_entry,
never@1445 161 address dest);
never@1445 162 };
never@1445 163
never@1445 164 inline NativeJump* nativeJump_at(address address) {
never@1445 165 ShouldNotCallThis();
never@1445 166 }
never@1445 167
never@1445 168 class NativeGeneralJump : public NativeInstruction {
never@1445 169 public:
never@1445 170 address jump_destination() const {
never@1445 171 ShouldNotCallThis();
never@1445 172 }
never@1445 173
never@1445 174 static void insert_unconditional(address code_pos, address entry) {
never@1445 175 ShouldNotCallThis();
never@1445 176 }
never@1445 177
never@1445 178 static void replace_mt_safe(address instr_addr, address code_buffer) {
never@1445 179 ShouldNotCallThis();
never@1445 180 }
never@1445 181 };
never@1445 182
never@1445 183 inline NativeGeneralJump* nativeGeneralJump_at(address address) {
never@1445 184 ShouldNotCallThis();
never@1445 185 }

mercurial