hotspot/src/share/vm/utilities/macros.hpp
author never
Sun, 25 Sep 2011 16:03:29 -0700
changeset 10565 dc90c239f4ec
parent 8495 a4959965eaa3
child 13975 2f7431485cfa
permissions -rw-r--r--
7089790: integrate bsd-port changes Reviewed-by: kvn, twisti, jrose Contributed-by: Kurt Miller <kurt@intricatesoftware.com>, Greg Lewis <glewis@eyesbeyond.com>, Jung-uk Kim <jkim@freebsd.org>, Christos Zoulas <christos@zoulas.com>, Landon Fuller <landonf@plausible.coop>, The FreeBSD Foundation <board@freebsdfoundation.org>, Michael Franz <mvfranz@gmail.com>, Roger Hoover <rhoover@apple.com>, Alexander Strange <astrange@apple.com>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
8495
a4959965eaa3 7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents: 8110
diff changeset
     2
 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
 *
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5403
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5403
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5403
diff changeset
    21
 * questions.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6466
diff changeset
    25
#ifndef SHARE_VM_UTILITIES_MACROS_HPP
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6466
diff changeset
    26
#define SHARE_VM_UTILITIES_MACROS_HPP
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6466
diff changeset
    27
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    28
// Use this to mark code that needs to be cleaned up (for development only)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    29
#define NEEDS_CLEANUP
489c9b5090e2 Initial load
duke
parents:
diff changeset
    30
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
// Makes a string of the argument (which is not macro-expanded)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
#define STR(a)  #a
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
// Makes a string of the macro expansion of a
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
#define XSTR(a) STR(a)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
// KERNEL variant
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
#ifdef KERNEL
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
#define COMPILER1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
#define SERIALGC
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
#define JVMTI_KERNEL
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
#define FPROF_KERNEL
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
#define VM_STRUCTS_KERNEL
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
#define JNICHECK_KERNEL
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
#define SERVICES_KERNEL
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
#define KERNEL_RETURN        {}
8110
c992c8d52344 6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents: 7397
diff changeset
    49
#define KERNEL_RETURN_(code) { return code; }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
#else  // KERNEL
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
#define KERNEL_RETURN        /* next token must be ; */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
#define KERNEL_RETURN_(code) /* next token must be ; */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
#endif // KERNEL
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
// COMPILER1 variant
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
#ifdef COMPILER1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
#ifdef COMPILER2
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
  #define TIERED
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
#define COMPILER1_PRESENT(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
#else // COMPILER1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
#define COMPILER1_PRESENT(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
#endif // COMPILER1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
// COMPILER2 variant
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
#ifdef COMPILER2
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
#define COMPILER2_PRESENT(code) code
1606
dcf9714addbe 6684579: SoftReference processing can be made more efficient
ysr
parents: 1217
diff changeset
    71
#define NOT_COMPILER2(code)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
#else // COMPILER2
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
#define COMPILER2_PRESENT(code)
1606
dcf9714addbe 6684579: SoftReference processing can be made more efficient
ysr
parents: 1217
diff changeset
    74
#define NOT_COMPILER2(code) code
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
#endif // COMPILER2
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6187
diff changeset
    77
#ifdef TIERED
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6187
diff changeset
    78
#define TIERED_ONLY(code) code
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6187
diff changeset
    79
#define NOT_TIERED(code)
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6187
diff changeset
    80
#else
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6187
diff changeset
    81
#define TIERED_ONLY(code)
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6187
diff changeset
    82
#define NOT_TIERED(code) code
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6187
diff changeset
    83
#endif // TIERED
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6187
diff changeset
    84
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
// PRODUCT variant
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
#ifdef PRODUCT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
#define PRODUCT_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
#define NOT_PRODUCT(code)
6438
ace4f8100e90 6979444: add command line option to print command line flags descriptions
ikrylov
parents: 6187
diff changeset
    90
#define NOT_PRODUCT_ARG(arg)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
#define PRODUCT_RETURN  {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
#define PRODUCT_RETURN0 { return 0; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
#define PRODUCT_RETURN_(code) { code }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
#else // PRODUCT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
#define PRODUCT_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
#define NOT_PRODUCT(code) code
6438
ace4f8100e90 6979444: add command line option to print command line flags descriptions
ikrylov
parents: 6187
diff changeset
    97
#define NOT_PRODUCT_ARG(arg) arg,
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
#define PRODUCT_RETURN  /*next token must be ;*/
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
#define PRODUCT_RETURN0 /*next token must be ;*/
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
#define PRODUCT_RETURN_(code)  /*next token must be ;*/
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
#endif // PRODUCT
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
#ifdef CHECK_UNHANDLED_OOPS
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
#define CHECK_UNHANDLED_OOPS_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
#define NOT_CHECK_UNHANDLED_OOPS(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
#define CHECK_UNHANDLED_OOPS_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
#define NOT_CHECK_UNHANDLED_OOPS(code)  code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
#endif // CHECK_UNHANDLED_OOPS
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
#ifdef CC_INTERP
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
#define CC_INTERP_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
#define NOT_CC_INTERP(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
#define CC_INTERP_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
#define NOT_CC_INTERP(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
#endif // CC_INTERP
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
#ifdef ASSERT
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
#define DEBUG_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
#define NOT_DEBUG(code)
2998
b501bd305780 6849716: BitMap - performance regression introduced with G1
jcoomes
parents: 1606
diff changeset
   122
