src/hotspot/cpu/zero/nativeInst_zero.hpp
author stefank
Thu, 09 May 2019 14:28:30 +0200
changeset 54786 ebf733a324d4
parent 53244 9807daeb47c4
permissions -rw-r--r--
8223624: Cleanup includes of universe.hpp Reviewed-by: coleenp, lkorinth
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
     1
/*
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 49621
diff changeset
     2
 * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
     3
 * Copyright 2007 Red Hat, Inc.
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
     4
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
     5
 *
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
     6
 * This code is free software; you can redistribute it and/or modify it
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
     7
 * under the terms of the GNU General Public License version 2 only, as
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
     8
 * published by the Free Software Foundation.
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
     9
 *
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    10
 * This code is distributed in the hope that it will be useful, but WITHOUT
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    11
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    12
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    13
 * version 2 for more details (a copy is included in the LICENSE file that
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    14
 * accompanied this code).
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    15
 *
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    16
 * You should have received a copy of the GNU General Public License version
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    17
 * 2 along with this work; if not, write to the Free Software Foundation,
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    18
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    19
 *
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 4013
diff changeset
    20
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 4013
diff changeset
    21
 * or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 4013
diff changeset
    22
 * questions.
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    23
 *
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    24
 */
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    25
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 49621
diff changeset
    26
#ifndef CPU_ZERO_NATIVEINST_ZERO_HPP
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 49621
diff changeset
    27
#define CPU_ZERO_NATIVEINST_ZERO_HPP
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    28
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    29
#include "asm/assembler.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    30
#include "runtime/icache.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    31
#include "runtime/os.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    32
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    33
// We have interfaces for the following instructions:
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    34
// - NativeInstruction
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    35
// - - NativeCall
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    36
// - - NativeMovConstReg
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    37
// - - NativeMovConstRegPatching
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    38
// - - NativeJump
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    39
// - - NativeIllegalOpCode
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    40
// - - NativeReturn
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    41
// - - NativeReturnX (return with argument)
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    42
// - - NativePushConst
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    43
// - - NativeTstRegMem
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    44
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    45
// The base class for different kinds of native instruction abstractions.
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    46
// Provides the primitive operations to manipulate code relative to this.
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    47
49364
601146c66cad 8173070: Remove ValueObj class for allocation subclassing for runtime code
coleenp
parents: 47216
diff changeset
    48
class NativeInstruction {
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    49
 public:
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    50
  bool is_jump() {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    51
    ShouldNotCallThis();
19336
ddceb0657500 8022956: Clang: enable return type warnings on BSD
twisti
parents: 7397
diff changeset
    52
    return false;
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    53
  }
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    54
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    55
  bool is_safepoint_poll() {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    56
    ShouldNotCallThis();
19336
ddceb0657500 8022956: Clang: enable return type warnings on BSD
twisti
parents: 7397
diff changeset
    57
    return false;
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    58
  }
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    59
};
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    60
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    61
inline NativeInstruction* nativeInstruction_at(address address) {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    62
  ShouldNotCallThis();
19336
ddceb0657500 8022956: Clang: enable return type warnings on BSD
twisti
parents: 7397
diff changeset
    63
  return NULL;
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    64
}
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    65
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    66
class NativeCall : public NativeInstruction {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    67
 public:
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    68
  enum zero_specific_constants {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    69
    instruction_size = 0 // not used within the interpreter
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    70
  };
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    71
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    72
  address instruction_address() const {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    73
    ShouldNotCallThis();
19336
ddceb0657500 8022956: Clang: enable return type warnings on BSD
twisti
parents: 7397
diff changeset
    74
    return NULL;
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    75
  }
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    76
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    77
  address next_instruction_address() const {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    78
    ShouldNotCallThis();
19336
ddceb0657500 8022956: Clang: enable return type warnings on BSD
twisti
parents: 7397
diff changeset
    79
    return NULL;
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    80
  }
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    81
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    82
  address return_address() const {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    83
    ShouldNotCallThis();
19336
ddceb0657500 8022956: Clang: enable return type warnings on BSD
twisti
parents: 7397
diff changeset
    84
    return NULL;
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    85
  }
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    86
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    87
  address destination() const {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    88
    ShouldNotCallThis();
19336
ddceb0657500 8022956: Clang: enable return type warnings on BSD
twisti
parents: 7397
diff changeset
    89
    return NULL;
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    90
  }
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    91
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    92
  void set_destination_mt_safe(address dest) {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    93
    ShouldNotCallThis();
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    94
  }
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    95
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    96
  void verify_alignment() {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    97
    ShouldNotCallThis();
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    98
  }
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    99
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   100
  void verify() {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   101
    ShouldNotCallThis();
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   102
  }
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   103
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   104
  static bool is_call_before(address return_address) {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   105
    ShouldNotCallThis();
19336
ddceb0657500 8022956: Clang: enable return type warnings on BSD
twisti
parents: 7397
diff changeset
   106
    return false;
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   107
  }
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   108
};
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   109
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   110
inline NativeCall* nativeCall_before(address return_address) {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   111
  ShouldNotCallThis();
19336
ddceb0657500 8022956: Clang: enable return type warnings on BSD
twisti
parents: 7397
diff changeset
   112
  return NULL;
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   113
}
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   114
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   115
inline NativeCall* nativeCall_at(address address) {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   116
  ShouldNotCallThis();
19336
ddceb0657500 8022956: Clang: enable return type warnings on BSD
twisti
parents: 7397
diff changeset
   117
  return NULL;
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   118
}
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   119
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   120
class NativeMovConstReg : public NativeInstruction {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   121
 public:
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   122
  address next_instruction_address() const {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   123
    ShouldNotCallThis();
19336
ddceb0657500 8022956: Clang: enable return type warnings on BSD
twisti
parents: 7397
diff changeset
   124
    return NULL;
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   125
  }
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   126
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   127
  intptr_t data() const {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   128
    ShouldNotCallThis();
19336
ddceb0657500 8022956: Clang: enable return type warnings on BSD
twisti
parents: 7397
diff changeset
   129
    return 0;
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   130
  }
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   131
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   132
  void set_data(intptr_t x) {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   133
    ShouldNotCallThis();
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   134
  }
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   135
};
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   136
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   137
inline NativeMovConstReg* nativeMovConstReg_at(address address) {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   138
  ShouldNotCallThis();
19336
ddceb0657500 8022956: Clang: enable return type warnings on BSD
twisti
parents: 7397
diff changeset
   139
  return NULL;
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   140
}
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   141
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   142
class NativeMovRegMem : public NativeInstruction {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   143
 public:
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   144
  int offset() const {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   145
    ShouldNotCallThis();
19336
ddceb0657500 8022956: Clang: enable return type warnings on BSD
twisti
parents: 7397
diff changeset
   146
    return 0;
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   147
  }
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   148
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   149
  void set_offset(intptr_t x) {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   150
    ShouldNotCallThis();
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   151
  }
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   152
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   153
  void add_offset_in_bytes(int add_offset) {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   154
    ShouldNotCallThis();
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   155
  }
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   156
};
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   157
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   158
inline NativeMovRegMem* nativeMovRegMem_at(address address) {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   159
  ShouldNotCallThis();
19336
ddceb0657500 8022956: Clang: enable return type warnings on BSD
twisti
parents: 7397
diff changeset
   160
  return NULL;
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   161
}
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   162
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   163
class NativeJump : public NativeInstruction {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   164
 public:
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   165
  enum zero_specific_constants {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   166
    instruction_size = 0 // not used within the interpreter
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   167
  };
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   168
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   169
  address jump_destination() const {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   170
    ShouldNotCallThis();
19336
ddceb0657500 8022956: Clang: enable return type warnings on BSD
twisti
parents: 7397
diff changeset
   171
    return NULL;
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   172
  }
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   173
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   174
  void set_jump_destination(address dest) {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   175
    ShouldNotCallThis();
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   176
  }
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   177
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   178
  static void check_verified_entry_alignment(address entry,
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   179
                                             address verified_entry) {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   180
  }
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   181
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   182
  static void patch_verified_entry(address entry,
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   183
                                   address verified_entry,
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   184
                                   address dest);
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   185
};
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   186
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   187
inline NativeJump* nativeJump_at(address address) {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   188
  ShouldNotCallThis();
19336
ddceb0657500 8022956: Clang: enable return type warnings on BSD
twisti
parents: 7397
diff changeset
   189
  return NULL;
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   190
}
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   191
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   192
class NativeGeneralJump : public NativeInstruction {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   193
 public:
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   194
  address jump_destination() const {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   195
    ShouldNotCallThis();
19336
ddceb0657500 8022956: Clang: enable return type warnings on BSD
twisti
parents: 7397
diff changeset
   196
    return NULL;
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   197
  }
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   198
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   199
  static void insert_unconditional(address code_pos, address entry) {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   200
    ShouldNotCallThis();
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   201
  }
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   202
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   203
  static void replace_mt_safe(address instr_addr, address code_buffer) {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   204
    ShouldNotCallThis();
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   205
  }
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   206
};
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   207
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   208
inline NativeGeneralJump* nativeGeneralJump_at(address address) {
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   209
  ShouldNotCallThis();
19336
ddceb0657500 8022956: Clang: enable return type warnings on BSD
twisti
parents: 7397
diff changeset
   210
  return NULL;
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
   211
}
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   212
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 49621
diff changeset
   213
#endif // CPU_ZERO_NATIVEINST_ZERO_HPP