#define NOT_DEBUG_RETURN  /*next token must be ;*/
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
// Historical.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
#define debug_only(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
#else // ASSERT
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
#define DEBUG_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
#define NOT_DEBUG(code) code
2998
b501bd305780 6849716: BitMap - performance regression introduced with G1
jcoomes
parents: 1606
diff changeset
   128
#define NOT_DEBUG_RETURN {}
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
#define debug_only(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
#endif // ASSERT
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
#ifdef  _LP64
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
#define LP64_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
#define NOT_LP64(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
#else  // !_LP64
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
#define LP64_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
#define NOT_LP64(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
#endif // _LP64
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
#ifdef LINUX
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
#define LINUX_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
#define NOT_LINUX(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
#define LINUX_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
#define NOT_LINUX(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
#ifdef SOLARIS
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
#define SOLARIS_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
#define NOT_SOLARIS(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
#define SOLARIS_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
#define NOT_SOLARIS(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
#ifdef _WINDOWS
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
#define WINDOWS_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
#define NOT_WINDOWS(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
#define WINDOWS_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
#define NOT_WINDOWS(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   163
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 8495
diff changeset
   164
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 8495
diff changeset
   165
#define BSD_ONLY(code) code
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 8495
diff changeset
   166
#define NOT_BSD(code)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 8495
diff changeset
   167
#else
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 8495
diff changeset
   168
#define BSD_ONLY(code)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 8495
diff changeset
   169
#define NOT_BSD(code) code
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 8495
diff changeset
   170
#endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 8495
diff changeset
   171
8495
a4959965eaa3 7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents: 8110
diff changeset
   172
#ifdef _WIN64
a4959965eaa3 7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents: 8110
diff changeset
   173
#define WIN64_ONLY(code) code
a4959965eaa3 7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents: 8110
diff changeset
   174
#define NOT_WIN64(code)
a4959965eaa3 7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents: 8110
diff changeset
   175
#else
a4959965eaa3 7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents: 8110
diff changeset
   176
#define WIN64_ONLY(code)
a4959965eaa3 7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents: 8110
diff changeset
   177
#define NOT_WIN64(code) code
a4959965eaa3 7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents: 8110
diff changeset
   178
#endif
a4959965eaa3 7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents: 8110
diff changeset
   179
1066
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   180
#if defined(IA32) || defined(AMD64)
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   181
#define X86
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   182
#define X86_ONLY(code) code
6187
4fa7845f7c14 6976186: integrate Shark HotSpot changes
twisti
parents: 6176
diff changeset
   183
#define NOT_X86(code)
1066
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   184
#else
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   185
#undef X86
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   186
#define X86_ONLY(code)
6187
4fa7845f7c14 6976186: integrate Shark HotSpot changes
twisti
parents: 6176
diff changeset
   187
#define NOT_X86(code) code
1066
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   188
#endif
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   189
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
#ifdef IA32
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
#define IA32_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
#define NOT_IA32(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   193
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   194
#define IA32_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   195
#define NOT_IA32(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
#ifdef IA64
489c9b5090e2 Initial load
duke
parents:
diff changeset
   199
#define IA64_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   200
#define NOT_IA64(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
#define IA64_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
#define NOT_IA64(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   204
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   205
489c9b5090e2 Initial load
duke
parents:
diff changeset
   206
#ifdef AMD64
489c9b5090e2 Initial load
duke
parents:
diff changeset
   207
#define AMD64_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   208
#define NOT_AMD64(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   210
#define AMD64_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   211
#define NOT_AMD64(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   212
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   213
489c9b5090e2 Initial load
duke
parents:
diff changeset
   214
#ifdef SPARC
489c9b5090e2 Initial load
duke
parents:
diff changeset
   215
#define SPARC_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   216
#define NOT_SPARC(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   217
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   218
#define SPARC_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   219
#define NOT_SPARC(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   220
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   221
6176
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   222
#ifdef PPC
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   223
#define PPC_ONLY(code) code
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   224
#define NOT_PPC(code)
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   225
#else
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   226
#define PPC_ONLY(code)
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   227
#define NOT_PPC(code) code
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   228
#endif
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   229
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   230
#ifdef E500V2
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   231
#define E500V2_ONLY(code) code
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   232
#define NOT_E500V2(code)
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   233
#else
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   234
#define E500V2_ONLY(code)
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   235
#define NOT_E500V2(code) code
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   236
#endif
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   237
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   238
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   239
#ifdef ARM
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   240
#define ARM_ONLY(code) code
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   241
#define NOT_ARM(code)
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   242
#else
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   243
#define ARM_ONLY(code)
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   244
#define NOT_ARM(code) code
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   245
#endif
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   246
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   247
#ifdef JAVASE_EMBEDDED
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   248
#define EMBEDDED_ONLY(code) code
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   249
#define NOT_EMBEDDED(code)
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   250
#else
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   251
#define EMBEDDED_ONLY(code)
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   252
#define NOT_EMBEDDED(code) code
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   253
#endif
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   254
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   255
#define define_pd_global(type, name, value) const type pd_##name = value;
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6466
diff changeset
   256
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6466
diff changeset
   257
#endif // SHARE_VM_UTILITIES_MACROS_HPP