1 /*
   2  * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_CLASSFILE_VMSYMBOLS_HPP
  26 #define SHARE_CLASSFILE_VMSYMBOLS_HPP
  27 
  28 #include "classfile/moduleEntry.hpp"
  29 #include "jfr/support/jfrIntrinsics.hpp"
  30 #include "jvmci/vmSymbols_jvmci.hpp"
  31 #include "memory/iterator.hpp"
  32 #include "oops/symbol.hpp"
  33 #include "utilities/macros.hpp"
  34 
  35 
  36 // The class vmSymbols is a name space for fast lookup of
  37 // symbols commonly used in the VM.
  38 //
  39 // Sample usage:
  40 //
  41 //   Symbol* obj       = vmSymbols::java_lang_Object();
  42 
  43 
  44 // Useful sub-macros exported by this header file:
  45 
  46 #define VM_SYMBOL_ENUM_NAME(name)    name##_enum
  47 #define VM_INTRINSIC_IGNORE(id, class, name, sig, flags) /*ignored*/
  48 #define VM_SYMBOL_IGNORE(id, name)                       /*ignored*/
  49 #define VM_ALIAS_IGNORE(id, id2)                         /*ignored*/
  50 
  51 // Mapping function names to values. New entries should be added below.
  52 
  53 #define VM_SYMBOLS_DO(template, do_alias)                                                         \
  54   /* commonly used class, package, module names */                                                \
  55   template(java_base,                                 JAVA_BASE_NAME)                             \
  56   template(java_lang_System,                          "java/lang/System")                         \
  57   template(java_lang_Object,                          "java/lang/Object")                         \
  58   template(java_lang_Class,                           "java/lang/Class")                          \
  59   template(java_lang_Package,                         "java/lang/Package")                        \
  60   template(java_lang_Module,                          "java/lang/Module")                         \
  61   template(java_lang_String,                          "java/lang/String")                         \
  62   template(java_lang_StringLatin1,                    "java/lang/StringLatin1")                   \
  63   template(java_lang_StringUTF16,                     "java/lang/StringUTF16")                    \
  64   template(java_lang_Thread,                          "java/lang/Thread")                         \
  65   template(java_lang_ThreadGroup,                     "java/lang/ThreadGroup")                    \
  66   template(java_lang_Cloneable,                       "java/lang/Cloneable")                      \
  67   template(java_lang_Throwable,                       "java/lang/Throwable")                      \
  68   template(java_lang_ClassLoader,                     "java/lang/ClassLoader")                    \
  69   template(java_lang_ClassLoader_NativeLibrary,       "java/lang/ClassLoader\x024NativeLibrary")  \
  70   template(java_lang_ThreadDeath,                     "java/lang/ThreadDeath")                    \
  71   template(java_lang_Boolean,                         "java/lang/Boolean")                        \
  72   template(java_lang_Character,                       "java/lang/Character")                      \
  73   template(java_lang_Character_CharacterCache,        "java/lang/Character$CharacterCache")       \
  74   template(java_lang_CharacterDataLatin1,             "java/lang/CharacterDataLatin1")            \
  75   template(java_lang_Float,                           "java/lang/Float")                          \
  76   template(java_lang_Double,                          "java/lang/Double")                         \
  77   template(java_lang_Byte,                            "java/lang/Byte")                           \
  78   template(java_lang_Byte_ByteCache,                  "java/lang/Byte$ByteCache")                 \
  79   template(java_lang_Short,                           "java/lang/Short")                          \
  80   template(java_lang_Short_ShortCache,                "java/lang/Short$ShortCache")               \
  81   template(java_lang_Integer,                         "java/lang/Integer")                        \
  82   template(java_lang_Integer_IntegerCache,            "java/lang/Integer$IntegerCache")           \
  83   template(java_lang_Long,                            "java/lang/Long")                           \
  84   template(java_lang_Long_LongCache,                  "java/lang/Long$LongCache")                 \
  85   template(jdk_incubator_vector_VectorIntrinsics,        "jdk/incubator/vector/VectorIntrinsics")         \
  86   template(jdk_incubator_vector_Vector,                  "jdk/incubator/vector/Vector")                   \
  87   template(jdk_incubator_vector_VectorSpecies,           "jdk/incubator/vector/VectorSpecies")            \
  88   template(jdk_incubator_vector_VectorMask,              "jdk/incubator/vector/VectorMask")               \
  89   template(jdk_incubator_vector_VectorAbstractMask,      "jdk/incubator/vector/AbstractMask")             \
  90   template(jdk_incubator_vector_FloatVector,             "jdk/incubator/vector/FloatVector")              \
  91   template(jdk_incubator_vector_FloatVector_FloatSpecies,"jdk/incubator/vector/FloatVector$FloatSpecies") \
  92   template(jdk_incubator_vector_Float64Vector,          "jdk/incubator/vector/Float64Vector")                             \
  93   template(jdk_incubator_vector_Float64Vector_Float64Species,"jdk/incubator/vector/Float64Vector$Float64Species")         \
  94   template(jdk_incubator_vector_Float64Vector_Float64Mask,"jdk/incubator/vector/Float64Vector$Float64Mask")               \
  95   template(jdk_incubator_vector_Float64Vector_Float64Shuffle,"jdk/incubator/vector/Float64Vector$Float64Shuffle")         \
  96   template(jdk_incubator_vector_Float128Vector,          "jdk/incubator/vector/Float128Vector")                           \
  97   template(jdk_incubator_vector_Float128Vector_Float128Species,"jdk/incubator/vector/Float128Vector$Float128Species")     \
  98   template(jdk_incubator_vector_Float128Vector_Float128Mask,"jdk/incubator/vector/Float128Vector$Float128Mask")           \
  99   template(jdk_incubator_vector_Float128Vector_Float128Shuffle,"jdk/incubator/vector/Float128Vector$Float128Shuffle")     \
 100   template(jdk_incubator_vector_Float256Vector,          "jdk/incubator/vector/Float256Vector")                           \
 101   template(jdk_incubator_vector_Float256Vector_Float256Species,"jdk/incubator/vector/Float256Vector$Float256Species")     \
 102   template(jdk_incubator_vector_Float256Vector_Float256Mask,"jdk/incubator/vector/Float256Vector$Float256Mask")           \
 103   template(jdk_incubator_vector_Float256Vector_Float256Shuffle,"jdk/incubator/vector/Float256Vector$Float256Shuffle")     \
 104   template(jdk_incubator_vector_Float512Vector,          "jdk/incubator/vector/Float512Vector")                           \
 105   template(jdk_incubator_vector_Float512Vector_Float512Species,"jdk/incubator/vector/Float512Vector$Float512Species")     \
 106   template(jdk_incubator_vector_Float512Vector_Float512Mask,"jdk/incubator/vector/Float512Vector$Float512Mask")           \
 107   template(jdk_incubator_vector_Float512Vector_Float512Shuffle,"jdk/incubator/vector/Float512Vector$Float512Shuffle")     \
 108   template(jdk_incubator_vector_FloatMaxVector,          "jdk/incubator/vector/FloatMaxVector")                 \
 109   template(jdk_incubator_vector_FloatMaxVector_FloatMaxSpecies,"jdk/incubator/vector/FloatMaxVector$FloatMaxSpecies")     \
 110   template(jdk_incubator_vector_FloatMaxVector_FloatMaxMask,"jdk/incubator/vector/FloatMaxVector$FloatMaxMask")           \
 111   template(jdk_incubator_vector_FloatMaxVector_FloatMaxShuffle,"jdk/incubator/vector/FloatMaxVector$FloatMaxShuffle")     \
 112   template(jdk_incubator_vector_DoubleVector,             "jdk/incubator/vector/DoubleVector")                            \
 113   template(jdk_incubator_vector_DoubleVector_DoubleSpecies,"jdk/incubator/vector/DoubleVector$DoubleSpecies")             \
 114   template(jdk_incubator_vector_Double64Vector,             "jdk/incubator/vector/Double64Vector")                        \
 115   template(jdk_incubator_vector_Double64Vector_Double64Species,"jdk/incubator/vector/Double64Vector$Double64Species")     \
 116   template(jdk_incubator_vector_Double64Vector_Double64Mask,"jdk/incubator/vector/Double64Vector$Double64Mask")           \
 117   template(jdk_incubator_vector_Double64Vector_Double64Shuffle,"jdk/incubator/vector/Double64Vector$Double64Shuffle")     \
 118   template(jdk_incubator_vector_Double128Vector,             "jdk/incubator/vector/Double128Vector")                      \
 119   template(jdk_incubator_vector_Double128Vector_Double128Species,"jdk/incubator/vector/Double128Vector$Double128Species") \
 120   template(jdk_incubator_vector_Double128Vector_Double128Mask,"jdk/incubator/vector/Double128Vector$Double128Mask")       \
 121   template(jdk_incubator_vector_Double128Vector_Double128Shuffle,"jdk/incubator/vector/Double128Vector$Double128Shuffle") \
 122   template(jdk_incubator_vector_Double256Vector,             "jdk/incubator/vector/Double256Vector")                      \
 123   template(jdk_incubator_vector_Double256Vector_Double256Species,"jdk/incubator/vector/Double256Vector$Double256Species") \
 124   template(jdk_incubator_vector_Double256Vector_Double256Mask,"jdk/incubator/vector/Double256Vector$Double256Mask")       \
 125   template(jdk_incubator_vector_Double256Vector_Double256Shuffle,"jdk/incubator/vector/Double256Vector$Double256Shuffle") \
 126   template(jdk_incubator_vector_Double512Vector,             "jdk/incubator/vector/Double512Vector")                      \
 127   template(jdk_incubator_vector_Double512Vector_Double512Species,"jdk/incubator/vector/Double512Vector$Double512Species") \
 128   template(jdk_incubator_vector_Double512Vector_Double512Mask,"jdk/incubator/vector/Double512Vector$Double512Mask")       \
 129   template(jdk_incubator_vector_Double512Vector_Double512Shuffle,"jdk/incubator/vector/Double512Vector$Double512Shuffle") \
 130   template(jdk_incubator_vector_DoubleMaxVector,             "jdk/incubator/vector/DoubleMaxVector")            \
 131   template(jdk_incubator_vector_DoubleMaxVector_DoubleMaxSpecies,"jdk/incubator/vector/DoubleMaxVector$DoubleMaxSpecies")     \
 132   template(jdk_incubator_vector_DoubleMaxVector_DoubleMaxMask,"jdk/incubator/vector/DoubleMaxVector$DoubleMaxMask")           \
 133   template(jdk_incubator_vector_DoubleMaxVector_DoubleMaxShuffle,"jdk/incubator/vector/DoubleMaxVector$DoubleMaxShuffle")     \
 134   template(jdk_incubator_vector_LongVector,               "jdk/incubator/vector/LongVector")                        \
 135   template(jdk_incubator_vector_LongVector_LongSpecies,    "jdk/incubator/vector/LongVector$LongSpecies")           \
 136   template(jdk_incubator_vector_Long64Vector,            "jdk/incubator/vector/Long64Vector")                       \
 137   template(jdk_incubator_vector_Long64Vector_Long64Species,"jdk/incubator/vector/Long64Vector$Long64Species")       \
 138   template(jdk_incubator_vector_Long64Vector_Long64Mask,"jdk/incubator/vector/Long64Vector$Long64Mask")             \
 139   template(jdk_incubator_vector_Long64Vector_Long64Shuffle,"jdk/incubator/vector/Long64Vector$Long64Shuffle")       \
 140   template(jdk_incubator_vector_Long128Vector,            "jdk/incubator/vector/Long128Vector")                     \
 141   template(jdk_incubator_vector_Long128Vector_Long128Species,"jdk/incubator/vector/Long128Vector$Long128Species")   \
 142   template(jdk_incubator_vector_Long128Vector_Long128Mask,"jdk/incubator/vector/Long128Vector$Long128Mask")         \
 143   template(jdk_incubator_vector_Long128Vector_Long128Shuffle,"jdk/incubator/vector/Long128Vector$Long128Shuffle")   \
 144   template(jdk_incubator_vector_Long256Vector,            "jdk/incubator/vector/Long256Vector")                     \
 145   template(jdk_incubator_vector_Long256Vector_Long256Species,"jdk/incubator/vector/Long256Vector$Long256Species")   \
 146   template(jdk_incubator_vector_Long256Vector_Long256Mask,"jdk/incubator/vector/Long256Vector$Long256Mask")         \
 147   template(jdk_incubator_vector_Long256Vector_Long256Shuffle,"jdk/incubator/vector/Long256Vector$Long256Shuffle")   \
 148   template(jdk_incubator_vector_Long512Vector,            "jdk/incubator/vector/Long512Vector")                     \
 149   template(jdk_incubator_vector_Long512Vector_Long512Species,"jdk/incubator/vector/Long512Vector$Long512Species")   \
 150   template(jdk_incubator_vector_Long512Vector_Long512Mask,"jdk/incubator/vector/Long512Vector$Long512Mask")         \
 151   template(jdk_incubator_vector_Long512Vector_Long512Shuffle,"jdk/incubator/vector/Long512Vector$Long512Shuffle")   \
 152   template(jdk_incubator_vector_LongMaxVector,            "jdk/incubator/vector/LongMaxVector")           \
 153   template(jdk_incubator_vector_LongMaxVector_LongMaxSpecies,"jdk/incubator/vector/LongMaxVector$LongMaxSpecies")   \
 154   template(jdk_incubator_vector_LongMaxVector_LongMaxMask,"jdk/incubator/vector/LongMaxVector$LongMaxMask")         \
 155   template(jdk_incubator_vector_LongMaxVector_LongMaxShuffle,"jdk/incubator/vector/LongMaxVector$LongMaxShuffle")   \
 156   template(jdk_incubator_vector_IntVector,               "jdk/incubator/vector/IntVector")                          \
 157   template(jdk_incubator_vector_IntVector_IntSpecies,    "jdk/incubator/vector/IntVector$IntSpecies")               \
 158   template(jdk_incubator_vector_Int64Vector,            "jdk/incubator/vector/Int64Vector")                         \
 159   template(jdk_incubator_vector_Int64Vector_Int64Species,"jdk/incubator/vector/Int64Vector$Int64Species")           \
 160   template(jdk_incubator_vector_Int64Vector_Int64Mask,"jdk/incubator/vector/Int64Vector$Int64Mask")                 \
 161   template(jdk_incubator_vector_Int64Vector_Int64Shuffle,"jdk/incubator/vector/Int64Vector$Int64Shuffle")           \
 162   template(jdk_incubator_vector_Int128Vector,            "jdk/incubator/vector/Int128Vector")                       \
 163   template(jdk_incubator_vector_Int128Vector_Int128Species,"jdk/incubator/vector/Int128Vector$Int128Species")       \
 164   template(jdk_incubator_vector_Int128Vector_Int128Mask,"jdk/incubator/vector/Int128Vector$Int128Mask")             \
 165   template(jdk_incubator_vector_Int128Vector_Int128Shuffle,"jdk/incubator/vector/Int128Vector$Int128Shuffle")       \
 166   template(jdk_incubator_vector_Int256Vector,            "jdk/incubator/vector/Int256Vector")                       \
 167   template(jdk_incubator_vector_Int256Vector_Int256Species,"jdk/incubator/vector/Int256Vector$Int256Species")       \
 168   template(jdk_incubator_vector_Int256Vector_Int256Mask,"jdk/incubator/vector/Int256Vector$Int256Mask")             \
 169   template(jdk_incubator_vector_Int256Vector_Int256Shuffle,"jdk/incubator/vector/Int256Vector$Int256Shuffle")       \
 170   template(jdk_incubator_vector_Int512Vector,            "jdk/incubator/vector/Int512Vector")                       \
 171   template(jdk_incubator_vector_Int512Vector_Int512Species,"jdk/incubator/vector/Int512Vector$Int512Species")       \
 172   template(jdk_incubator_vector_Int512Vector_Int512Mask,"jdk/incubator/vector/Int512Vector$Int512Mask")             \
 173   template(jdk_incubator_vector_Int512Vector_Int512Shuffle,"jdk/incubator/vector/Int512Vector$Int512Shuffle")       \
 174   template(jdk_incubator_vector_IntMaxVector,            "jdk/incubator/vector/IntMaxVector")             \
 175   template(jdk_incubator_vector_IntMaxVector_IntMaxSpecies,"jdk/incubator/vector/IntMaxVector$IntMaxSpecies")       \
 176   template(jdk_incubator_vector_IntMaxVector_IntMaxMask,"jdk/incubator/vector/IntMaxVector$IntMaxMask")             \
 177   template(jdk_incubator_vector_IntMaxVector_IntMaxShuffle,"jdk/incubator/vector/IntMaxVector$IntMaxShuffle")       \
 178   template(jdk_incubator_vector_ByteVector,               "jdk/incubator/vector/ByteVector")                        \
 179   template(jdk_incubator_vector_ByteVector_ByteSpecies,    "jdk/incubator/vector/ByteVector$ByteSpecies")           \
 180   template(jdk_incubator_vector_Byte64Vector,            "jdk/incubator/vector/Byte64Vector")                       \
 181   template(jdk_incubator_vector_Byte64Vector_Byte64Species,"jdk/incubator/vector/Byte64Vector$Byte64Species")       \
 182   template(jdk_incubator_vector_Byte64Vector_Byte64Mask,"jdk/incubator/vector/Byte64Vector$Byte64Mask")             \
 183   template(jdk_incubator_vector_Byte64Vector_Byte64Shuffle,"jdk/incubator/vector/Byte64Vector$Byte64Shuffle")       \
 184   template(jdk_incubator_vector_Byte128Vector,            "jdk/incubator/vector/Byte128Vector")                     \
 185   template(jdk_incubator_vector_Byte128Vector_Byte128Species,"jdk/incubator/vector/Byte128Vector$Byte128Species")   \
 186   template(jdk_incubator_vector_Byte128Vector_Byte128Mask,"jdk/incubator/vector/Byte128Vector$Byte128Mask")         \
 187   template(jdk_incubator_vector_Byte128Vector_Byte128Shuffle,"jdk/incubator/vector/Byte128Vector$Byte128Shuffle")   \
 188   template(jdk_incubator_vector_Byte256Vector,            "jdk/incubator/vector/Byte256Vector")                     \
 189   template(jdk_incubator_vector_Byte256Vector_Byte256Species,"jdk/incubator/vector/Byte256Vector$Byte256Species")   \
 190   template(jdk_incubator_vector_Byte256Vector_Byte256Mask,"jdk/incubator/vector/Byte256Vector$Byte256Mask")         \
 191   template(jdk_incubator_vector_Byte256Vector_Byte256Shuffle,"jdk/incubator/vector/Byte256Vector$Byte256Shuffle")   \
 192   template(jdk_incubator_vector_Byte512Vector,            "jdk/incubator/vector/Byte512Vector")                     \
 193   template(jdk_incubator_vector_Byte512Vector_Byte512Species,"jdk/incubator/vector/Byte512Vector$Byte512Species")   \
 194   template(jdk_incubator_vector_Byte512Vector_Byte512Mask,"jdk/incubator/vector/Byte512Vector$Byte512Mask")         \
 195   template(jdk_incubator_vector_Byte512Vector_Byte512Shuffle,"jdk/incubator/vector/Byte512Vector$Byte512Shuffle")   \
 196   template(jdk_incubator_vector_ByteMaxVector,            "jdk/incubator/vector/ByteMaxVector")           \
 197   template(jdk_incubator_vector_ByteMaxVector_ByteMaxSpecies,"jdk/incubator/vector/ByteMaxVector$ByteMaxSpecies")   \
 198   template(jdk_incubator_vector_ByteMaxVector_ByteMaxMask,"jdk/incubator/vector/ByteMaxVector$ByteMaxMask")         \
 199   template(jdk_incubator_vector_ByteMaxVector_ByteMaxShuffle,"jdk/incubator/vector/ByteMaxVector$ByteMaxShuffle")   \
 200   template(jdk_incubator_vector_ShortVector,               "jdk/incubator/vector/ShortVector")                        \
 201   template(jdk_incubator_vector_ShortVector_ShortSpecies,    "jdk/incubator/vector/ShortVector$ShortSpecies")         \
 202   template(jdk_incubator_vector_Short64Vector,            "jdk/incubator/vector/Short64Vector")                       \
 203   template(jdk_incubator_vector_Short64Vector_Short64Species,"jdk/incubator/vector/Short64Vector$Short64Species")     \
 204   template(jdk_incubator_vector_Short64Vector_Short64Mask,"jdk/incubator/vector/Short64Vector$Short64Mask")           \
 205   template(jdk_incubator_vector_Short64Vector_Short64Shuffle,"jdk/incubator/vector/Short64Vector$Short64Shuffle")     \
 206   template(jdk_incubator_vector_Short128Vector,            "jdk/incubator/vector/Short128Vector")                     \
 207   template(jdk_incubator_vector_Short128Vector_Short128Species,"jdk/incubator/vector/Short128Vector$Short128Species") \
 208   template(jdk_incubator_vector_Short128Vector_Short128Mask,"jdk/incubator/vector/Short128Vector$Short128Mask")       \
 209   template(jdk_incubator_vector_Short128Vector_Short128Shuffle,"jdk/incubator/vector/Short128Vector$Short128Shuffle") \
 210   template(jdk_incubator_vector_Short256Vector,            "jdk/incubator/vector/Short256Vector")                     \
 211   template(jdk_incubator_vector_Short256Vector_Short256Species,"jdk/incubator/vector/Short256Vector$Short256Species") \
 212   template(jdk_incubator_vector_Short256Vector_Short256Mask,"jdk/incubator/vector/Short256Vector$Short256Mask")       \
 213   template(jdk_incubator_vector_Short256Vector_Short256Shuffle,"jdk/incubator/vector/Short256Vector$Short256Shuffle") \
 214   template(jdk_incubator_vector_Short512Vector,            "jdk/incubator/vector/Short512Vector")                     \
 215   template(jdk_incubator_vector_Short512Vector_Short512Species,"jdk/incubator/vector/Short512Vector$Short512Species") \
 216   template(jdk_incubator_vector_Short512Vector_Short512Mask,"jdk/incubator/vector/Short512Vector$Short512Mask")       \
 217   template(jdk_incubator_vector_Short512Vector_Short512Shuffle,"jdk/incubator/vector/Short512Vector$Short512Shuffle") \
 218   template(jdk_incubator_vector_ShortMaxVector,            "jdk/incubator/vector/ShortMaxVector")           \
 219   template(jdk_incubator_vector_ShortMaxVector_ShortMaxSpecies,"jdk/incubator/vector/ShortMaxVector$ShortMaxSpecies") \
 220   template(jdk_incubator_vector_ShortMaxVector_ShortMaxMask,"jdk/incubator/vector/ShortMaxVector$ShortMaxMask")       \
 221   template(jdk_incubator_vector_ShortMaxVector_ShortMaxShuffle,"jdk/incubator/vector/ShortMaxVector$ShortMaxShuffle") \
 222   template(java_lang_Shutdown,                        "java/lang/Shutdown")                       \
 223   template(java_lang_ref_Reference,                   "java/lang/ref/Reference")                  \
 224   template(java_lang_ref_SoftReference,               "java/lang/ref/SoftReference")              \
 225   template(java_lang_ref_WeakReference,               "java/lang/ref/WeakReference")              \
 226   template(java_lang_ref_FinalReference,              "java/lang/ref/FinalReference")             \
 227   template(java_lang_ref_PhantomReference,            "java/lang/ref/PhantomReference")           \
 228   template(java_lang_ref_Finalizer,                   "java/lang/ref/Finalizer")                  \
 229   template(java_lang_reflect_AccessibleObject,        "java/lang/reflect/AccessibleObject")       \
 230   template(java_lang_reflect_Method,                  "java/lang/reflect/Method")                 \
 231   template(java_lang_reflect_Constructor,             "java/lang/reflect/Constructor")            \
 232   template(java_lang_reflect_Field,                   "java/lang/reflect/Field")                  \
 233   template(java_lang_reflect_Parameter,               "java/lang/reflect/Parameter")              \
 234   template(java_lang_reflect_Array,                   "java/lang/reflect/Array")                  \
 235   template(java_lang_StringBuffer,                    "java/lang/StringBuffer")                   \
 236   template(java_lang_StringBuilder,                   "java/lang/StringBuilder")                  \
 237   template(java_lang_CharSequence,                    "java/lang/CharSequence")                   \
 238   template(java_lang_SecurityManager,                 "java/lang/SecurityManager")                \
 239   template(java_security_AccessControlContext,        "java/security/AccessControlContext")       \
 240   template(java_security_AccessController,            "java/security/AccessController")           \
 241   template(executePrivileged_name,                    "executePrivileged")                        \
 242   template(java_security_CodeSource,                  "java/security/CodeSource")                 \
 243   template(java_security_ProtectionDomain,            "java/security/ProtectionDomain")           \
 244   template(java_security_SecureClassLoader,           "java/security/SecureClassLoader")          \
 245   template(java_net_URL,                              "java/net/URL")                             \
 246   template(java_util_jar_Manifest,                    "java/util/jar/Manifest")                   \
 247   template(java_io_OutputStream,                      "java/io/OutputStream")                     \
 248   template(java_io_Reader,                            "java/io/Reader")                           \
 249   template(java_io_BufferedReader,                    "java/io/BufferedReader")                   \
 250   template(java_io_File,                              "java/io/File")                             \
 251   template(java_io_FileInputStream,                   "java/io/FileInputStream")                  \
 252   template(java_io_ByteArrayInputStream,              "java/io/ByteArrayInputStream")             \
 253   template(java_io_Serializable,                      "java/io/Serializable")                     \
 254   template(java_util_Arrays,                          "java/util/Arrays")                         \
 255   template(java_util_Objects,                         "java/util/Objects")                        \
 256   template(java_util_Properties,                      "java/util/Properties")                     \
 257   template(java_util_Vector,                          "java/util/Vector")                         \
 258   template(java_util_AbstractList,                    "java/util/AbstractList")                   \
 259   template(java_util_Hashtable,                       "java/util/Hashtable")                      \
 260   template(java_lang_Compiler,                        "java/lang/Compiler")                       \
 261   template(jdk_internal_misc_Signal,                  "jdk/internal/misc/Signal")                 \
 262   template(jdk_internal_util_Preconditions,           "jdk/internal/util/Preconditions")          \
 263   template(java_lang_AssertionStatusDirectives,       "java/lang/AssertionStatusDirectives")      \
 264   template(getBootClassPathEntryForClass_name,        "getBootClassPathEntryForClass")            \
 265   template(jdk_internal_vm_PostVMInitHook,            "jdk/internal/vm/PostVMInitHook")           \
 266   template(sun_net_www_ParseUtil,                     "sun/net/www/ParseUtil")                    \
 267                                                                                                   \
 268   template(jdk_internal_loader_ClassLoaders_AppClassLoader,      "jdk/internal/loader/ClassLoaders$AppClassLoader")      \
 269   template(jdk_internal_loader_ClassLoaders_PlatformClassLoader, "jdk/internal/loader/ClassLoaders$PlatformClassLoader") \
 270                                                                                                   \
 271   /* Java runtime version access */                                                               \
 272   template(java_lang_VersionProps,                    "java/lang/VersionProps")                   \
 273   template(java_runtime_name_name,                    "java_runtime_name")                        \
 274   template(java_runtime_version_name,                 "java_runtime_version")                     \
 275                                                                                                   \
 276   /* system initialization */                                                                     \
 277   template(initPhase1_name,                           "initPhase1")                               \
 278   template(initPhase2_name,                           "initPhase2")                               \
 279   template(initPhase3_name,                           "initPhase3")                               \
 280   template(java_lang_module_init_signature,           "(Ljava/lang/ClassLoader;Ljava/lang/String;)V") \
 281                                                                                                   \
 282   /* class file format tags */                                                                    \
 283   template(tag_source_file,                           "SourceFile")                               \
 284   template(tag_inner_classes,                         "InnerClasses")                             \
 285   template(tag_nest_members,                          "NestMembers")                              \
 286   template(tag_nest_host,                             "NestHost")                                 \
 287   template(tag_constant_value,                        "ConstantValue")                            \
 288   template(tag_code,                                  "Code")                                     \
 289   template(tag_exceptions,                            "Exceptions")                               \
 290   template(tag_line_number_table,                     "LineNumberTable")                          \
 291   template(tag_local_variable_table,                  "LocalVariableTable")                       \
 292   template(tag_local_variable_type_table,             "LocalVariableTypeTable")                   \
 293   template(tag_method_parameters,                     "MethodParameters")                         \
 294   template(tag_stack_map_table,                       "StackMapTable")                            \
 295   template(tag_synthetic,                             "Synthetic")                                \
 296   template(tag_deprecated,                            "Deprecated")                               \
 297   template(tag_source_debug_extension,                "SourceDebugExtension")                     \
 298   template(tag_signature,                             "Signature")                                \
 299   template(tag_runtime_visible_annotations,           "RuntimeVisibleAnnotations")                \
 300   template(tag_runtime_invisible_annotations,         "RuntimeInvisibleAnnotations")              \
 301   template(tag_runtime_visible_parameter_annotations, "RuntimeVisibleParameterAnnotations")       \
 302   template(tag_runtime_invisible_parameter_annotations,"RuntimeInvisibleParameterAnnotations")    \
 303   template(tag_annotation_default,                    "AnnotationDefault")                        \
 304   template(tag_runtime_visible_type_annotations,      "RuntimeVisibleTypeAnnotations")            \
 305   template(tag_runtime_invisible_type_annotations,    "RuntimeInvisibleTypeAnnotations")          \
 306   template(tag_enclosing_method,                      "EnclosingMethod")                          \
 307   template(tag_bootstrap_methods,                     "BootstrapMethods")                         \
 308                                                                                                   \
 309   /* exception klasses: at least all exceptions thrown by the VM have entries here */             \
 310   template(java_lang_ArithmeticException,             "java/lang/ArithmeticException")            \
 311   template(java_lang_ArrayIndexOutOfBoundsException,  "java/lang/ArrayIndexOutOfBoundsException") \
 312   template(java_lang_ArrayStoreException,             "java/lang/ArrayStoreException")            \
 313   template(java_lang_ClassCastException,              "java/lang/ClassCastException")             \
 314   template(java_lang_ClassNotFoundException,          "java/lang/ClassNotFoundException")         \
 315   template(java_lang_CloneNotSupportedException,      "java/lang/CloneNotSupportedException")     \
 316   template(java_lang_IllegalAccessException,          "java/lang/IllegalAccessException")         \
 317   template(java_lang_IllegalArgumentException,        "java/lang/IllegalArgumentException")       \
 318   template(java_lang_IllegalStateException,           "java/lang/IllegalStateException")          \
 319   template(java_lang_IllegalMonitorStateException,    "java/lang/IllegalMonitorStateException")   \
 320   template(java_lang_IllegalThreadStateException,     "java/lang/IllegalThreadStateException")    \
 321   template(java_lang_IndexOutOfBoundsException,       "java/lang/IndexOutOfBoundsException")      \
 322   template(java_lang_InstantiationException,          "java/lang/InstantiationException")         \
 323   template(java_lang_InstantiationError,              "java/lang/InstantiationError")             \
 324   template(java_lang_InterruptedException,            "java/lang/InterruptedException")           \
 325   template(java_lang_BootstrapMethodError,            "java/lang/BootstrapMethodError")           \
 326   template(java_lang_LinkageError,                    "java/lang/LinkageError")                   \
 327   template(java_lang_NegativeArraySizeException,      "java/lang/NegativeArraySizeException")     \
 328   template(java_lang_NoSuchFieldException,            "java/lang/NoSuchFieldException")           \
 329   template(java_lang_NoSuchMethodException,           "java/lang/NoSuchMethodException")          \
 330   template(java_lang_NullPointerException,            "java/lang/NullPointerException")           \
 331   template(java_lang_StringIndexOutOfBoundsException, "java/lang/StringIndexOutOfBoundsException")\
 332   template(java_lang_UnsupportedOperationException,   "java/lang/UnsupportedOperationException")  \
 333   template(java_lang_InvalidClassException,           "java/lang/InvalidClassException")          \
 334   template(java_lang_reflect_InvocationTargetException, "java/lang/reflect/InvocationTargetException") \
 335   template(java_lang_Exception,                       "java/lang/Exception")                      \
 336   template(java_lang_RuntimeException,                "java/lang/RuntimeException")               \
 337   template(java_io_IOException,                       "java/io/IOException")                      \
 338   template(java_security_PrivilegedActionException,   "java/security/PrivilegedActionException")  \
 339                                                                                                   \
 340   /* error klasses: at least all errors thrown by the VM have entries here */                     \
 341   template(java_lang_AbstractMethodError,             "java/lang/AbstractMethodError")            \
 342   template(java_lang_ClassCircularityError,           "java/lang/ClassCircularityError")          \
 343   template(java_lang_ClassFormatError,                "java/lang/ClassFormatError")               \
 344   template(java_lang_UnsupportedClassVersionError,    "java/lang/UnsupportedClassVersionError")   \
 345   template(java_lang_Error,                           "java/lang/Error")                          \
 346   template(java_lang_ExceptionInInitializerError,     "java/lang/ExceptionInInitializerError")    \
 347   template(java_lang_IllegalAccessError,              "java/lang/IllegalAccessError")             \
 348   template(java_lang_IncompatibleClassChangeError,    "java/lang/IncompatibleClassChangeError")   \
 349   template(java_lang_InternalError,                   "java/lang/InternalError")                  \
 350   template(java_lang_NoClassDefFoundError,            "java/lang/NoClassDefFoundError")           \
 351   template(java_lang_NoSuchFieldError,                "java/lang/NoSuchFieldError")               \
 352   template(java_lang_NoSuchMethodError,               "java/lang/NoSuchMethodError")              \
 353   template(java_lang_OutOfMemoryError,                "java/lang/OutOfMemoryError")               \
 354   template(java_lang_UnsatisfiedLinkError,            "java/lang/UnsatisfiedLinkError")           \
 355   template(java_lang_VerifyError,                     "java/lang/VerifyError")                    \
 356   template(java_lang_SecurityException,               "java/lang/SecurityException")              \
 357   template(java_lang_VirtualMachineError,             "java/lang/VirtualMachineError")            \
 358   template(java_lang_StackOverflowError,              "java/lang/StackOverflowError")             \
 359   template(java_lang_StackTraceElement,               "java/lang/StackTraceElement")              \
 360                                                                                                   \
 361   /* Concurrency support */                                                                       \
 362   template(java_util_concurrent_locks_AbstractOwnableSynchronizer,           "java/util/concurrent/locks/AbstractOwnableSynchronizer") \
 363   template(java_util_concurrent_atomic_AtomicIntegerFieldUpdater_Impl,       "java/util/concurrent/atomic/AtomicIntegerFieldUpdater$AtomicIntegerFieldUpdaterImpl") \
 364   template(java_util_concurrent_atomic_AtomicLongFieldUpdater_CASUpdater,    "java/util/concurrent/atomic/AtomicLongFieldUpdater$CASUpdater") \
 365   template(java_util_concurrent_atomic_AtomicLongFieldUpdater_LockedUpdater, "java/util/concurrent/atomic/AtomicLongFieldUpdater$LockedUpdater") \
 366   template(java_util_concurrent_atomic_AtomicReferenceFieldUpdater_Impl,     "java/util/concurrent/atomic/AtomicReferenceFieldUpdater$AtomicReferenceFieldUpdaterImpl") \
 367   template(jdk_internal_vm_annotation_Contended_signature,                   "Ljdk/internal/vm/annotation/Contended;")    \
 368   template(jdk_internal_vm_annotation_ReservedStackAccess_signature,         "Ljdk/internal/vm/annotation/ReservedStackAccess;") \
 369                                                                                                   \
 370   /* class symbols needed by intrinsics */                                                        \
 371   VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, template, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \
 372                                                                                                   \
 373   /* Support for reflection based on dynamic bytecode generation (JDK 1.4 and above) */           \
 374                                                                                                   \
 375   template(jdk_internal_reflect,                      "jdk/internal/reflect")                     \
 376   template(reflect_MagicAccessorImpl,                 "jdk/internal/reflect/MagicAccessorImpl")       \
 377   template(reflect_MethodAccessorImpl,                "jdk/internal/reflect/MethodAccessorImpl")      \
 378   template(reflect_ConstructorAccessorImpl,           "jdk/internal/reflect/ConstructorAccessorImpl") \
 379   template(reflect_DelegatingClassLoader,             "jdk/internal/reflect/DelegatingClassLoader")   \
 380   template(reflect_Reflection,                        "jdk/internal/reflect/Reflection")              \
 381   template(reflect_CallerSensitive,                   "jdk/internal/reflect/CallerSensitive")         \
 382   template(reflect_CallerSensitive_signature,         "Ljdk/internal/reflect/CallerSensitive;")       \
 383   template(checkedExceptions_name,                    "checkedExceptions")                        \
 384   template(clazz_name,                                "clazz")                                    \
 385   template(exceptionTypes_name,                       "exceptionTypes")                           \
 386   template(modifiers_name,                            "modifiers")                                \
 387   template(newConstructor_name,                       "newConstructor")                           \
 388   template(newField_name,                             "newField")                                 \
 389   template(newMethod_name,                            "newMethod")                                \
 390   template(invokeBasic_name,                          "invokeBasic")                              \
 391   template(linkToVirtual_name,                        "linkToVirtual")                            \
 392   template(linkToStatic_name,                         "linkToStatic")                             \
 393   template(linkToSpecial_name,                        "linkToSpecial")                            \
 394   template(linkToInterface_name,                      "linkToInterface")                          \
 395   template(compiledLambdaForm_name,                   "<compiledLambdaForm>")  /*fake name*/      \
 396   template(star_name,                                 "*") /*not really a name*/                  \
 397   template(invoke_name,                               "invoke")                                   \
 398   template(parameterTypes_name,                       "parameterTypes")                           \
 399   template(returnType_name,                           "returnType")                               \
 400   template(signature_name,                            "signature")                                \
 401   template(slot_name,                                 "slot")                                     \
 402                                                                                                   \
 403   /* Support for annotations (JDK 1.5 and above) */                                               \
 404                                                                                                   \
 405   template(annotations_name,                          "annotations")                              \
 406   template(index_name,                                "index")                                    \
 407   template(executable_name,                           "executable")                               \
 408   template(parameter_annotations_name,                "parameterAnnotations")                     \
 409   template(annotation_default_name,                   "annotationDefault")                        \
 410   template(reflect_ConstantPool,                      "jdk/internal/reflect/ConstantPool")        \
 411   template(reflect_UnsafeStaticFieldAccessorImpl,     "jdk/internal/reflect/UnsafeStaticFieldAccessorImpl")\
 412   template(base_name,                                 "base")                                     \
 413   /* Type Annotations (JDK 8 and above) */                                                        \
 414   template(type_annotations_name,                     "typeAnnotations")                          \
 415                                                                                                   \
 416   /* Intrinsic Annotation (JDK 9 and above) */                                                    \
 417   template(jdk_internal_HotSpotIntrinsicCandidate_signature, "Ljdk/internal/HotSpotIntrinsicCandidate;") \
 418   template(jdk_internal_vm_annotation_DontInline_signature,  "Ljdk/internal/vm/annotation/DontInline;")  \
 419   template(jdk_internal_vm_annotation_ForceInline_signature, "Ljdk/internal/vm/annotation/ForceInline;") \
 420   template(jdk_internal_vm_annotation_Hidden_signature,      "Ljdk/internal/vm/annotation/Hidden;") \
 421   template(jdk_internal_vm_annotation_Stable_signature,      "Ljdk/internal/vm/annotation/Stable;") \
 422                                                                                                   \
 423   /* Support for JSR 292 & invokedynamic (JDK 1.7 and above) */                                   \
 424   template(java_lang_invoke_CallSite,                 "java/lang/invoke/CallSite")                \
 425   template(java_lang_invoke_ConstantCallSite,         "java/lang/invoke/ConstantCallSite")        \
 426   template(java_lang_invoke_DirectMethodHandle,       "java/lang/invoke/DirectMethodHandle")      \
 427   template(java_lang_invoke_MutableCallSite,          "java/lang/invoke/MutableCallSite")         \
 428   template(java_lang_invoke_VolatileCallSite,         "java/lang/invoke/VolatileCallSite")        \
 429   template(java_lang_invoke_MethodHandle,             "java/lang/invoke/MethodHandle")            \
 430   template(java_lang_invoke_VarHandle,                "java/lang/invoke/VarHandle")               \
 431   template(java_lang_invoke_MethodType,               "java/lang/invoke/MethodType")              \
 432   template(java_lang_invoke_MethodType_signature,     "Ljava/lang/invoke/MethodType;")            \
 433   template(java_lang_invoke_ResolvedMethodName_signature, "Ljava/lang/invoke/ResolvedMethodName;")\
 434   template(java_lang_invoke_MemberName_signature,     "Ljava/lang/invoke/MemberName;")            \
 435   template(java_lang_invoke_LambdaForm_signature,     "Ljava/lang/invoke/LambdaForm;")            \
 436   template(java_lang_invoke_MethodHandle_signature,   "Ljava/lang/invoke/MethodHandle;")          \
 437   /* internal classes known only to the JVM: */                                                   \
 438   template(java_lang_invoke_MemberName,               "java/lang/invoke/MemberName")              \
 439   template(java_lang_invoke_ResolvedMethodName,       "java/lang/invoke/ResolvedMethodName")      \
 440   template(java_lang_invoke_MethodHandleNatives,      "java/lang/invoke/MethodHandleNatives")     \
 441   template(java_lang_invoke_MethodHandleNatives_CallSiteContext, "java/lang/invoke/MethodHandleNatives$CallSiteContext") \
 442   template(java_lang_invoke_LambdaForm,               "java/lang/invoke/LambdaForm")              \
 443   template(java_lang_invoke_InjectedProfile_signature, "Ljava/lang/invoke/InjectedProfile;")      \
 444   template(java_lang_invoke_LambdaForm_Compiled_signature, "Ljava/lang/invoke/LambdaForm$Compiled;") \
 445   template(java_lang_invoke_MethodHandleNatives_CallSiteContext_signature, "Ljava/lang/invoke/MethodHandleNatives$CallSiteContext;") \
 446   /* internal up-calls made only by the JVM, via class sun.invoke.MethodHandleNatives: */         \
 447   template(findMethodHandleType_name,                 "findMethodHandleType")                     \
 448   template(findMethodHandleType_signature,       "(Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/invoke/MethodType;") \
 449   template(invokeExact_name,                          "invokeExact")                              \
 450   template(linkMethodHandleConstant_name,             "linkMethodHandleConstant")                 \
 451   template(linkMethodHandleConstant_signature, "(Ljava/lang/Class;ILjava/lang/Class;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/invoke/MethodHandle;") \
 452   template(linkMethod_name,                           "linkMethod")                               \
 453   template(linkMethod_signature, "(Ljava/lang/Class;ILjava/lang/Class;Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/invoke/MemberName;") \
 454   template(linkDynamicConstant_name,                  "linkDynamicConstant")                      \
 455   template(linkDynamicConstant_signature, "(Ljava/lang/Object;ILjava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;") \
 456   template(linkCallSite_name,                         "linkCallSite")                             \
 457   template(linkCallSite_signature, "(Ljava/lang/Object;ILjava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/invoke/MemberName;") \
 458   template(setTargetNormal_name,                      "setTargetNormal")                          \
 459   template(setTargetVolatile_name,                    "setTargetVolatile")                        \
 460   template(setTarget_signature,                       "(Ljava/lang/invoke/MethodHandle;)V")       \
 461   template(DEFAULT_CONTEXT_name,                      "DEFAULT_CONTEXT")                          \
 462   NOT_LP64(  do_alias(intptr_signature,               int_signature)  )                           \
 463   LP64_ONLY( do_alias(intptr_signature,               long_signature) )                           \
 464                                                                                                                                       \
 465   /* Support for JVMCI */                                                                                                             \
 466   JVMCI_VM_SYMBOLS_DO(template, do_alias)                                                         \
 467                                                                                                   \
 468   template(java_lang_StackWalker,                     "java/lang/StackWalker")                    \
 469   template(java_lang_StackFrameInfo,                  "java/lang/StackFrameInfo")                 \
 470   template(java_lang_LiveStackFrameInfo,              "java/lang/LiveStackFrameInfo")             \
 471   template(java_lang_StackStreamFactory_AbstractStackWalker, "java/lang/StackStreamFactory$AbstractStackWalker") \
 472   template(doStackWalk_signature,                     "(JIIII)Ljava/lang/Object;")                \
 473   template(asPrimitive_name,                          "asPrimitive")                              \
 474   template(asPrimitive_int_signature,                 "(I)Ljava/lang/LiveStackFrame$PrimitiveSlot;") \
 475   template(asPrimitive_long_signature,                "(J)Ljava/lang/LiveStackFrame$PrimitiveSlot;") \
 476                                                                                                   \
 477   /* common method and field names */                                                             \
 478   template(object_initializer_name,                   "<init>")                                   \
 479   template(class_initializer_name,                    "<clinit>")                                 \
 480   template(println_name,                              "println")                                  \
 481   template(printStackTrace_name,                      "printStackTrace")                          \
 482   template(main_name,                                 "main")                                     \
 483   template(name_name,                                 "name")                                     \
 484   template(priority_name,                             "priority")                                 \
 485   template(stillborn_name,                            "stillborn")                                \
 486   template(group_name,                                "group")                                    \
 487   template(daemon_name,                               "daemon")                                   \
 488   template(run_method_name,                           "run")                                      \
 489   template(exit_method_name,                          "exit")                                     \
 490   template(add_method_name,                           "add")                                      \
 491   template(remove_method_name,                        "remove")                                   \
 492   template(parent_name,                               "parent")                                   \
 493   template(threads_name,                              "threads")                                  \
 494   template(groups_name,                               "groups")                                   \
 495   template(maxPriority_name,                          "maxPriority")                              \
 496   template(destroyed_name,                            "destroyed")                                \
 497   template(nthreads_name,                             "nthreads")                                 \
 498   template(ngroups_name,                              "ngroups")                                  \
 499   template(shutdown_method_name,                      "shutdown")                                 \
 500   template(bootstrapFinished_method_name,             "bootstrapFinished")                        \
 501   template(finalize_method_name,                      "finalize")                                 \
 502   template(reference_lock_name,                       "lock")                                     \
 503   template(reference_discovered_name,                 "discovered")                               \
 504   template(run_finalization_name,                     "runFinalization")                          \
 505   template(dispatchUncaughtException_name,            "dispatchUncaughtException")                \
 506   template(loadClass_name,                            "loadClass")                                \
 507   template(get_name,                                  "get")                                      \
 508   template(put_name,                                  "put")                                      \
 509   template(type_name,                                 "type")                                     \
 510   template(findNative_name,                           "findNative")                               \
 511   template(deadChild_name,                            "deadChild")                                \
 512   template(getFromClass_name,                         "getFromClass")                             \
 513   template(dispatch_name,                             "dispatch")                                 \
 514   template(getPlatformClassLoader_name,               "getPlatformClassLoader")                   \
 515   template(getSystemClassLoader_name,                 "getSystemClassLoader")                     \
 516   template(fillInStackTrace_name,                     "fillInStackTrace")                         \
 517   template(getCause_name,                             "getCause")                                 \
 518   template(initCause_name,                            "initCause")                                \
 519   template(getProperty_name,                          "getProperty")                              \
 520   template(context_name,                              "context")                                  \
 521   template(contextClassLoader_name,                   "contextClassLoader")                       \
 522   template(inheritedAccessControlContext_name,        "inheritedAccessControlContext")            \
 523   template(getClassContext_name,                      "getClassContext")                          \
 524   template(wait_name,                                 "wait")                                     \
 525   template(checkPackageAccess_name,                   "checkPackageAccess")                       \
 526   template(newInstance0_name,                         "newInstance0")                             \
 527   template(forName_name,                              "forName")                                  \
 528   template(forName0_name,                             "forName0")                                 \
 529   template(isJavaIdentifierStart_name,                "isJavaIdentifierStart")                    \
 530   template(isJavaIdentifierPart_name,                 "isJavaIdentifierPart")                     \
 531   template(cache_field_name,                          "cache")                                    \
 532   template(value_name,                                "value")                                    \
 533   template(compact_strings_name,                      "COMPACT_STRINGS")                          \
 534   template(numberOfLeadingZeros_name,                 "numberOfLeadingZeros")                     \
 535   template(numberOfTrailingZeros_name,                "numberOfTrailingZeros")                    \
 536   template(bitCount_name,                             "bitCount")                                 \
 537   template(profile_name,                              "profile")                                  \
 538   template(equals_name,                               "equals")                                   \
 539   template(target_name,                               "target")                                   \
 540   template(toString_name,                             "toString")                                 \
 541   template(values_name,                               "values")                                   \
 542   template(receiver_name,                             "receiver")                                 \
 543   template(vmtarget_name,                             "vmtarget")                                 \
 544   template(vmholder_name,                             "vmholder")                                 \
 545   template(method_name,                               "method")                                   \
 546   template(vmindex_name,                              "vmindex")                                  \
 547   template(vmcount_name,                              "vmcount")                                  \
 548   template(flags_name,                                "flags")                                    \
 549   template(basicType_name,                            "basicType")                                \
 550   template(append_name,                               "append")                                   \
 551   template(klass_name,                                "klass")                                    \
 552   template(array_klass_name,                          "array_klass")                              \
 553   template(mid_name,                                  "mid")                                      \
 554   template(cpref_name,                                "cpref")                                    \
 555   template(version_name,                              "version")                                  \
 556   template(methodName_name,                           "methodName")                               \
 557   template(fileName_name,                             "fileName")                                 \
 558   template(lineNumber_name,                           "lineNumber")                               \
 559   template(oop_size_name,                             "oop_size")                                 \
 560   template(static_oop_field_count_name,               "static_oop_field_count")                   \
 561   template(protection_domain_name,                    "protection_domain")                        \
 562   template(signers_name,                              "signers_name")                             \
 563   template(source_file_name,                          "source_file")                              \
 564   template(loader_data_name,                          "loader_data")                              \
 565   template(vmdependencies_name,                       "vmdependencies")                           \
 566   template(last_cleanup_name,                         "last_cleanup")                             \
 567   template(loader_name,                               "loader")                                   \
 568   template(getModule_name,                            "getModule")                                \
 569   template(input_stream_void_signature,               "(Ljava/io/InputStream;)V")                 \
 570   template(input_stream_signature,                    "Ljava/io/InputStream;")                    \
 571   template(print_stream_signature,                    "Ljava/io/PrintStream;")                    \
 572   template(security_manager_signature,                "Ljava/lang/SecurityManager;")              \
 573   template(definePackage_name,                        "definePackage")                            \
 574   template(definePackage_signature,                   "(Ljava/lang/String;Ljava/lang/Module;)Ljava/lang/Package;") \
 575   template(defineOrCheckPackage_name,                 "defineOrCheckPackage")                     \
 576   template(defineOrCheckPackage_signature,            "(Ljava/lang/String;Ljava/util/jar/Manifest;Ljava/net/URL;)Ljava/lang/Package;") \
 577   template(fileToEncodedURL_name,                     "fileToEncodedURL")                         \
 578   template(fileToEncodedURL_signature,                "(Ljava/io/File;)Ljava/net/URL;")           \
 579   template(getProtectionDomain_name,                  "getProtectionDomain")                      \
 580   template(getProtectionDomain_signature,             "(Ljava/security/CodeSource;)Ljava/security/ProtectionDomain;") \
 581   template(java_lang_Integer_array_signature,         "[Ljava/lang/Integer;")                     \
 582   template(url_code_signer_array_void_signature,      "(Ljava/net/URL;[Ljava/security/CodeSigner;)V") \
 583   template(module_entry_name,                         "module_entry")                             \
 584   template(resolved_references_name,                  "<resolved_references>")                    \
 585   template(init_lock_name,                            "<init_lock>")                              \
 586                                                                                                   \
 587   /* name symbols needed by intrinsics */                                                         \
 588   VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, template, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \
 589                                                                                                   \
 590   /* common signatures names */                                                                   \
 591   template(void_method_signature,                     "()V")                                      \
 592   template(void_boolean_signature,                    "()Z")                                      \
 593   template(void_byte_signature,                       "()B")                                      \
 594   template(void_char_signature,                       "()C")                                      \
 595   template(void_short_signature,                      "()S")                                      \
 596   template(void_int_signature,                        "()I")                                      \
 597   template(void_long_signature,                       "()J")                                      \
 598   template(void_float_signature,                      "()F")                                      \
 599   template(void_double_signature,                     "()D")                                      \
 600   template(bool_void_signature,                       "(Z)V")                                     \
 601   template(int_void_signature,                        "(I)V")                                     \
 602   template(int_int_signature,                         "(I)I")                                     \
 603   template(char_char_signature,                       "(C)C")                                     \
 604   template(short_short_signature,                     "(S)S")                                     \
 605   template(int_bool_signature,                        "(I)Z")                                     \
 606   template(float_int_signature,                       "(F)I")                                     \
 607   template(double_long_signature,                     "(D)J")                                     \
 608   template(double_double_signature,                   "(D)D")                                     \
 609   template(int_float_signature,                       "(I)F")                                     \
 610   template(long_int_signature,                        "(J)I")                                     \
 611   template(long_long_signature,                       "(J)J")                                     \
 612   template(long_double_signature,                     "(J)D")                                     \
 613   template(byte_signature,                            "B")                                        \
 614   template(char_signature,                            "C")                                        \
 615   template(double_signature,                          "D")                                        \
 616   template(float_signature,                           "F")                                        \
 617   template(int_signature,                             "I")                                        \
 618   template(long_signature,                            "J")                                        \
 619   template(short_signature,                           "S")                                        \
 620   template(bool_signature,                            "Z")                                        \
 621   template(void_signature,                            "V")                                        \
 622   template(bool_array_signature,                      "[Z")                                       \
 623   template(byte_array_signature,                      "[B")                                       \
 624   template(char_array_signature,                      "[C")                                       \
 625   template(int_array_signature,                       "[I")                                       \
 626   template(object_void_signature,                     "(Ljava/lang/Object;)V")                    \
 627   template(object_int_signature,                      "(Ljava/lang/Object;)I")                    \
 628   template(object_boolean_signature,                  "(Ljava/lang/Object;)Z")                    \
 629   template(object_object_signature,                   "(Ljava/lang/Object;)Ljava/lang/Object;")   \
 630   template(string_void_signature,                     "(Ljava/lang/String;)V")                    \
 631   template(string_int_signature,                      "(Ljava/lang/String;)I")                    \
 632   template(throwable_void_signature,                  "(Ljava/lang/Throwable;)V")                 \
 633   template(void_throwable_signature,                  "()Ljava/lang/Throwable;")                  \
 634   template(throwable_throwable_signature,             "(Ljava/lang/Throwable;)Ljava/lang/Throwable;")             \
 635   template(class_void_signature,                      "(Ljava/lang/Class;)V")                     \
 636   template(class_int_signature,                       "(Ljava/lang/Class;)I")                     \
 637   template(class_long_signature,                      "(Ljava/lang/Class;)J")                     \
 638   template(class_boolean_signature,                   "(Ljava/lang/Class;)Z")                     \
 639   template(throwable_string_void_signature,           "(Ljava/lang/Throwable;Ljava/lang/String;)V")               \
 640   template(string_array_void_signature,               "([Ljava/lang/String;)V")                                   \
 641   template(string_array_string_array_void_signature,  "([Ljava/lang/String;[Ljava/lang/String;)V")                \
 642   template(thread_throwable_void_signature,           "(Ljava/lang/Thread;Ljava/lang/Throwable;)V")               \
 643   template(thread_void_signature,                     "(Ljava/lang/Thread;)V")                                    \
 644   template(threadgroup_runnable_void_signature,       "(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;)V")           \
 645   template(threadgroup_string_void_signature,         "(Ljava/lang/ThreadGroup;Ljava/lang/String;)V")             \
 646   template(string_class_signature,                    "(Ljava/lang/String;)Ljava/lang/Class;")                    \
 647   template(object_object_object_signature,            "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;") \
 648   template(string_string_string_signature,            "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;") \
 649   template(string_string_signature,                   "(Ljava/lang/String;)Ljava/lang/String;")                   \
 650   template(classloader_string_long_signature,         "(Ljava/lang/ClassLoader;Ljava/lang/String;)J")             \
 651   template(byte_array_void_signature,                 "([B)V")                                                    \
 652   template(char_array_void_signature,                 "([C)V")                                                    \
 653   template(int_int_void_signature,                    "(II)V")                                                    \
 654   template(long_long_void_signature,                  "(JJ)V")                                                    \
 655   template(void_classloader_signature,                "()Ljava/lang/ClassLoader;")                                \
 656   template(void_object_signature,                     "()Ljava/lang/Object;")                                     \
 657   template(void_class_signature,                      "()Ljava/lang/Class;")                                      \
 658   template(void_class_array_signature,                "()[Ljava/lang/Class;")                                     \
 659   template(void_string_signature,                     "()Ljava/lang/String;")                                     \
 660   template(void_module_signature,                     "()Ljava/lang/Module;")                                     \
 661   template(object_array_object_signature,             "([Ljava/lang/Object;)Ljava/lang/Object;")                  \
 662   template(object_object_array_object_signature,      "(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;")\
 663   template(exception_void_signature,                  "(Ljava/lang/Exception;)V")                                 \
 664   template(protectiondomain_signature,                "[Ljava/security/ProtectionDomain;")                        \
 665   template(accesscontrolcontext_signature,            "Ljava/security/AccessControlContext;")                     \
 666   template(class_protectiondomain_signature,          "(Ljava/lang/Class;Ljava/security/ProtectionDomain;)V")     \
 667   template(thread_signature,                          "Ljava/lang/Thread;")                                       \
 668   template(thread_array_signature,                    "[Ljava/lang/Thread;")                                      \
 669   template(threadgroup_signature,                     "Ljava/lang/ThreadGroup;")                                  \
 670   template(threadgroup_array_signature,               "[Ljava/lang/ThreadGroup;")                                 \
 671   template(class_array_signature,                     "[Ljava/lang/Class;")                                       \
 672   template(classloader_signature,                     "Ljava/lang/ClassLoader;")                                  \
 673   template(object_signature,                          "Ljava/lang/Object;")                                       \
 674   template(object_array_signature,                    "[Ljava/lang/Object;")                                      \
 675   template(class_signature,                           "Ljava/lang/Class;")                                        \
 676   template(string_signature,                          "Ljava/lang/String;")                                       \
 677   template(string_array_signature,                    "[Ljava/lang/String;")                                      \
 678   template(reference_signature,                       "Ljava/lang/ref/Reference;")                                \
 679   template(executable_signature,                      "Ljava/lang/reflect/Executable;")                           \
 680   template(module_signature,                          "Ljava/lang/Module;")                                       \
 681   template(concurrenthashmap_signature,               "Ljava/util/concurrent/ConcurrentHashMap;")                 \
 682   template(String_StringBuilder_signature,            "(Ljava/lang/String;)Ljava/lang/StringBuilder;")            \
 683   template(int_StringBuilder_signature,               "(I)Ljava/lang/StringBuilder;")                             \
 684   template(char_StringBuilder_signature,              "(C)Ljava/lang/StringBuilder;")                             \
 685   template(String_StringBuffer_signature,             "(Ljava/lang/String;)Ljava/lang/StringBuffer;")             \
 686   template(int_StringBuffer_signature,                "(I)Ljava/lang/StringBuffer;")                              \
 687   template(char_StringBuffer_signature,               "(C)Ljava/lang/StringBuffer;")                              \
 688   template(int_String_signature,                      "(I)Ljava/lang/String;")                                    \
 689   template(boolean_boolean_int_signature,             "(ZZ)I")                                                    \
 690   /* signature symbols needed by intrinsics */                                                                    \
 691   VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, template, VM_ALIAS_IGNORE)            \
 692                                                                                                                   \
 693   /* symbol aliases needed by intrinsics */                                                                       \
 694   VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, do_alias)           \
 695                                                                                                                   \
 696   /* returned by the C1 compiler in case there's not enough memory to allocate a new symbol*/                     \
 697   template(dummy_symbol,                              "illegal symbol")                                           \
 698                                                                                                                   \
 699   /* used by ClassFormatError when class name is not known yet */                                                 \
 700   template(unknown_class_name,                        "<Unknown>")                                                \
 701                                                                                                                   \
 702   /* JVM monitoring and management support */                                                                     \
 703   template(java_lang_StackTraceElement_array,          "[Ljava/lang/StackTraceElement;")                          \
 704   template(java_lang_management_ThreadState,           "java/lang/management/ThreadState")                        \
 705   template(java_lang_management_MemoryUsage,           "java/lang/management/MemoryUsage")                        \
 706   template(java_lang_management_ThreadInfo,            "java/lang/management/ThreadInfo")                         \
 707   template(jdk_internal_agent_Agent,                   "jdk/internal/agent/Agent")                                \
 708   template(sun_management_Sensor,                      "sun/management/Sensor")                                   \
 709   template(sun_management_ManagementFactoryHelper,     "sun/management/ManagementFactoryHelper")                  \
 710   template(com_sun_management_internal_DiagnosticCommandImpl,  "com/sun/management/internal/DiagnosticCommandImpl")     \
 711   template(com_sun_management_internal_GarbageCollectorExtImpl,"com/sun/management/internal/GarbageCollectorExtImpl")   \
 712   template(getDiagnosticCommandMBean_name,             "getDiagnosticCommandMBean")                               \
 713   template(getDiagnosticCommandMBean_signature,        "()Lcom/sun/management/DiagnosticCommandMBean;")           \
 714   template(getGcInfoBuilder_name,                      "getGcInfoBuilder")                                        \
 715   template(getGcInfoBuilder_signature,                 "()Lcom/sun/management/internal/GcInfoBuilder;")           \
 716   template(com_sun_management_GcInfo,                  "com/sun/management/GcInfo")                               \
 717   template(com_sun_management_GcInfo_constructor_signature, "(Lcom/sun/management/internal/GcInfoBuilder;JJJ[Ljava/lang/management/MemoryUsage;[Ljava/lang/management/MemoryUsage;[Ljava/lang/Object;)V") \
 718   template(createGCNotification_name,                  "createGCNotification")                                    \
 719   template(createGCNotification_signature,             "(JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/sun/management/GcInfo;)V") \
 720   template(createDiagnosticFrameworkNotification_name, "createDiagnosticFrameworkNotification")                   \
 721   template(createMemoryPoolMBean_name,                 "createMemoryPoolMBean")                                   \
 722   template(createMemoryManagerMBean_name,              "createMemoryManagerMBean")                                \
 723   template(createGarbageCollectorMBean_name,           "createGarbageCollectorMBean")                             \
 724   template(createMemoryPoolMBean_signature,            "(Ljava/lang/String;ZJJ)Ljava/lang/management/MemoryPoolMBean;") \
 725   template(createMemoryManagerMBean_signature,         "(Ljava/lang/String;)Ljava/lang/management/MemoryManagerMBean;") \
 726   template(createGarbageCollectorMBean_signature,      "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/management/GarbageCollectorMBean;") \
 727   template(trigger_name,                               "trigger")                                                 \
 728   template(clear_name,                                 "clear")                                                   \
 729   template(trigger_method_signature,                   "(ILjava/lang/management/MemoryUsage;)V")                  \
 730   template(startAgent_name,                            "startAgent")                                              \
 731   template(startRemoteAgent_name,                      "startRemoteManagementAgent")                              \
 732   template(startLocalAgent_name,                       "startLocalManagementAgent")                               \
 733   template(stopRemoteAgent_name,                       "stopRemoteManagementAgent")                               \
 734   template(getAgentStatus_name,                        "getManagementAgentStatus")                                \
 735   template(java_lang_management_ThreadInfo_constructor_signature, "(Ljava/lang/Thread;ILjava/lang/Object;Ljava/lang/Thread;JJJJ[Ljava/lang/StackTraceElement;)V") \
 736   template(java_lang_management_ThreadInfo_with_locks_constructor_signature, "(Ljava/lang/Thread;ILjava/lang/Object;Ljava/lang/Thread;JJJJ[Ljava/lang/StackTraceElement;[Ljava/lang/Object;[I[Ljava/lang/Object;)V") \
 737   template(long_long_long_long_void_signature,         "(JJJJ)V")                                                 \
 738   template(finalizer_histogram_klass,                  "java/lang/ref/FinalizerHistogram")                        \
 739   template(void_finalizer_histogram_entry_array_signature,  "()[Ljava/lang/ref/FinalizerHistogram$Entry;")                        \
 740   template(get_finalizer_histogram_name,               "getFinalizerHistogram")                                   \
 741   template(finalizer_histogram_entry_name_field,       "className")                                               \
 742   template(finalizer_histogram_entry_count_field,      "instanceCount")                                           \
 743                                                                                                                   \
 744   template(java_lang_management_MemoryPoolMXBean,      "java/lang/management/MemoryPoolMXBean")                   \
 745   template(java_lang_management_MemoryManagerMXBean,   "java/lang/management/MemoryManagerMXBean")                \
 746   template(java_lang_management_GarbageCollectorMXBean,"java/lang/management/GarbageCollectorMXBean")             \
 747   template(gcInfoBuilder_name,                         "gcInfoBuilder")                                           \
 748   template(createMemoryPool_name,                      "createMemoryPool")                                        \
 749   template(createMemoryManager_name,                   "createMemoryManager")                                     \
 750   template(createGarbageCollector_name,                "createGarbageCollector")                                  \
 751   template(createMemoryPool_signature,                 "(Ljava/lang/String;ZJJ)Ljava/lang/management/MemoryPoolMXBean;") \
 752   template(createMemoryManager_signature,              "(Ljava/lang/String;)Ljava/lang/management/MemoryManagerMXBean;") \
 753   template(createGarbageCollector_signature,           "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/management/GarbageCollectorMXBean;") \
 754   template(addThreadDumpForMonitors_name,              "addThreadDumpForMonitors")                                \
 755   template(addThreadDumpForSynchronizers_name,         "addThreadDumpForSynchronizers")                           \
 756   template(addThreadDumpForMonitors_signature,         "(Ljava/lang/management/ThreadInfo;[Ljava/lang/Object;[I)V") \
 757   template(addThreadDumpForSynchronizers_signature,    "(Ljava/lang/management/ThreadInfo;[Ljava/lang/Object;)V")   \
 758                                                                                                                   \
 759   /* JVMTI/java.lang.instrument support and VM Attach mechanism */                                                \
 760   template(jdk_internal_module_Modules,                "jdk/internal/module/Modules")                             \
 761   template(jdk_internal_vm_VMSupport,                  "jdk/internal/vm/VMSupport")                               \
 762   template(addReads_name,                              "addReads")                                                \
 763   template(addReads_signature,                         "(Ljava/lang/Module;Ljava/lang/Module;)V")                 \
 764   template(addExports_name,                            "addExports")                                              \
 765   template(addOpens_name,                              "addOpens")                                                \
 766   template(addExports_signature,                       "(Ljava/lang/Module;Ljava/lang/String;Ljava/lang/Module;)V") \
 767   template(addUses_name,                               "addUses")                                                 \
 768   template(addUses_signature,                          "(Ljava/lang/Module;Ljava/lang/Class;)V")                  \
 769   template(addProvides_name,                           "addProvides")                                             \
 770   template(addProvides_signature,                      "(Ljava/lang/Module;Ljava/lang/Class;Ljava/lang/Class;)V") \
 771   template(loadModule_name,                            "loadModule")                                              \
 772   template(loadModule_signature,                       "(Ljava/lang/String;)Ljava/lang/Module;")                  \
 773   template(transformedByAgent_name,                    "transformedByAgent")                                      \
 774   template(transformedByAgent_signature,               "(Ljava/lang/Module;)V")                                   \
 775   template(appendToClassPathForInstrumentation_name,   "appendToClassPathForInstrumentation")                     \
 776   do_alias(appendToClassPathForInstrumentation_signature, string_void_signature)                                  \
 777   template(serializePropertiesToByteArray_name,        "serializePropertiesToByteArray")                          \
 778   template(serializePropertiesToByteArray_signature,   "()[B")                                                    \
 779   template(serializeAgentPropertiesToByteArray_name,   "serializeAgentPropertiesToByteArray")                     \
 780   template(classRedefinedCount_name,                   "classRedefinedCount")                                     \
 781   template(classLoader_name,                           "classLoader")                                             \
 782   template(componentType_name,                         "componentType")                                           \
 783                                                                                                                   \
 784   /* forEachRemaining support */                                                                                  \
 785   template(java_util_stream_StreamsRangeIntSpliterator,          "java/util/stream/Streams$RangeIntSpliterator")  \
 786                                                                                                                   \
 787   /* jfr signatures */                                                                                            \
 788   JFR_TEMPLATES(template)                                                                                         \
 789                                                                                                                   \
 790   /* cds */                                                                                                       \
 791   template(jdk_internal_loader_ClassLoaders,       "jdk/internal/loader/ClassLoaders")                            \
 792   template(toFileURL_name,                         "toFileURL")                                                   \
 793   template(toFileURL_signature,                    "(Ljava/lang/String;)Ljava/net/URL;")                          \
 794   template(url_void_signature,                     "(Ljava/net/URL;)V")                                           \
 795                                                                                                                   \
 796   /*end*/
 797 
 798 // Here are all the intrinsics known to the runtime and the CI.
 799 // Each intrinsic consists of a public enum name (like _hashCode),
 800 // followed by a specification of its klass, name, and signature:
 801 //    template(<id>,  <klass>,  <name>, <sig>, <FCODE>)
 802 //
 803 // If you add an intrinsic here, you must also define its name
 804 // and signature as members of the VM symbols.  The VM symbols for
 805 // the intrinsic name and signature may be defined above.
 806 //
 807 // Because the VM_SYMBOLS_DO macro makes reference to VM_INTRINSICS_DO,
 808 // you can also define an intrinsic's name and/or signature locally to the
 809 // intrinsic, if this makes sense.  (It often does make sense.)
 810 //
 811 // For example:
 812 //    do_intrinsic(_foo,  java_lang_Object,  foo_name, foo_signature, F_xx)
 813 //     do_name(     foo_name, "foo")
 814 //     do_signature(foo_signature, "()F")
 815 // klass      = vmSymbols::java_lang_Object()
 816 // name       = vmSymbols::foo_name()
 817 // signature  = vmSymbols::foo_signature()
 818 //
 819 // The name and/or signature might be a "well known" symbol
 820 // like "equal" or "()I", in which case there will be no local
 821 // re-definition of the symbol.
 822 //
 823 // The do_class, do_name, and do_signature calls are all used for the
 824 // same purpose:  Define yet another VM symbol.  They could all be merged
 825 // into a common 'do_symbol' call, but it seems useful to record our
 826 // intentions here about kinds of symbols (class vs. name vs. signature).
 827 //
 828 // The F_xx is one of the Flags enum; see below.
 829 //
 830 // for Emacs: (let ((c-backslash-column 120) (c-backslash-max-column 120)) (c-backslash-region (point) (point-max) nil t))
 831 //
 832 //
 833 // There are two types of intrinsic methods: (1) Library intrinsics and (2) bytecode intrinsics.
 834 //
 835 // (1) A library intrinsic method may be replaced with hand-crafted assembly code,
 836 // with hand-crafted compiler IR, or with a combination of the two. The semantics
 837 // of the replacement code may differ from the semantics of the replaced code.
 838 //
 839 // (2) Bytecode intrinsic methods are not replaced by special code, but they are
 840 // treated in some other special way by the compiler. For example, the compiler
 841 // may delay inlining for some String-related intrinsic methods (e.g., some methods
 842 // defined in the StringBuilder and StringBuffer classes, see
 843 // Compile::should_delay_string_inlining() for more details).
 844 //
 845 // Due to the difference between the semantics of an intrinsic method as defined
 846 // in the (Java) source code and the semantics of the method as defined
 847 // by the code in the VM, intrinsic methods must be explicitly marked.
 848 //
 849 // Intrinsic methods are marked by the jdk.internal.HotSpotIntrinsicCandidate
 850 // annotation. If CheckIntrinsics is enabled, the VM performs the following
 851 // checks when a class C is loaded: (1) all intrinsics defined by the VM for
 852 // class C are present in the loaded class file and are marked;
 853 // (2) an intrinsic is defined by the VM for all marked methods of class C;
 854 // (3) check for orphan methods in class C (i.e., methods for which the VM
 855 // declares an intrinsic but that are not declared for the loaded class C.
 856 // Check (3) is available only in debug builds.
 857 //
 858 // If a mismatch is detected for a method, the VM behaves differently depending
 859 // on the type of build. A fastdebug build exits and reports an error on a mismatch.
 860 // A product build will not replace an unmarked library intrinsic method with
 861 // hand-crafted code, that is, unmarked library intrinsics are treated as ordinary
 862 // methods in a product build. The special treatment of a bytecode intrinsic method
 863 // persists even if the method not marked.
 864 //
 865 // When adding an intrinsic for a method, please make sure to appropriately
 866 // annotate the method in the source code. The list below contains all
 867 // library intrinsics followed by bytecode intrinsics. Please also make sure to
 868 // add the declaration of the intrinsic to the approriate section of the list.
 869 #define VM_INTRINSICS_DO(do_intrinsic, do_class, do_name, do_signature, do_alias)                                       \
 870   /* (1) Library intrinsics                                                                        */                   \
 871   do_intrinsic(_hashCode,                 java_lang_Object,       hashCode_name, void_int_signature,             F_R)   \
 872    do_name(     hashCode_name,                                   "hashCode")                                            \
 873   do_intrinsic(_getClass,                 java_lang_Object,       getClass_name, void_class_signature,           F_R)   \
 874    do_name(     getClass_name,                                   "getClass")                                            \
 875   do_intrinsic(_clone,                    java_lang_Object,       clone_name, void_object_signature,             F_R)   \
 876    do_name(     clone_name,                                      "clone")                                               \
 877   do_intrinsic(_notify,                   java_lang_Object,       notify_name, void_method_signature,            F_R)   \
 878    do_name(     notify_name,                                     "notify")                                              \
 879   do_intrinsic(_notifyAll,                java_lang_Object,       notifyAll_name, void_method_signature,         F_R)   \
 880    do_name(     notifyAll_name,                                  "notifyAll")                                           \
 881                                                                                                                         \
 882   /* Math & StrictMath intrinsics are defined in terms of just a few signatures: */                                     \
 883   do_class(java_lang_Math,                "java/lang/Math")                                                             \
 884   do_class(java_lang_StrictMath,          "java/lang/StrictMath")                                                       \
 885   do_signature(double2_double_signature,  "(DD)D")                                                                      \
 886   do_signature(double3_double_signature,  "(DDD)D")                                                                     \
 887   do_signature(float2_float_signature,    "(FF)F")                                                                      \
 888   do_signature(float3_float_signature,    "(FFF)F")                                                                     \
 889   do_signature(int2_int_signature,        "(II)I")                                                                      \
 890   do_signature(long2_long_signature,      "(JJ)J")                                                                      \
 891                                                                                                                         \
 892   /* here are the math names, all together: */                                                                          \
 893   do_name(abs_name,"abs")       do_name(sin_name,"sin")         do_name(cos_name,"cos")                                 \
 894   do_name(tan_name,"tan")       do_name(atan2_name,"atan2")     do_name(sqrt_name,"sqrt")                               \
 895   do_name(log_name,"log")       do_name(log10_name,"log10")     do_name(pow_name,"pow")                                 \
 896   do_name(exp_name,"exp")       do_name(min_name,"min")         do_name(max_name,"max")                                 \
 897                                                                                                                         \
 898   do_name(addExact_name,"addExact")                                                                                     \
 899   do_name(decrementExact_name,"decrementExact")                                                                         \
 900   do_name(incrementExact_name,"incrementExact")                                                                         \
 901   do_name(multiplyExact_name,"multiplyExact")                                                                           \
 902   do_name(multiplyHigh_name,"multiplyHigh")                                                                             \
 903   do_name(negateExact_name,"negateExact")                                                                               \
 904   do_name(subtractExact_name,"subtractExact")                                                                           \
 905   do_name(fma_name, "fma")                                                                                              \
 906                                                                                                                         \
 907   do_intrinsic(_dabs,                     java_lang_Math,         abs_name,   double_double_signature,           F_S)   \
 908   do_intrinsic(_dsin,                     java_lang_Math,         sin_name,   double_double_signature,           F_S)   \
 909   do_intrinsic(_dcos,                     java_lang_Math,         cos_name,   double_double_signature,           F_S)   \
 910   do_intrinsic(_dtan,                     java_lang_Math,         tan_name,   double_double_signature,           F_S)   \
 911   do_intrinsic(_datan2,                   java_lang_Math,         atan2_name, double2_double_signature,          F_S)   \
 912   do_intrinsic(_dsqrt,                    java_lang_Math,         sqrt_name,  double_double_signature,           F_S)   \
 913   do_intrinsic(_dlog,                     java_lang_Math,         log_name,   double_double_signature,           F_S)   \
 914   do_intrinsic(_dlog10,                   java_lang_Math,         log10_name, double_double_signature,           F_S)   \
 915   do_intrinsic(_dpow,                     java_lang_Math,         pow_name,   double2_double_signature,          F_S)   \
 916   do_intrinsic(_dexp,                     java_lang_Math,         exp_name,   double_double_signature,           F_S)   \
 917   do_intrinsic(_min,                      java_lang_Math,         min_name,   int2_int_signature,                F_S)   \
 918   do_intrinsic(_max,                      java_lang_Math,         max_name,   int2_int_signature,                F_S)   \
 919   do_intrinsic(_addExactI,                java_lang_Math,         addExact_name, int2_int_signature,             F_S)   \
 920   do_intrinsic(_addExactL,                java_lang_Math,         addExact_name, long2_long_signature,           F_S)   \
 921   do_intrinsic(_decrementExactI,          java_lang_Math,         decrementExact_name, int_int_signature,        F_S)   \
 922   do_intrinsic(_decrementExactL,          java_lang_Math,         decrementExact_name, long_long_signature,      F_S)   \
 923   do_intrinsic(_incrementExactI,          java_lang_Math,         incrementExact_name, int_int_signature,        F_S)   \
 924   do_intrinsic(_incrementExactL,          java_lang_Math,         incrementExact_name, long_long_signature,      F_S)   \
 925   do_intrinsic(_multiplyExactI,           java_lang_Math,         multiplyExact_name, int2_int_signature,        F_S)   \
 926   do_intrinsic(_multiplyExactL,           java_lang_Math,         multiplyExact_name, long2_long_signature,      F_S)   \
 927   do_intrinsic(_multiplyHigh,             java_lang_Math,         multiplyHigh_name, long2_long_signature,       F_S)   \
 928   do_intrinsic(_negateExactI,             java_lang_Math,         negateExact_name, int_int_signature,           F_S)   \
 929   do_intrinsic(_negateExactL,             java_lang_Math,         negateExact_name, long_long_signature,         F_S)   \
 930   do_intrinsic(_subtractExactI,           java_lang_Math,         subtractExact_name, int2_int_signature,        F_S)   \
 931   do_intrinsic(_subtractExactL,           java_lang_Math,         subtractExact_name, long2_long_signature,      F_S)   \
 932   do_intrinsic(_fmaD,                     java_lang_Math,         fma_name,           double3_double_signature,  F_S)   \
 933   do_intrinsic(_fmaF,                     java_lang_Math,         fma_name,           float3_float_signature,    F_S)   \
 934   do_intrinsic(_maxF,                     java_lang_Math,         max_name,           float2_float_signature,    F_S)   \
 935   do_intrinsic(_minF,                     java_lang_Math,         min_name,           float2_float_signature,    F_S)   \
 936   do_intrinsic(_maxD,                     java_lang_Math,         max_name,           double2_double_signature,  F_S)   \
 937   do_intrinsic(_minD,                     java_lang_Math,         min_name,           double2_double_signature,  F_S)   \
 938                                                                                                                         \
 939   do_intrinsic(_floatToRawIntBits,        java_lang_Float,        floatToRawIntBits_name,   float_int_signature, F_S)   \
 940    do_name(     floatToRawIntBits_name,                          "floatToRawIntBits")                                   \
 941   do_intrinsic(_floatToIntBits,           java_lang_Float,        floatToIntBits_name,      float_int_signature, F_S)   \
 942    do_name(     floatToIntBits_name,                             "floatToIntBits")                                      \
 943   do_intrinsic(_intBitsToFloat,           java_lang_Float,        intBitsToFloat_name,      int_float_signature, F_S)   \
 944    do_name(     intBitsToFloat_name,                             "intBitsToFloat")                                      \
 945   do_intrinsic(_doubleToRawLongBits,      java_lang_Double,       doubleToRawLongBits_name, double_long_signature, F_S) \
 946    do_name(     doubleToRawLongBits_name,                        "doubleToRawLongBits")                                 \
 947   do_intrinsic(_doubleToLongBits,         java_lang_Double,       doubleToLongBits_name,    double_long_signature, F_S) \
 948    do_name(     doubleToLongBits_name,                           "doubleToLongBits")                                    \
 949   do_intrinsic(_longBitsToDouble,         java_lang_Double,       longBitsToDouble_name,    long_double_signature, F_S) \
 950    do_name(     longBitsToDouble_name,                           "longBitsToDouble")                                    \
 951                                                                                                                         \
 952   do_intrinsic(_numberOfLeadingZeros_i,   java_lang_Integer,      numberOfLeadingZeros_name,int_int_signature,   F_S)   \
 953   do_intrinsic(_numberOfLeadingZeros_l,   java_lang_Long,         numberOfLeadingZeros_name,long_int_signature,  F_S)   \
 954                                                                                                                         \
 955   do_intrinsic(_numberOfTrailingZeros_i,  java_lang_Integer,      numberOfTrailingZeros_name,int_int_signature,  F_S)   \
 956   do_intrinsic(_numberOfTrailingZeros_l,  java_lang_Long,         numberOfTrailingZeros_name,long_int_signature, F_S)   \
 957                                                                                                                         \
 958   do_intrinsic(_bitCount_i,               java_lang_Integer,      bitCount_name,            int_int_signature,   F_S)   \
 959   do_intrinsic(_bitCount_l,               java_lang_Long,         bitCount_name,            long_int_signature,  F_S)   \
 960                                                                                                                         \
 961   do_intrinsic(_reverseBytes_i,           java_lang_Integer,      reverseBytes_name,        int_int_signature,   F_S)   \
 962    do_name(     reverseBytes_name,                               "reverseBytes")                                        \
 963   do_intrinsic(_reverseBytes_l,           java_lang_Long,         reverseBytes_name,        long_long_signature, F_S)   \
 964     /*  (symbol reverseBytes_name defined above) */                                                                     \
 965   do_intrinsic(_reverseBytes_c,           java_lang_Character,    reverseBytes_name,        char_char_signature, F_S)   \
 966     /*  (symbol reverseBytes_name defined above) */                                                                     \
 967   do_intrinsic(_reverseBytes_s,           java_lang_Short,        reverseBytes_name,        short_short_signature, F_S) \
 968     /*  (symbol reverseBytes_name defined above) */                                                                     \
 969                                                                                                                         \
 970   do_intrinsic(_identityHashCode,         java_lang_System,       identityHashCode_name, object_int_signature,   F_S)   \
 971    do_name(     identityHashCode_name,                           "identityHashCode")                                    \
 972   do_intrinsic(_currentTimeMillis,        java_lang_System,       currentTimeMillis_name, void_long_signature,   F_S)   \
 973                                                                                                                         \
 974    do_name(     currentTimeMillis_name,                          "currentTimeMillis")                                   \
 975   do_intrinsic(_nanoTime,                 java_lang_System,       nanoTime_name,          void_long_signature,   F_S)   \
 976    do_name(     nanoTime_name,                                   "nanoTime")                                            \
 977                                                                                                                         \
 978   JFR_INTRINSICS(do_intrinsic, do_class, do_name, do_signature, do_alias)                                               \
 979                                                                                                                         \
 980   do_intrinsic(_arraycopy,                java_lang_System,       arraycopy_name, arraycopy_signature,           F_S)   \
 981    do_name(     arraycopy_name,                                  "arraycopy")                                           \
 982    do_signature(arraycopy_signature,                             "(Ljava/lang/Object;ILjava/lang/Object;II)V")          \
 983   do_intrinsic(_isInterrupted,            java_lang_Thread,       isInterrupted_name, isInterrupted_signature,   F_R)   \
 984    do_name(     isInterrupted_name,                              "isInterrupted")                                       \
 985    do_signature(isInterrupted_signature,                         "(Z)Z")                                                \
 986   do_intrinsic(_currentThread,            java_lang_Thread,       currentThread_name, currentThread_signature,   F_S)   \
 987    do_name(     currentThread_name,                              "currentThread")                                       \
 988    do_signature(currentThread_signature,                         "()Ljava/lang/Thread;")                                \
 989                                                                                                                         \
 990   /* reflective intrinsics, for java/lang/Class, etc. */                                                                \
 991   do_intrinsic(_isAssignableFrom,         java_lang_Class,        isAssignableFrom_name, class_boolean_signature, F_RN) \
 992    do_name(     isAssignableFrom_name,                           "isAssignableFrom")                                    \
 993   do_intrinsic(_isInstance,               java_lang_Class,        isInstance_name, object_boolean_signature,     F_RN)  \
 994    do_name(     isInstance_name,                                 "isInstance")                                          \
 995   do_intrinsic(_getModifiers,             java_lang_Class,        getModifiers_name, void_int_signature,         F_RN)  \
 996    do_name(     getModifiers_name,                               "getModifiers")                                        \
 997   do_intrinsic(_isInterface,              java_lang_Class,        isInterface_name, void_boolean_signature,      F_RN)  \
 998    do_name(     isInterface_name,                                "isInterface")                                         \
 999   do_intrinsic(_isArray,                  java_lang_Class,        isArray_name, void_boolean_signature,          F_RN)  \
1000    do_name(     isArray_name,                                    "isArray")                                             \
1001   do_intrinsic(_isPrimitive,              java_lang_Class,        isPrimitive_name, void_boolean_signature,      F_RN)  \
1002    do_name(     isPrimitive_name,                                "isPrimitive")                                         \
1003   do_intrinsic(_getSuperclass,            java_lang_Class,        getSuperclass_name, void_class_signature,      F_RN)  \
1004    do_name(     getSuperclass_name,                              "getSuperclass")                                       \
1005   do_intrinsic(_Class_cast,               java_lang_Class,        Class_cast_name, object_object_signature,      F_R)   \
1006    do_name(     Class_cast_name,                                 "cast")                                                \
1007                                                                                                                         \
1008   do_intrinsic(_getClassAccessFlags,      reflect_Reflection,     getClassAccessFlags_name, class_int_signature, F_SN)  \
1009    do_name(     getClassAccessFlags_name,                        "getClassAccessFlags")                                 \
1010   do_intrinsic(_getLength,                java_lang_reflect_Array, getLength_name, object_int_signature,         F_SN)  \
1011    do_name(     getLength_name,                                   "getLength")                                          \
1012                                                                                                                         \
1013   do_intrinsic(_getCallerClass,           reflect_Reflection,     getCallerClass_name, void_class_signature,     F_SN)  \
1014    do_name(     getCallerClass_name,                             "getCallerClass")                                      \
1015                                                                                                                         \
1016   do_intrinsic(_newArray,                 java_lang_reflect_Array, newArray_name, newArray_signature,            F_SN)  \
1017    do_name(     newArray_name,                                    "newArray")                                           \
1018    do_signature(newArray_signature,                               "(Ljava/lang/Class;I)Ljava/lang/Object;")             \
1019                                                                                                                         \
1020   do_intrinsic(_onSpinWait,               java_lang_Thread,       onSpinWait_name, onSpinWait_signature,         F_S)   \
1021    do_name(     onSpinWait_name,                                  "onSpinWait")                                         \
1022    do_alias(    onSpinWait_signature,                             void_method_signature)                                \
1023                                                                                                                         \
1024   do_intrinsic(_copyOf,                   java_util_Arrays,       copyOf_name, copyOf_signature,                 F_S)   \
1025    do_name(     copyOf_name,                                     "copyOf")                                              \
1026    do_signature(copyOf_signature,             "([Ljava/lang/Object;ILjava/lang/Class;)[Ljava/lang/Object;")             \
1027                                                                                                                         \
1028   do_intrinsic(_copyOfRange,              java_util_Arrays,       copyOfRange_name, copyOfRange_signature,       F_S)   \
1029    do_name(     copyOfRange_name,                                "copyOfRange")                                         \
1030    do_signature(copyOfRange_signature,        "([Ljava/lang/Object;IILjava/lang/Class;)[Ljava/lang/Object;")            \
1031                                                                                                                         \
1032   do_intrinsic(_equalsC,                  java_util_Arrays,       equals_name,    equalsC_signature,             F_S)   \
1033    do_signature(equalsC_signature,                               "([C[C)Z")                                             \
1034   do_intrinsic(_equalsB,                  java_util_Arrays,       equals_name,    equalsB_signature,             F_S)   \
1035    do_signature(equalsB_signature,                               "([B[B)Z")                                             \
1036                                                                                                                         \
1037   do_intrinsic(_compressStringC,          java_lang_StringUTF16,  compress_name, encodeISOArray_signature,       F_S)   \
1038    do_name(     compress_name,                                   "compress")                                            \
1039   do_intrinsic(_compressStringB,          java_lang_StringUTF16,  compress_name, indexOfI_signature,             F_S)   \
1040   do_intrinsic(_inflateStringC,           java_lang_StringLatin1, inflate_name, inflateC_signature,              F_S)   \
1041    do_name(     inflate_name,                                    "inflate")                                             \
1042    do_signature(inflateC_signature,                              "([BI[CII)V")                                          \
1043   do_intrinsic(_inflateStringB,           java_lang_StringLatin1, inflate_name, inflateB_signature,              F_S)   \
1044    do_signature(inflateB_signature,                              "([BI[BII)V")                                          \
1045   do_intrinsic(_toBytesStringU,           java_lang_StringUTF16, toBytes_name, toBytesU_signature,               F_S)   \
1046    do_name(     toBytes_name,                                    "toBytes")                                             \
1047    do_signature(toBytesU_signature,                              "([CII)[B")                                            \
1048   do_intrinsic(_getCharsStringU,          java_lang_StringUTF16, getCharsU_name, getCharsU_signature,            F_S)   \
1049    do_name(     getCharsU_name,                                  "getChars")                                            \
1050    do_signature(getCharsU_signature,                             "([BII[CI)V")                                          \
1051   do_intrinsic(_getCharStringU,           java_lang_StringUTF16, getChar_name, getCharStringU_signature,         F_S)   \
1052    do_signature(getCharStringU_signature,                        "([BI)C")                                              \
1053   do_intrinsic(_putCharStringU,           java_lang_StringUTF16, putChar_name, putCharStringU_signature,         F_S)   \
1054    do_signature(putCharStringU_signature,                        "([BII)V")                                             \
1055   do_intrinsic(_compareToL,               java_lang_StringLatin1,compareTo_name, compareTo_indexOf_signature,    F_S)   \
1056   do_intrinsic(_compareToU,               java_lang_StringUTF16, compareTo_name, compareTo_indexOf_signature,    F_S)   \
1057   do_intrinsic(_compareToLU,              java_lang_StringLatin1,compareToLU_name, compareTo_indexOf_signature,  F_S)   \
1058   do_intrinsic(_compareToUL,              java_lang_StringUTF16, compareToUL_name, compareTo_indexOf_signature,  F_S)   \
1059    do_signature(compareTo_indexOf_signature,                     "([B[B)I")                                             \
1060    do_name(     compareTo_name,                                  "compareTo")                                           \
1061    do_name(     compareToLU_name,                                "compareToUTF16")                                      \
1062    do_name(     compareToUL_name,                                "compareToLatin1")                                     \
1063   do_intrinsic(_indexOfL,                 java_lang_StringLatin1,indexOf_name, compareTo_indexOf_signature,      F_S)   \
1064   do_intrinsic(_indexOfU,                 java_lang_StringUTF16, indexOf_name, compareTo_indexOf_signature,      F_S)   \
1065   do_intrinsic(_indexOfUL,                java_lang_StringUTF16, indexOfUL_name, compareTo_indexOf_signature,    F_S)   \
1066   do_intrinsic(_indexOfIL,                java_lang_StringLatin1,indexOf_name, indexOfI_signature,               F_S)   \
1067   do_intrinsic(_indexOfIU,                java_lang_StringUTF16, indexOf_name, indexOfI_signature,               F_S)   \
1068   do_intrinsic(_indexOfIUL,               java_lang_StringUTF16, indexOfUL_name, indexOfI_signature,             F_S)   \
1069   do_intrinsic(_indexOfU_char,            java_lang_StringUTF16, indexOfChar_name, indexOfChar_signature,        F_S)   \
1070    do_name(     indexOf_name,                                    "indexOf")                                             \
1071    do_name(     indexOfChar_name,                                "indexOfChar")                                         \
1072    do_name(     indexOfUL_name,                                  "indexOfLatin1")                                       \
1073    do_signature(indexOfI_signature,                              "([BI[BII)I")                                          \
1074    do_signature(indexOfChar_signature,                           "([BIII)I")                                            \
1075   do_intrinsic(_equalsL,                  java_lang_StringLatin1,equals_name, equalsB_signature,                 F_S)   \
1076   do_intrinsic(_equalsU,                  java_lang_StringUTF16, equals_name, equalsB_signature,                 F_S)   \
1077                                                                                                                         \
1078   do_intrinsic(_isDigit,                  java_lang_CharacterDataLatin1, isDigit_name,      int_bool_signature,  F_R)   \
1079    do_name(     isDigit_name,                                           "isDigit")                                      \
1080   do_intrinsic(_isLowerCase,              java_lang_CharacterDataLatin1, isLowerCase_name,  int_bool_signature,  F_R)   \
1081    do_name(     isLowerCase_name,                                       "isLowerCase")                                  \
1082   do_intrinsic(_isUpperCase,              java_lang_CharacterDataLatin1, isUpperCase_name,  int_bool_signature,  F_R)   \
1083    do_name(     isUpperCase_name,                                       "isUpperCase")                                  \
1084   do_intrinsic(_isWhitespace,             java_lang_CharacterDataLatin1, isWhitespace_name, int_bool_signature,  F_R)   \
1085    do_name(     isWhitespace_name,                                      "isWhitespace")                                 \
1086                                                                                                                         \
1087   do_intrinsic(_Preconditions_checkIndex, jdk_internal_util_Preconditions, checkIndex_name, Preconditions_checkIndex_signature, F_S)   \
1088    do_signature(Preconditions_checkIndex_signature,              "(IILjava/util/function/BiFunction;)I")                \
1089                                                                                                                         \
1090   do_class(java_nio_Buffer,               "java/nio/Buffer")                                                            \
1091   do_intrinsic(_checkIndex,               java_nio_Buffer,        checkIndex_name, int_int_signature,            F_R)   \
1092    do_name(     checkIndex_name,                                 "checkIndex")                                          \
1093                                                                                                                         \
1094   do_class(java_lang_StringCoding,        "java/lang/StringCoding")                                                     \
1095   do_intrinsic(_hasNegatives,             java_lang_StringCoding, hasNegatives_name, hasNegatives_signature,     F_S)   \
1096    do_name(     hasNegatives_name,                               "hasNegatives")                                        \
1097    do_signature(hasNegatives_signature,                          "([BII)Z")                                             \
1098                                                                                                                         \
1099   do_class(sun_nio_cs_iso8859_1_Encoder,  "sun/nio/cs/ISO_8859_1$Encoder")                                              \
1100   do_intrinsic(_encodeISOArray,     sun_nio_cs_iso8859_1_Encoder, encodeISOArray_name, encodeISOArray_signature, F_S)   \
1101    do_name(     encodeISOArray_name,                             "implEncodeISOArray")                                  \
1102    do_signature(encodeISOArray_signature,                        "([CI[BII)I")                                          \
1103                                                                                                                         \
1104   do_intrinsic(_encodeByteISOArray,     java_lang_StringCoding, encodeISOArray_name, indexOfI_signature,         F_S)   \
1105                                                                                                                         \
1106   do_class(java_math_BigInteger,                      "java/math/BigInteger")                                           \
1107   do_intrinsic(_multiplyToLen,      java_math_BigInteger, multiplyToLen_name, multiplyToLen_signature, F_S)             \
1108    do_name(     multiplyToLen_name,                             "implMultiplyToLen")                                    \
1109    do_signature(multiplyToLen_signature,                        "([II[II[I)[I")                                         \
1110                                                                                                                         \
1111   do_intrinsic(_squareToLen, java_math_BigInteger, squareToLen_name, squareToLen_signature, F_S)                        \
1112    do_name(     squareToLen_name,                             "implSquareToLen")                                        \
1113    do_signature(squareToLen_signature,                        "([II[II)[I")                                             \
1114                                                                                                                         \
1115   do_intrinsic(_mulAdd, java_math_BigInteger, mulAdd_name, mulAdd_signature, F_S)                                       \
1116    do_name(     mulAdd_name,                                  "implMulAdd")                                             \
1117    do_signature(mulAdd_signature,                             "([I[IIII)I")                                             \
1118                                                                                                                         \
1119   do_intrinsic(_montgomeryMultiply,      java_math_BigInteger, montgomeryMultiply_name, montgomeryMultiply_signature, F_S) \
1120    do_name(     montgomeryMultiply_name,                             "implMontgomeryMultiply")                          \
1121    do_signature(montgomeryMultiply_signature,                        "([I[I[IIJ[I)[I")                                  \
1122                                                                                                                         \
1123   do_intrinsic(_montgomerySquare,      java_math_BigInteger, montgomerySquare_name, montgomerySquare_signature, F_S)    \
1124    do_name(     montgomerySquare_name,                             "implMontgomerySquare")                              \
1125    do_signature(montgomerySquare_signature,                        "([I[IIJ[I)[I")                                      \
1126                                                                                                                         \
1127   do_class(jdk_internal_util_ArraysSupport, "jdk/internal/util/ArraysSupport")                                                          \
1128   do_intrinsic(_vectorizedMismatch, jdk_internal_util_ArraysSupport, vectorizedMismatch_name, vectorizedMismatch_signature, F_S)\
1129    do_name(vectorizedMismatch_name, "vectorizedMismatch")                                                               \
1130    do_signature(vectorizedMismatch_signature, "(Ljava/lang/Object;JLjava/lang/Object;JII)I")                            \
1131                                                                                                                         \
1132   /* java/lang/ref/Reference */                                                                                         \
1133   do_intrinsic(_Reference_get,            java_lang_ref_Reference, get_name,    void_object_signature, F_R)             \
1134                                                                                                                         \
1135   /* support for com.sun.crypto.provider.AESCrypt and some of its callers */                                            \
1136   do_class(com_sun_crypto_provider_aescrypt,      "com/sun/crypto/provider/AESCrypt")                                   \
1137   do_intrinsic(_aescrypt_encryptBlock, com_sun_crypto_provider_aescrypt, encryptBlock_name, byteArray_int_byteArray_int_signature, F_R)   \
1138   do_intrinsic(_aescrypt_decryptBlock, com_sun_crypto_provider_aescrypt, decryptBlock_name, byteArray_int_byteArray_int_signature, F_R)   \
1139    do_name(     encryptBlock_name,                                 "implEncryptBlock")                                  \
1140    do_name(     decryptBlock_name,                                 "implDecryptBlock")                                  \
1141    do_signature(byteArray_int_byteArray_int_signature,             "([BI[BI)V")                                         \
1142                                                                                                                         \
1143   do_class(com_sun_crypto_provider_cipherBlockChaining,            "com/sun/crypto/provider/CipherBlockChaining")       \
1144    do_intrinsic(_cipherBlockChaining_encryptAESCrypt, com_sun_crypto_provider_cipherBlockChaining, encrypt_name, byteArray_int_int_byteArray_int_signature, F_R)   \
1145    do_intrinsic(_cipherBlockChaining_decryptAESCrypt, com_sun_crypto_provider_cipherBlockChaining, decrypt_name, byteArray_int_int_byteArray_int_signature, F_R)   \
1146    do_name(     encrypt_name,                                      "implEncrypt")                                       \
1147    do_name(     decrypt_name,                                      "implDecrypt")                                       \
1148    do_signature(byteArray_int_int_byteArray_int_signature,         "([BII[BI)I")                                        \
1149                                                                                                                         \
1150   do_class(com_sun_crypto_provider_counterMode,      "com/sun/crypto/provider/CounterMode")                             \
1151    do_intrinsic(_counterMode_AESCrypt, com_sun_crypto_provider_counterMode, crypt_name, byteArray_int_int_byteArray_int_signature, F_R)   \
1152    do_name(     crypt_name,                                 "implCrypt")                                                    \
1153                                                                                                                         \
1154   /* support for sun.security.provider.SHA */                                                                           \
1155   do_class(sun_security_provider_sha,                              "sun/security/provider/SHA")                         \
1156   do_intrinsic(_sha_implCompress, sun_security_provider_sha, implCompress_name, implCompress_signature, F_R)            \
1157    do_name(     implCompress_name,                                 "implCompress0")                                     \
1158    do_signature(implCompress_signature,                            "([BI)V")                                            \
1159                                                                                                                         \
1160   /* support for sun.security.provider.SHA2 */                                                                          \
1161   do_class(sun_security_provider_sha2,                             "sun/security/provider/SHA2")                        \
1162   do_intrinsic(_sha2_implCompress, sun_security_provider_sha2, implCompress_name, implCompress_signature, F_R)          \
1163                                                                                                                         \
1164   /* support for sun.security.provider.SHA5 */                                                                          \
1165   do_class(sun_security_provider_sha5,                             "sun/security/provider/SHA5")                        \
1166   do_intrinsic(_sha5_implCompress, sun_security_provider_sha5, implCompress_name, implCompress_signature, F_R)          \
1167                                                                                                                         \
1168   /* support for sun.security.provider.DigestBase */                                                                    \
1169   do_class(sun_security_provider_digestbase,                       "sun/security/provider/DigestBase")                  \
1170   do_intrinsic(_digestBase_implCompressMB, sun_security_provider_digestbase, implCompressMB_name, implCompressMB_signature, F_R)   \
1171    do_name(     implCompressMB_name,                               "implCompressMultiBlock0")                           \
1172    do_signature(implCompressMB_signature,                          "([BII)I")                                           \
1173                                                                                                                         \
1174    /* support for java.util.Base64.Encoder*/                                                                            \
1175   do_class(java_util_Base64_Encoder, "java/util/Base64$Encoder")                                                        \
1176   do_intrinsic(_base64_encodeBlock, java_util_Base64_Encoder, encodeBlock_name, encodeBlock_signature, F_R)             \
1177   do_name(encodeBlock_name, "encodeBlock")                                                                              \
1178   do_signature(encodeBlock_signature, "([BII[BIZ)V")                                                                    \
1179                                                                                                                         \
1180   /* support for com.sun.crypto.provider.GHASH */                                                                       \
1181   do_class(com_sun_crypto_provider_ghash, "com/sun/crypto/provider/GHASH")                                              \
1182   do_intrinsic(_ghash_processBlocks, com_sun_crypto_provider_ghash, processBlocks_name, ghash_processBlocks_signature, F_S) \
1183    do_name(processBlocks_name, "processBlocks")                                                                         \
1184    do_signature(ghash_processBlocks_signature, "([BII[J[J)V")                                                           \
1185                                                                                                                         \
1186   /* support for java.util.zip */                                                                                       \
1187   do_class(java_util_zip_CRC32,           "java/util/zip/CRC32")                                                        \
1188   do_intrinsic(_updateCRC32,               java_util_zip_CRC32,   update_name, int2_int_signature,               F_SN)  \
1189    do_name(     update_name,                                      "update")                                             \
1190   do_intrinsic(_updateBytesCRC32,          java_util_zip_CRC32,   updateBytes_name, updateBytes_signature,       F_SN)  \
1191    do_name(     updateBytes_name,                                "updateBytes0")                                        \
1192    do_signature(updateBytes_signature,                           "(I[BII)I")                                            \
1193   do_intrinsic(_updateByteBufferCRC32,     java_util_zip_CRC32,   updateByteBuffer_name, updateByteBuffer_signature, F_SN) \
1194    do_name(     updateByteBuffer_name,                           "updateByteBuffer0")                                   \
1195    do_signature(updateByteBuffer_signature,                      "(IJII)I")                                             \
1196                                                                                                                         \
1197   /* support for java.util.zip.CRC32C */                                                                                \
1198   do_class(java_util_zip_CRC32C,          "java/util/zip/CRC32C")                                                       \
1199   do_intrinsic(_updateBytesCRC32C,         java_util_zip_CRC32C,  updateBytes_C_name, updateBytes_signature,       F_S) \
1200    do_name(     updateBytes_C_name,                               "updateBytes")                                        \
1201   do_intrinsic(_updateDirectByteBufferCRC32C, java_util_zip_CRC32C, updateDirectByteBuffer_C_name, updateByteBuffer_signature, F_S) \
1202    do_name(    updateDirectByteBuffer_C_name,                     "updateDirectByteBuffer")                             \
1203                                                                                                                         \
1204    /* support for java.util.zip.Adler32 */                                                                              \
1205   do_class(java_util_zip_Adler32,        "java/util/zip/Adler32")                                                       \
1206   do_intrinsic(_updateBytesAdler32,       java_util_zip_Adler32,  updateBytes_C_name,  updateBytes_signature,  F_SN)    \
1207   do_intrinsic(_updateByteBufferAdler32,  java_util_zip_Adler32,  updateByteBuffer_A_name,  updateByteBuffer_signature,  F_SN) \
1208    do_name(     updateByteBuffer_A_name,                          "updateByteBuffer")                                   \
1209                                                                                                                         \
1210   /* support for Unsafe */                                                                                              \
1211   do_class(jdk_internal_misc_Unsafe,               "jdk/internal/misc/Unsafe")                                          \
1212                                                                                                                         \
1213   do_intrinsic(_allocateInstance,         jdk_internal_misc_Unsafe,     allocateInstance_name, allocateInstance_signature, F_RN) \
1214    do_name(     allocateInstance_name,                                  "allocateInstance")                                      \
1215    do_signature(allocateInstance_signature,                             "(Ljava/lang/Class;)Ljava/lang/Object;")                 \
1216   do_intrinsic(_allocateUninitializedArray, jdk_internal_misc_Unsafe,   allocateUninitializedArray_name, newArray_signature,  F_R) \
1217    do_name(     allocateUninitializedArray_name,                        "allocateUninitializedArray0")                           \
1218   do_intrinsic(_copyMemory,               jdk_internal_misc_Unsafe,     copyMemory_name, copyMemory_signature,         F_RN)     \
1219    do_name(     copyMemory_name,                                        "copyMemory0")                                           \
1220    do_signature(copyMemory_signature,                                   "(Ljava/lang/Object;JLjava/lang/Object;JJ)V")            \
1221   do_intrinsic(_loadFence,                jdk_internal_misc_Unsafe,     loadFence_name, loadFence_signature,           F_RN)     \
1222    do_name(     loadFence_name,                                         "loadFence")                                             \
1223    do_alias(    loadFence_signature,                                    void_method_signature)                                   \
1224   do_intrinsic(_storeFence,               jdk_internal_misc_Unsafe,     storeFence_name, storeFence_signature,         F_RN)     \
1225    do_name(     storeFence_name,                                        "storeFence")                                            \
1226    do_alias(    storeFence_signature,                                   void_method_signature)                                   \
1227   do_intrinsic(_fullFence,                jdk_internal_misc_Unsafe,     fullFence_name, fullFence_signature,           F_RN)     \
1228    do_name(     fullFence_name,                                         "fullFence")                                             \
1229    do_alias(    fullFence_signature,                                    void_method_signature)                                   \
1230                                                                                                                         \
1231   /* Custom branch frequencies profiling support for JSR292 */                                                          \
1232   do_class(java_lang_invoke_MethodHandleImpl,               "java/lang/invoke/MethodHandleImpl")                        \
1233   do_intrinsic(_profileBoolean, java_lang_invoke_MethodHandleImpl, profileBoolean_name, profileBoolean_signature, F_S)  \
1234    do_name(     profileBoolean_name,                             "profileBoolean")                                      \
1235    do_signature(profileBoolean_signature,                        "(Z[I)Z")                                              \
1236   do_intrinsic(_isCompileConstant, java_lang_invoke_MethodHandleImpl, isCompileConstant_name, isCompileConstant_signature, F_S) \
1237    do_name(     isCompileConstant_name,                          "isCompileConstant")                                   \
1238    do_alias(    isCompileConstant_signature,                      object_boolean_signature)                             \
1239                                                                                                                         \
1240   /* unsafe memory references (there are a lot of them...) */                                                           \
1241   do_signature(getReference_signature,    "(Ljava/lang/Object;J)Ljava/lang/Object;")                                    \
1242   do_signature(putReference_signature,    "(Ljava/lang/Object;JLjava/lang/Object;)V")                                   \
1243   do_signature(getBoolean_signature,      "(Ljava/lang/Object;J)Z")                                                     \
1244   do_signature(putBoolean_signature,      "(Ljava/lang/Object;JZ)V")                                                    \
1245   do_signature(getByte_signature,         "(Ljava/lang/Object;J)B")                                                     \
1246   do_signature(putByte_signature,         "(Ljava/lang/Object;JB)V")                                                    \
1247   do_signature(getShort_signature,        "(Ljava/lang/Object;J)S")                                                     \
1248   do_signature(putShort_signature,        "(Ljava/lang/Object;JS)V")                                                    \
1249   do_signature(getChar_signature,         "(Ljava/lang/Object;J)C")                                                     \
1250   do_signature(putChar_signature,         "(Ljava/lang/Object;JC)V")                                                    \
1251   do_signature(getInt_signature,          "(Ljava/lang/Object;J)I")                                                     \
1252   do_signature(putInt_signature,          "(Ljava/lang/Object;JI)V")                                                    \
1253   do_signature(getLong_signature,         "(Ljava/lang/Object;J)J")                                                     \
1254   do_signature(putLong_signature,         "(Ljava/lang/Object;JJ)V")                                                    \
1255   do_signature(getFloat_signature,        "(Ljava/lang/Object;J)F")                                                     \
1256   do_signature(putFloat_signature,        "(Ljava/lang/Object;JF)V")                                                    \
1257   do_signature(getDouble_signature,       "(Ljava/lang/Object;J)D")                                                     \
1258   do_signature(putDouble_signature,       "(Ljava/lang/Object;JD)V")                                                    \
1259                                                                                                                         \
1260   do_name(getReference_name,"getReference")     do_name(putReference_name,"putReference")                               \
1261   do_name(getBoolean_name,"getBoolean")         do_name(putBoolean_name,"putBoolean")                                   \
1262   do_name(getByte_name,"getByte")               do_name(putByte_name,"putByte")                                         \
1263   do_name(getShort_name,"getShort")             do_name(putShort_name,"putShort")                                       \
1264   do_name(getChar_name,"getChar")               do_name(putChar_name,"putChar")                                         \
1265   do_name(getInt_name,"getInt")                 do_name(putInt_name,"putInt")                                           \
1266   do_name(getLong_name,"getLong")               do_name(putLong_name,"putLong")                                         \
1267   do_name(getFloat_name,"getFloat")             do_name(putFloat_name,"putFloat")                                       \
1268   do_name(getDouble_name,"getDouble")           do_name(putDouble_name,"putDouble")                                     \
1269                                                                                                                         \
1270   do_intrinsic(_getReference,       jdk_internal_misc_Unsafe,     getReference_name, getReference_signature,     F_RN)  \
1271   do_intrinsic(_getBoolean,         jdk_internal_misc_Unsafe,     getBoolean_name, getBoolean_signature,         F_RN)  \
1272   do_intrinsic(_getByte,            jdk_internal_misc_Unsafe,     getByte_name, getByte_signature,               F_RN)  \
1273   do_intrinsic(_getShort,           jdk_internal_misc_Unsafe,     getShort_name, getShort_signature,             F_RN)  \
1274   do_intrinsic(_getChar,            jdk_internal_misc_Unsafe,     getChar_name, getChar_signature,               F_RN)  \
1275   do_intrinsic(_getInt,             jdk_internal_misc_Unsafe,     getInt_name, getInt_signature,                 F_RN)  \
1276   do_intrinsic(_getLong,            jdk_internal_misc_Unsafe,     getLong_name, getLong_signature,               F_RN)  \
1277   do_intrinsic(_getFloat,           jdk_internal_misc_Unsafe,     getFloat_name, getFloat_signature,             F_RN)  \
1278   do_intrinsic(_getDouble,          jdk_internal_misc_Unsafe,     getDouble_name, getDouble_signature,           F_RN)  \
1279   do_intrinsic(_putReference,       jdk_internal_misc_Unsafe,     putReference_name, putReference_signature,     F_RN)  \
1280   do_intrinsic(_putBoolean,         jdk_internal_misc_Unsafe,     putBoolean_name, putBoolean_signature,         F_RN)  \
1281   do_intrinsic(_putByte,            jdk_internal_misc_Unsafe,     putByte_name, putByte_signature,               F_RN)  \
1282   do_intrinsic(_putShort,           jdk_internal_misc_Unsafe,     putShort_name, putShort_signature,             F_RN)  \
1283   do_intrinsic(_putChar,            jdk_internal_misc_Unsafe,     putChar_name, putChar_signature,               F_RN)  \
1284   do_intrinsic(_putInt,             jdk_internal_misc_Unsafe,     putInt_name, putInt_signature,                 F_RN)  \
1285   do_intrinsic(_putLong,            jdk_internal_misc_Unsafe,     putLong_name, putLong_signature,               F_RN)  \
1286   do_intrinsic(_putFloat,           jdk_internal_misc_Unsafe,     putFloat_name, putFloat_signature,             F_RN)  \
1287   do_intrinsic(_putDouble,          jdk_internal_misc_Unsafe,     putDouble_name, putDouble_signature,           F_RN)  \
1288                                                                                                                         \
1289   do_name(getReferenceVolatile_name,"getReferenceVolatile")   do_name(putReferenceVolatile_name,"putReferenceVolatile") \
1290   do_name(getBooleanVolatile_name,"getBooleanVolatile")       do_name(putBooleanVolatile_name,"putBooleanVolatile")     \
1291   do_name(getByteVolatile_name,"getByteVolatile")             do_name(putByteVolatile_name,"putByteVolatile")           \
1292   do_name(getShortVolatile_name,"getShortVolatile")           do_name(putShortVolatile_name,"putShortVolatile")         \
1293   do_name(getCharVolatile_name,"getCharVolatile")             do_name(putCharVolatile_name,"putCharVolatile")           \
1294   do_name(getIntVolatile_name,"getIntVolatile")               do_name(putIntVolatile_name,"putIntVolatile")             \
1295   do_name(getLongVolatile_name,"getLongVolatile")             do_name(putLongVolatile_name,"putLongVolatile")           \
1296   do_name(getFloatVolatile_name,"getFloatVolatile")           do_name(putFloatVolatile_name,"putFloatVolatile")         \
1297   do_name(getDoubleVolatile_name,"getDoubleVolatile")         do_name(putDoubleVolatile_name,"putDoubleVolatile")       \
1298                                                                                                                         \
1299   do_intrinsic(_getReferenceVolatile,     jdk_internal_misc_Unsafe,     getReferenceVolatile_name, getReference_signature, F_RN)  \
1300   do_intrinsic(_getBooleanVolatile,       jdk_internal_misc_Unsafe,     getBooleanVolatile_name, getBoolean_signature,     F_RN)  \
1301   do_intrinsic(_getByteVolatile,          jdk_internal_misc_Unsafe,     getByteVolatile_name, getByte_signature,           F_RN)  \
1302   do_intrinsic(_getShortVolatile,         jdk_internal_misc_Unsafe,     getShortVolatile_name, getShort_signature,         F_RN)  \
1303   do_intrinsic(_getCharVolatile,          jdk_internal_misc_Unsafe,     getCharVolatile_name, getChar_signature,           F_RN)  \
1304   do_intrinsic(_getIntVolatile,           jdk_internal_misc_Unsafe,     getIntVolatile_name, getInt_signature,             F_RN)  \
1305   do_intrinsic(_getLongVolatile,          jdk_internal_misc_Unsafe,     getLongVolatile_name, getLong_signature,           F_RN)  \
1306   do_intrinsic(_getFloatVolatile,         jdk_internal_misc_Unsafe,     getFloatVolatile_name, getFloat_signature,         F_RN)  \
1307   do_intrinsic(_getDoubleVolatile,        jdk_internal_misc_Unsafe,     getDoubleVolatile_name, getDouble_signature,       F_RN)  \
1308   do_intrinsic(_putReferenceVolatile,     jdk_internal_misc_Unsafe,     putReferenceVolatile_name, putReference_signature, F_RN)  \
1309   do_intrinsic(_putBooleanVolatile,       jdk_internal_misc_Unsafe,     putBooleanVolatile_name, putBoolean_signature,     F_RN)  \
1310   do_intrinsic(_putByteVolatile,          jdk_internal_misc_Unsafe,     putByteVolatile_name, putByte_signature,           F_RN)  \
1311   do_intrinsic(_putShortVolatile,         jdk_internal_misc_Unsafe,     putShortVolatile_name, putShort_signature,         F_RN)  \
1312   do_intrinsic(_putCharVolatile,          jdk_internal_misc_Unsafe,     putCharVolatile_name, putChar_signature,           F_RN)  \
1313   do_intrinsic(_putIntVolatile,           jdk_internal_misc_Unsafe,     putIntVolatile_name, putInt_signature,             F_RN)  \
1314   do_intrinsic(_putLongVolatile,          jdk_internal_misc_Unsafe,     putLongVolatile_name, putLong_signature,           F_RN)  \
1315   do_intrinsic(_putFloatVolatile,         jdk_internal_misc_Unsafe,     putFloatVolatile_name, putFloat_signature,         F_RN)  \
1316   do_intrinsic(_putDoubleVolatile,        jdk_internal_misc_Unsafe,     putDoubleVolatile_name, putDouble_signature,       F_RN)  \
1317                                                                                                                         \
1318   do_name(getReferenceOpaque_name,"getReferenceOpaque") do_name(putReferenceOpaque_name,"putReferenceOpaque")           \
1319   do_name(getBooleanOpaque_name,"getBooleanOpaque")     do_name(putBooleanOpaque_name,"putBooleanOpaque")               \
1320   do_name(getByteOpaque_name,"getByteOpaque")           do_name(putByteOpaque_name,"putByteOpaque")                     \
1321   do_name(getShortOpaque_name,"getShortOpaque")         do_name(putShortOpaque_name,"putShortOpaque")                   \
1322   do_name(getCharOpaque_name,"getCharOpaque")           do_name(putCharOpaque_name,"putCharOpaque")                     \
1323   do_name(getIntOpaque_name,"getIntOpaque")             do_name(putIntOpaque_name,"putIntOpaque")                       \
1324   do_name(getLongOpaque_name,"getLongOpaque")           do_name(putLongOpaque_name,"putLongOpaque")                     \
1325   do_name(getFloatOpaque_name,"getFloatOpaque")         do_name(putFloatOpaque_name,"putFloatOpaque")                   \
1326   do_name(getDoubleOpaque_name,"getDoubleOpaque")       do_name(putDoubleOpaque_name,"putDoubleOpaque")                 \
1327                                                                                                                         \
1328   do_intrinsic(_getReferenceOpaque,       jdk_internal_misc_Unsafe,        getReferenceOpaque_name, getReference_signature, F_R)  \
1329   do_intrinsic(_getBooleanOpaque,         jdk_internal_misc_Unsafe,        getBooleanOpaque_name, getBoolean_signature,     F_R)  \
1330   do_intrinsic(_getByteOpaque,            jdk_internal_misc_Unsafe,        getByteOpaque_name, getByte_signature,           F_R)  \
1331   do_intrinsic(_getShortOpaque,           jdk_internal_misc_Unsafe,        getShortOpaque_name, getShort_signature,         F_R)  \
1332   do_intrinsic(_getCharOpaque,            jdk_internal_misc_Unsafe,        getCharOpaque_name, getChar_signature,           F_R)  \
1333   do_intrinsic(_getIntOpaque,             jdk_internal_misc_Unsafe,        getIntOpaque_name, getInt_signature,             F_R)  \
1334   do_intrinsic(_getLongOpaque,            jdk_internal_misc_Unsafe,        getLongOpaque_name, getLong_signature,           F_R)  \
1335   do_intrinsic(_getFloatOpaque,           jdk_internal_misc_Unsafe,        getFloatOpaque_name, getFloat_signature,         F_R)  \
1336   do_intrinsic(_getDoubleOpaque,          jdk_internal_misc_Unsafe,        getDoubleOpaque_name, getDouble_signature,       F_R)  \
1337   do_intrinsic(_putReferenceOpaque,       jdk_internal_misc_Unsafe,        putReferenceOpaque_name, putReference_signature, F_R)  \
1338   do_intrinsic(_putBooleanOpaque,         jdk_internal_misc_Unsafe,        putBooleanOpaque_name, putBoolean_signature,     F_R)  \
1339   do_intrinsic(_putByteOpaque,            jdk_internal_misc_Unsafe,        putByteOpaque_name, putByte_signature,           F_R)  \
1340   do_intrinsic(_putShortOpaque,           jdk_internal_misc_Unsafe,        putShortOpaque_name, putShort_signature,         F_R)  \
1341   do_intrinsic(_putCharOpaque,            jdk_internal_misc_Unsafe,        putCharOpaque_name, putChar_signature,           F_R)  \
1342   do_intrinsic(_putIntOpaque,             jdk_internal_misc_Unsafe,        putIntOpaque_name, putInt_signature,             F_R)  \
1343   do_intrinsic(_putLongOpaque,            jdk_internal_misc_Unsafe,        putLongOpaque_name, putLong_signature,           F_R)  \
1344   do_intrinsic(_putFloatOpaque,           jdk_internal_misc_Unsafe,        putFloatOpaque_name, putFloat_signature,         F_R)  \
1345   do_intrinsic(_putDoubleOpaque,          jdk_internal_misc_Unsafe,        putDoubleOpaque_name, putDouble_signature,       F_R)  \
1346                                                                                                                         \
1347   do_name(getReferenceAcquire_name,  "getReferenceAcquire") do_name(putReferenceRelease_name,  "putReferenceRelease")   \
1348   do_name(getBooleanAcquire_name, "getBooleanAcquire")      do_name(putBooleanRelease_name, "putBooleanRelease")        \
1349   do_name(getByteAcquire_name,    "getByteAcquire")         do_name(putByteRelease_name,    "putByteRelease")           \
1350   do_name(getShortAcquire_name,   "getShortAcquire")        do_name(putShortRelease_name,   "putShortRelease")          \
1351   do_name(getCharAcquire_name,    "getCharAcquire")         do_name(putCharRelease_name,    "putCharRelease")           \
1352   do_name(getIntAcquire_name,     "getIntAcquire")          do_name(putIntRelease_name,     "putIntRelease")            \
1353   do_name(getLongAcquire_name,    "getLongAcquire")         do_name(putLongRelease_name,    "putLongRelease")           \
1354   do_name(getFloatAcquire_name,   "getFloatAcquire")        do_name(putFloatRelease_name,   "putFloatRelease")          \
1355   do_name(getDoubleAcquire_name,  "getDoubleAcquire")       do_name(putDoubleRelease_name,  "putDoubleRelease")         \
1356                                                                                                                         \
1357   do_intrinsic(_getReferenceAcquire,     jdk_internal_misc_Unsafe,        getReferenceAcquire_name, getReference_signature, F_R)  \
1358   do_intrinsic(_getBooleanAcquire,       jdk_internal_misc_Unsafe,        getBooleanAcquire_name, getBoolean_signature,     F_R)  \
1359   do_intrinsic(_getByteAcquire,          jdk_internal_misc_Unsafe,        getByteAcquire_name, getByte_signature,           F_R)  \
1360   do_intrinsic(_getShortAcquire,         jdk_internal_misc_Unsafe,        getShortAcquire_name, getShort_signature,         F_R)  \
1361   do_intrinsic(_getCharAcquire,          jdk_internal_misc_Unsafe,        getCharAcquire_name, getChar_signature,           F_R)  \
1362   do_intrinsic(_getIntAcquire,           jdk_internal_misc_Unsafe,        getIntAcquire_name, getInt_signature,             F_R)  \
1363   do_intrinsic(_getLongAcquire,          jdk_internal_misc_Unsafe,        getLongAcquire_name, getLong_signature,           F_R)  \
1364   do_intrinsic(_getFloatAcquire,         jdk_internal_misc_Unsafe,        getFloatAcquire_name, getFloat_signature,         F_R)  \
1365   do_intrinsic(_getDoubleAcquire,        jdk_internal_misc_Unsafe,        getDoubleAcquire_name, getDouble_signature,       F_R)  \
1366   do_intrinsic(_putReferenceRelease,     jdk_internal_misc_Unsafe,        putReferenceRelease_name, putReference_signature, F_R)  \
1367   do_intrinsic(_putBooleanRelease,       jdk_internal_misc_Unsafe,        putBooleanRelease_name, putBoolean_signature,     F_R)  \
1368   do_intrinsic(_putByteRelease,          jdk_internal_misc_Unsafe,        putByteRelease_name, putByte_signature,           F_R)  \
1369   do_intrinsic(_putShortRelease,         jdk_internal_misc_Unsafe,        putShortRelease_name, putShort_signature,         F_R)  \
1370   do_intrinsic(_putCharRelease,          jdk_internal_misc_Unsafe,        putCharRelease_name, putChar_signature,           F_R)  \
1371   do_intrinsic(_putIntRelease,           jdk_internal_misc_Unsafe,        putIntRelease_name, putInt_signature,             F_R)  \
1372   do_intrinsic(_putLongRelease,          jdk_internal_misc_Unsafe,        putLongRelease_name, putLong_signature,           F_R)  \
1373   do_intrinsic(_putFloatRelease,         jdk_internal_misc_Unsafe,        putFloatRelease_name, putFloat_signature,         F_R)  \
1374   do_intrinsic(_putDoubleRelease,        jdk_internal_misc_Unsafe,        putDoubleRelease_name, putDouble_signature,       F_R)  \
1375                                                                                                                         \
1376   do_name(getShortUnaligned_name,"getShortUnaligned")     do_name(putShortUnaligned_name,"putShortUnaligned")           \
1377   do_name(getCharUnaligned_name,"getCharUnaligned")       do_name(putCharUnaligned_name,"putCharUnaligned")             \
1378   do_name(getIntUnaligned_name,"getIntUnaligned")         do_name(putIntUnaligned_name,"putIntUnaligned")               \
1379   do_name(getLongUnaligned_name,"getLongUnaligned")       do_name(putLongUnaligned_name,"putLongUnaligned")             \
1380                                                                                                                         \
1381   do_intrinsic(_getShortUnaligned,         jdk_internal_misc_Unsafe,    getShortUnaligned_name, getShort_signature,     F_R)  \
1382   do_intrinsic(_getCharUnaligned,          jdk_internal_misc_Unsafe,    getCharUnaligned_name, getChar_signature,       F_R)  \
1383   do_intrinsic(_getIntUnaligned,           jdk_internal_misc_Unsafe,    getIntUnaligned_name, getInt_signature,         F_R)  \
1384   do_intrinsic(_getLongUnaligned,          jdk_internal_misc_Unsafe,    getLongUnaligned_name, getLong_signature,       F_R)  \
1385   do_intrinsic(_putShortUnaligned,         jdk_internal_misc_Unsafe,    putShortUnaligned_name, putShort_signature,     F_R)  \
1386   do_intrinsic(_putCharUnaligned,          jdk_internal_misc_Unsafe,    putCharUnaligned_name, putChar_signature,       F_R)  \
1387   do_intrinsic(_putIntUnaligned,           jdk_internal_misc_Unsafe,    putIntUnaligned_name, putInt_signature,         F_R)  \
1388   do_intrinsic(_putLongUnaligned,          jdk_internal_misc_Unsafe,    putLongUnaligned_name, putLong_signature,       F_R)  \
1389                                                                                                                         \
1390   do_signature(compareAndSetReference_signature,      "(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Z")        \
1391   do_signature(compareAndExchangeReference_signature, "(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;") \
1392   do_signature(compareAndSetLong_signature,        "(Ljava/lang/Object;JJJ)Z")                                          \
1393   do_signature(compareAndExchangeLong_signature,   "(Ljava/lang/Object;JJJ)J")                                          \
1394   do_signature(compareAndSetInt_signature,         "(Ljava/lang/Object;JII)Z")                                          \
1395   do_signature(compareAndExchangeInt_signature,    "(Ljava/lang/Object;JII)I")                                          \
1396   do_signature(compareAndSetByte_signature,        "(Ljava/lang/Object;JBB)Z")                                          \
1397   do_signature(compareAndExchangeByte_signature,   "(Ljava/lang/Object;JBB)B")                                          \
1398   do_signature(compareAndSetShort_signature,       "(Ljava/lang/Object;JSS)Z")                                          \
1399   do_signature(compareAndExchangeShort_signature,  "(Ljava/lang/Object;JSS)S")                                          \
1400                                                                                                                         \
1401   do_name(compareAndSetReference_name,              "compareAndSetReference")                                           \
1402   do_name(compareAndExchangeReference_name,         "compareAndExchangeReference")                                      \
1403   do_name(compareAndExchangeReferenceAcquire_name,  "compareAndExchangeReferenceAcquire")                               \
1404   do_name(compareAndExchangeReferenceRelease_name,  "compareAndExchangeReferenceRelease")                               \
1405   do_name(compareAndSetLong_name,                   "compareAndSetLong")                                                \
1406   do_name(compareAndExchangeLong_name,              "compareAndExchangeLong")                                           \
1407   do_name(compareAndExchangeLongAcquire_name,       "compareAndExchangeLongAcquire")                                    \
1408   do_name(compareAndExchangeLongRelease_name,       "compareAndExchangeLongRelease")                                    \
1409   do_name(compareAndSetInt_name,                    "compareAndSetInt")                                                 \
1410   do_name(compareAndExchangeInt_name,               "compareAndExchangeInt")                                            \
1411   do_name(compareAndExchangeIntAcquire_name,        "compareAndExchangeIntAcquire")                                     \
1412   do_name(compareAndExchangeIntRelease_name,        "compareAndExchangeIntRelease")                                     \
1413   do_name(compareAndSetByte_name,                   "compareAndSetByte")                                                \
1414   do_name(compareAndExchangeByte_name,              "compareAndExchangeByte")                                           \
1415   do_name(compareAndExchangeByteAcquire_name,       "compareAndExchangeByteAcquire")                                    \
1416   do_name(compareAndExchangeByteRelease_name,       "compareAndExchangeByteRelease")                                    \
1417   do_name(compareAndSetShort_name,                  "compareAndSetShort")                                               \
1418   do_name(compareAndExchangeShort_name,             "compareAndExchangeShort")                                          \
1419   do_name(compareAndExchangeShortAcquire_name,      "compareAndExchangeShortAcquire")                                   \
1420   do_name(compareAndExchangeShortRelease_name,      "compareAndExchangeShortRelease")                                   \
1421                                                                                                                         \
1422   do_name(weakCompareAndSetReferencePlain_name,     "weakCompareAndSetReferencePlain")                                  \
1423   do_name(weakCompareAndSetReferenceAcquire_name,   "weakCompareAndSetReferenceAcquire")                                \
1424   do_name(weakCompareAndSetReferenceRelease_name,   "weakCompareAndSetReferenceRelease")                                \
1425   do_name(weakCompareAndSetReference_name,          "weakCompareAndSetReference")                                       \
1426   do_name(weakCompareAndSetLongPlain_name,          "weakCompareAndSetLongPlain")                                       \
1427   do_name(weakCompareAndSetLongAcquire_name,        "weakCompareAndSetLongAcquire")                                     \
1428   do_name(weakCompareAndSetLongRelease_name,        "weakCompareAndSetLongRelease")                                     \
1429   do_name(weakCompareAndSetLong_name,               "weakCompareAndSetLong")                                            \
1430   do_name(weakCompareAndSetIntPlain_name,           "weakCompareAndSetIntPlain")                                        \
1431   do_name(weakCompareAndSetIntAcquire_name,         "weakCompareAndSetIntAcquire")                                      \
1432   do_name(weakCompareAndSetIntRelease_name,         "weakCompareAndSetIntRelease")                                      \
1433   do_name(weakCompareAndSetInt_name,                "weakCompareAndSetInt")                                             \
1434   do_name(weakCompareAndSetBytePlain_name,          "weakCompareAndSetBytePlain")                                       \
1435   do_name(weakCompareAndSetByteAcquire_name,        "weakCompareAndSetByteAcquire")                                     \
1436   do_name(weakCompareAndSetByteRelease_name,        "weakCompareAndSetByteRelease")                                     \
1437   do_name(weakCompareAndSetByte_name,               "weakCompareAndSetByte")                                            \
1438   do_name(weakCompareAndSetShortPlain_name,         "weakCompareAndSetShortPlain")                                      \
1439   do_name(weakCompareAndSetShortAcquire_name,       "weakCompareAndSetShortAcquire")                                    \
1440   do_name(weakCompareAndSetShortRelease_name,       "weakCompareAndSetShortRelease")                                    \
1441   do_name(weakCompareAndSetShort_name,              "weakCompareAndSetShort")                                           \
1442                                                                                                                         \
1443   do_intrinsic(_compareAndSetReference,              jdk_internal_misc_Unsafe,  compareAndSetReference_name,              compareAndSetReference_signature,      F_RN) \
1444   do_intrinsic(_compareAndExchangeReference,         jdk_internal_misc_Unsafe,  compareAndExchangeReference_name,         compareAndExchangeReference_signature, F_RN) \
1445   do_intrinsic(_compareAndExchangeReferenceAcquire,  jdk_internal_misc_Unsafe,  compareAndExchangeReferenceAcquire_name,  compareAndExchangeReference_signature, F_R)  \
1446   do_intrinsic(_compareAndExchangeReferenceRelease,  jdk_internal_misc_Unsafe,  compareAndExchangeReferenceRelease_name,  compareAndExchangeReference_signature, F_R)  \
1447   do_intrinsic(_compareAndSetLong,                jdk_internal_misc_Unsafe,  compareAndSetLong_name,                compareAndSetLong_signature,        F_RN) \
1448   do_intrinsic(_compareAndExchangeLong,           jdk_internal_misc_Unsafe,  compareAndExchangeLong_name,           compareAndExchangeLong_signature,   F_RN) \
1449   do_intrinsic(_compareAndExchangeLongAcquire,    jdk_internal_misc_Unsafe,  compareAndExchangeLongAcquire_name,    compareAndExchangeLong_signature,   F_R)  \
1450   do_intrinsic(_compareAndExchangeLongRelease,    jdk_internal_misc_Unsafe,  compareAndExchangeLongRelease_name,    compareAndExchangeLong_signature,   F_R)  \
1451   do_intrinsic(_compareAndSetInt,                 jdk_internal_misc_Unsafe,  compareAndSetInt_name,                 compareAndSetInt_signature,         F_RN) \
1452   do_intrinsic(_compareAndExchangeInt,            jdk_internal_misc_Unsafe,  compareAndExchangeInt_name,            compareAndExchangeInt_signature,    F_RN) \
1453   do_intrinsic(_compareAndExchangeIntAcquire,     jdk_internal_misc_Unsafe,  compareAndExchangeIntAcquire_name,     compareAndExchangeInt_signature,    F_R)  \
1454   do_intrinsic(_compareAndExchangeIntRelease,     jdk_internal_misc_Unsafe,  compareAndExchangeIntRelease_name,     compareAndExchangeInt_signature,    F_R)  \
1455   do_intrinsic(_compareAndSetByte,                jdk_internal_misc_Unsafe,  compareAndSetByte_name,                compareAndSetByte_signature,        F_R)  \
1456   do_intrinsic(_compareAndExchangeByte,           jdk_internal_misc_Unsafe,  compareAndExchangeByte_name,           compareAndExchangeByte_signature,   F_R)  \
1457   do_intrinsic(_compareAndExchangeByteAcquire,    jdk_internal_misc_Unsafe,  compareAndExchangeByteAcquire_name,    compareAndExchangeByte_signature,   F_R)  \
1458   do_intrinsic(_compareAndExchangeByteRelease,    jdk_internal_misc_Unsafe,  compareAndExchangeByteRelease_name,    compareAndExchangeByte_signature,   F_R)  \
1459   do_intrinsic(_compareAndSetShort,               jdk_internal_misc_Unsafe,  compareAndSetShort_name,               compareAndSetShort_signature,       F_R)  \
1460   do_intrinsic(_compareAndExchangeShort,          jdk_internal_misc_Unsafe,  compareAndExchangeShort_name,          compareAndExchangeShort_signature,  F_R)  \
1461   do_intrinsic(_compareAndExchangeShortAcquire,   jdk_internal_misc_Unsafe,  compareAndExchangeShortAcquire_name,   compareAndExchangeShort_signature,  F_R)  \
1462   do_intrinsic(_compareAndExchangeShortRelease,   jdk_internal_misc_Unsafe,  compareAndExchangeShortRelease_name,   compareAndExchangeShort_signature,  F_R)  \
1463                                                                                                                                                              \
1464   do_intrinsic(_weakCompareAndSetReferencePlain,  jdk_internal_misc_Unsafe,  weakCompareAndSetReferencePlain_name,     compareAndSetReference_signature,      F_R) \
1465   do_intrinsic(_weakCompareAndSetReferenceAcquire,jdk_internal_misc_Unsafe,  weakCompareAndSetReferenceAcquire_name,   compareAndSetReference_signature,      F_R) \
1466   do_intrinsic(_weakCompareAndSetReferenceRelease,jdk_internal_misc_Unsafe,  weakCompareAndSetReferenceRelease_name,   compareAndSetReference_signature,      F_R) \
1467   do_intrinsic(_weakCompareAndSetReference,       jdk_internal_misc_Unsafe,  weakCompareAndSetReference_name,          compareAndSetReference_signature,      F_R) \
1468   do_intrinsic(_weakCompareAndSetLongPlain,       jdk_internal_misc_Unsafe,  weakCompareAndSetLongPlain_name,       compareAndSetLong_signature,        F_R) \
1469   do_intrinsic(_weakCompareAndSetLongAcquire,     jdk_internal_misc_Unsafe,  weakCompareAndSetLongAcquire_name,     compareAndSetLong_signature,        F_R) \
1470   do_intrinsic(_weakCompareAndSetLongRelease,     jdk_internal_misc_Unsafe,  weakCompareAndSetLongRelease_name,     compareAndSetLong_signature,        F_R) \
1471   do_intrinsic(_weakCompareAndSetLong,            jdk_internal_misc_Unsafe,  weakCompareAndSetLong_name,            compareAndSetLong_signature,        F_R) \
1472   do_intrinsic(_weakCompareAndSetIntPlain,        jdk_internal_misc_Unsafe,  weakCompareAndSetIntPlain_name,        compareAndSetInt_signature,         F_R) \
1473   do_intrinsic(_weakCompareAndSetIntAcquire,      jdk_internal_misc_Unsafe,  weakCompareAndSetIntAcquire_name,      compareAndSetInt_signature,         F_R) \
1474   do_intrinsic(_weakCompareAndSetIntRelease,      jdk_internal_misc_Unsafe,  weakCompareAndSetIntRelease_name,      compareAndSetInt_signature,         F_R) \
1475   do_intrinsic(_weakCompareAndSetInt,             jdk_internal_misc_Unsafe,  weakCompareAndSetInt_name,             compareAndSetInt_signature,         F_R) \
1476   do_intrinsic(_weakCompareAndSetBytePlain,       jdk_internal_misc_Unsafe,  weakCompareAndSetBytePlain_name,       compareAndSetByte_signature,        F_R) \
1477   do_intrinsic(_weakCompareAndSetByteAcquire,     jdk_internal_misc_Unsafe,  weakCompareAndSetByteAcquire_name,     compareAndSetByte_signature,        F_R) \
1478   do_intrinsic(_weakCompareAndSetByteRelease,     jdk_internal_misc_Unsafe,  weakCompareAndSetByteRelease_name,     compareAndSetByte_signature,        F_R) \
1479   do_intrinsic(_weakCompareAndSetByte,            jdk_internal_misc_Unsafe,  weakCompareAndSetByte_name,            compareAndSetByte_signature,        F_R) \
1480   do_intrinsic(_weakCompareAndSetShortPlain,      jdk_internal_misc_Unsafe,  weakCompareAndSetShortPlain_name,      compareAndSetShort_signature,       F_R) \
1481   do_intrinsic(_weakCompareAndSetShortAcquire,    jdk_internal_misc_Unsafe,  weakCompareAndSetShortAcquire_name,    compareAndSetShort_signature,       F_R) \
1482   do_intrinsic(_weakCompareAndSetShortRelease,    jdk_internal_misc_Unsafe,  weakCompareAndSetShortRelease_name,    compareAndSetShort_signature,       F_R) \
1483   do_intrinsic(_weakCompareAndSetShort,           jdk_internal_misc_Unsafe,  weakCompareAndSetShort_name,           compareAndSetShort_signature,       F_R) \
1484                            \
1485   do_intrinsic(_getAndAddInt,             jdk_internal_misc_Unsafe,     getAndAddInt_name, getAndAddInt_signature, F_R)       \
1486    do_name(     getAndAddInt_name,                                      "getAndAddInt")                                       \
1487    do_signature(getAndAddInt_signature,                                 "(Ljava/lang/Object;JI)I" )                           \
1488   do_intrinsic(_getAndAddLong,            jdk_internal_misc_Unsafe,     getAndAddLong_name, getAndAddLong_signature, F_R)     \
1489    do_name(     getAndAddLong_name,                                     "getAndAddLong")                                      \
1490    do_signature(getAndAddLong_signature,                                "(Ljava/lang/Object;JJ)J" )                           \
1491   do_intrinsic(_getAndAddByte,            jdk_internal_misc_Unsafe,     getAndAddByte_name, getAndAddByte_signature, F_R)     \
1492    do_name(     getAndAddByte_name,                                     "getAndAddByte")                                      \
1493    do_signature(getAndAddByte_signature,                                "(Ljava/lang/Object;JB)B" )                           \
1494   do_intrinsic(_getAndAddShort,           jdk_internal_misc_Unsafe,     getAndAddShort_name, getAndAddShort_signature, F_R)   \
1495    do_name(     getAndAddShort_name,                                    "getAndAddShort")                                     \
1496    do_signature(getAndAddShort_signature,                               "(Ljava/lang/Object;JS)S" )                           \
1497   do_intrinsic(_getAndSetInt,             jdk_internal_misc_Unsafe,     getAndSetInt_name, getAndSetInt_signature, F_R)       \
1498    do_name(     getAndSetInt_name,                                      "getAndSetInt")                                       \
1499    do_alias(    getAndSetInt_signature,                                 /*"(Ljava/lang/Object;JI)I"*/ getAndAddInt_signature)   \
1500   do_intrinsic(_getAndSetLong,            jdk_internal_misc_Unsafe,     getAndSetLong_name, getAndSetLong_signature, F_R)     \
1501    do_name(     getAndSetLong_name,                                     "getAndSetLong")                                      \
1502    do_alias(    getAndSetLong_signature,                                /*"(Ljava/lang/Object;JJ)J"*/ getAndAddLong_signature)  \
1503   do_intrinsic(_getAndSetByte,            jdk_internal_misc_Unsafe,     getAndSetByte_name, getAndSetByte_signature, F_R)     \
1504    do_name(     getAndSetByte_name,                                     "getAndSetByte")                                      \
1505    do_alias(    getAndSetByte_signature,                                /*"(Ljava/lang/Object;JB)B"*/ getAndAddByte_signature)  \
1506   do_intrinsic(_getAndSetShort,           jdk_internal_misc_Unsafe,     getAndSetShort_name, getAndSetShort_signature, F_R)   \
1507    do_name(     getAndSetShort_name,                                    "getAndSetShort")                                     \
1508    do_alias(    getAndSetShort_signature,                               /*"(Ljava/lang/Object;JS)S"*/ getAndAddShort_signature) \
1509   do_intrinsic(_getAndSetReference,       jdk_internal_misc_Unsafe,     getAndSetReference_name, getAndSetReference_signature, F_R) \
1510    do_name(     getAndSetReference_name,                                "getAndSetReference")                                  \
1511    do_signature(getAndSetReference_signature,                           "(Ljava/lang/Object;JLjava/lang/Object;)Ljava/lang/Object;" ) \
1512                                                                                                                                                \
1513   /* Vector API intrinsification support */                                                                                                    \
1514   do_intrinsic(_VectorUnaryOp, jdk_incubator_vector_VectorIntrinsics, vector_unary_op_name, vector_unary_op_sig, F_S)                          \
1515    do_signature(vector_unary_op_sig, "(ILjava/lang/Class;Ljava/lang/Class;ILjava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;") \
1516    do_name(vector_unary_op_name,     "unaryOp")                                                                                                \
1517                                                                                                                                                \
1518   do_intrinsic(_VectorBinaryOp, jdk_incubator_vector_VectorIntrinsics, vector_binary_op_name, vector_binary_op_sig, F_S)                       \
1519    do_signature(vector_binary_op_sig, "(ILjava/lang/Class;Ljava/lang/Class;ILjava/lang/Object;Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;") \
1520    do_name(vector_binary_op_name,     "binaryOp")                                                                                              \
1521                                                                                                                                                \
1522   do_intrinsic(_VectorTernaryOp, jdk_incubator_vector_VectorIntrinsics, vector_ternary_op_name, vector_ternary_op_sig, F_S)                    \
1523    do_signature(vector_ternary_op_sig, "(ILjava/lang/Class;Ljava/lang/Class;ILjava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljdk/incubator/vector/VectorIntrinsics$TernaryOperation;)Ljava/lang/Object;") \
1524    do_name(vector_ternary_op_name,     "ternaryOp")                                                                                            \
1525                                                                                                                                                \
1526   do_intrinsic(_VectorBroadcastCoerced, jdk_incubator_vector_VectorIntrinsics, vector_broadcast_coerced_name, vector_broadcast_coerced_sig, F_S) \
1527    do_signature(vector_broadcast_coerced_sig, "(Ljava/lang/Class;Ljava/lang/Class;IJLjdk/incubator/vector/VectorSpecies;Ljdk/incubator/vector/VectorIntrinsics$BroadcastOperation;)Ljava/lang/Object;")     \
1528    do_name(vector_broadcast_coerced_name, "broadcastCoerced")                                                                                  \
1529                                                                                                                                                \
1530   do_intrinsic(_VectorShuffleIota, jdk_incubator_vector_VectorIntrinsics, vector_shuffle_step_iota_name, vector_shuffle_step_iota_sig, F_S)        \
1531    do_signature(vector_shuffle_step_iota_sig, "(Ljava/lang/Class;Ljava/lang/Class;Ljdk/incubator/vector/VectorSpecies;IILjdk/incubator/vector/VectorIntrinsics$ShuffleIotaOperation;)Ljdk/incubator/vector/VectorShuffle;")                                         \
1532    do_name(vector_shuffle_step_iota_name, "shuffleIota")                                                                                        \
1533                                                                                                                                                \
1534   do_intrinsic(_VectorShuffleToVector, jdk_incubator_vector_VectorIntrinsics, vector_shuffle_to_vector_name, vector_shuffle_to_vector_sig, F_S)     \
1535    do_signature(vector_shuffle_to_vector_sig, "(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;Ljdk/incubator/vector/VectorShuffle;ILjdk/incubator/vector/VectorIntrinsics$ShuffleToVectorOperation;)Ljava/lang/Object;")                                        \
1536    do_name(vector_shuffle_to_vector_name, "shuffleToVector")                                                                                  \
1537                                                                                                                                                  \
1538   do_intrinsic(_VectorLoadOp, jdk_incubator_vector_VectorIntrinsics, vector_load_op_name, vector_load_op_sig, F_S)                             \
1539    do_signature(vector_load_op_sig, "(Ljava/lang/Class;Ljava/lang/Class;ILjava/lang/Object;JLjava/lang/Object;ILjdk/incubator/vector/VectorSpecies;Ljdk/incubator/vector/VectorIntrinsics$LoadOperation;)Ljava/lang/Object;") \
1540    do_name(vector_load_op_name,     "load")                                                                                                    \
1541   do_intrinsic(_VectorStoreOp, jdk_incubator_vector_VectorIntrinsics, vector_store_op_name, vector_store_op_sig, F_S)                          \
1542    do_signature(vector_store_op_sig, "(Ljava/lang/Class;Ljava/lang/Class;ILjava/lang/Object;JLjdk/incubator/vector/Vector;Ljava/lang/Object;ILjdk/incubator/vector/VectorIntrinsics$StoreVectorOperation;)V") \
1543    do_name(vector_store_op_name,     "store")                                                                                                  \
1544                                                                                                                                                \
1545   do_intrinsic(_VectorReductionCoerced, jdk_incubator_vector_VectorIntrinsics, vector_reduction_coerced_name, vector_reduction_coerced_sig, F_S) \
1546    do_signature(vector_reduction_coerced_sig, "(ILjava/lang/Class;Ljava/lang/Class;ILjdk/incubator/vector/Vector;Ljava/util/function/Function;)J") \
1547    do_name(vector_reduction_coerced_name, "reductionCoerced")                                                                                  \
1548                                                                                                                                                \
1549   do_intrinsic(_VectorTest, jdk_incubator_vector_VectorIntrinsics, vector_test_name, vector_test_sig, F_S)                                     \
1550    do_signature(vector_test_sig, "(ILjava/lang/Class;Ljava/lang/Class;ILjava/lang/Object;Ljava/lang/Object;Ljava/util/function/BiFunction;)Z") \
1551    do_name(vector_test_name, "test")                                                                                                           \
1552                                                                                                                                                \
1553   do_intrinsic(_VectorBlend, jdk_incubator_vector_VectorIntrinsics, vector_blend_name, vector_blend_sig, F_S)                                  \
1554    do_signature(vector_blend_sig, "(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;I"                                                      \
1555                                    "Ljdk/incubator/vector/Vector;Ljdk/incubator/vector/Vector;Ljdk/incubator/vector/VectorMask;"               \
1556                                    "Ljdk/incubator/vector/VectorIntrinsics$VectorBlendOp;)Ljdk/incubator/vector/Vector;")                      \
1557    do_name(vector_blend_name, "blend")                                                                                                         \
1558                                                                                                                                                \
1559   do_intrinsic(_VectorCompare, jdk_incubator_vector_VectorIntrinsics, vector_compare_name, vector_compare_sig, F_S)                            \
1560    do_signature(vector_compare_sig, "(ILjava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;I"                                                   \
1561                                     "Ljdk/incubator/vector/Vector;Ljdk/incubator/vector/Vector;"                                               \
1562                                     "Ljdk/incubator/vector/VectorIntrinsics$VectorCompareOp;)Ljdk/incubator/vector/VectorMask;")               \
1563    do_name(vector_compare_name, "compare")                                                                                                     \
1564                                                                                                                                                \
1565   do_intrinsic(_VectorRearrange, jdk_incubator_vector_VectorIntrinsics, vector_rearrange_name, vector_rearrange_sig, F_S)                      \
1566    do_signature(vector_rearrange_sig, "(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;I"                                                  \
1567                                       "Ljdk/incubator/vector/Vector;Ljdk/incubator/vector/VectorShuffle;"                                     \
1568                                       "Ljdk/incubator/vector/VectorIntrinsics$VectorRearrangeOp;)Ljdk/incubator/vector/Vector;")               \
1569    do_name(vector_rearrange_name, "rearrangeOp")                                                                                               \
1570                                                                                                                                                \
1571   do_intrinsic(_VectorExtract, jdk_incubator_vector_VectorIntrinsics, vector_extract_name, vector_extract_sig, F_S)                            \
1572    do_signature(vector_extract_sig, "(Ljava/lang/Class;Ljava/lang/Class;I"                                                                     \
1573                                     "Ljdk/incubator/vector/Vector;I"                                                                           \
1574                                     "Ljdk/incubator/vector/VectorIntrinsics$VecExtractOp;)J")                                                  \
1575    do_name(vector_extract_name, "extract")                                                                                                     \
1576                                                                                                                                                \
1577  do_intrinsic(_VectorInsert, jdk_incubator_vector_VectorIntrinsics, vector_insert_name, vector_insert_sig, F_S)                                \
1578    do_signature(vector_insert_sig, "(Ljava/lang/Class;Ljava/lang/Class;I"                                                                      \
1579                                      "Ljdk/incubator/vector/Vector;IJ"                                                                         \
1580                                      "Ljdk/incubator/vector/VectorIntrinsics$VecInsertOp;)Ljdk/incubator/vector/Vector;")                      \
1581    do_name(vector_insert_name, "insert")                                                                                                       \
1582                                                                                                                                                \
1583   do_intrinsic(_VectorBroadcastInt, jdk_incubator_vector_VectorIntrinsics, vector_broadcast_int_name, vector_broadcast_int_sig, F_S)           \
1584    do_signature(vector_broadcast_int_sig, "(ILjava/lang/Class;Ljava/lang/Class;I"                                                              \
1585                                           "Ljdk/incubator/vector/Vector;I"                                                                     \
1586                                           "Ljdk/incubator/vector/VectorIntrinsics$VectorBroadcastIntOp;)Ljdk/incubator/vector/Vector;")        \
1587    do_name(vector_broadcast_int_name, "broadcastInt")                                                                                          \
1588                                                                                                                                                \
1589   do_intrinsic(_VectorReinterpret, jdk_incubator_vector_VectorIntrinsics, vector_reinterpret_name, vector_reinterpret_sig, F_S)                \
1590    do_signature(vector_reinterpret_sig, "(Ljava/lang/Class;Ljava/lang/Class;I"                                                                 \
1591                                       "Ljava/lang/Class;Ljava/lang/Class;ILjava/lang/Object;Ljava/lang/Object;"                                \
1592                                       "Ljdk/incubator/vector/VectorIntrinsics$VectorReinterpretOp;)Ljava/lang/Object;")                        \
1593    do_name(vector_reinterpret_name, "reinterpret")                                                                                             \
1594                                                                                                                                                \
1595    do_intrinsic(_VectorCast, jdk_incubator_vector_VectorIntrinsics, Class_cast_name, vector_cast_sig, F_S)                                     \
1596     do_signature(vector_cast_sig, "(Ljava/lang/Class;Ljava/lang/Class;I"                                                                       \
1597                                   "Ljava/lang/Class;Ljava/lang/Class;ILjava/lang/Object;Ljava/lang/Object;"                                    \
1598                                   "Ljdk/incubator/vector/VectorIntrinsics$VectorCastOp;)Ljava/lang/Object;")                                   \
1599                                                                                                                                                \
1600    do_intrinsic(_VectorGatherOp, jdk_incubator_vector_VectorIntrinsics, vector_gather_name, vector_gather_sig, F_S)                            \
1601     do_signature(vector_gather_sig, "(Ljava/lang/Class;Ljava/lang/Class;ILjava/lang/Class;"                                                    \
1602                                    "Ljava/lang/Object;J"                                                                                       \
1603                                    "Ljdk/incubator/vector/IntVector;"                                                                          \
1604                                    "Ljava/lang/Object;I[II"                                                                                    \
1605                                    "Ljdk/incubator/vector/VectorSpecies;"                                                                      \
1606                                    "Ljdk/incubator/vector/VectorIntrinsics$LoadVectorOperationWithMap;)"                                       \
1607                                    "Ljdk/incubator/vector/Vector;")                                                                            \
1608     do_name(vector_gather_name, "loadWithMap")                                                                                                 \
1609    do_intrinsic(_VectorScatterOp, jdk_incubator_vector_VectorIntrinsics, vector_scatter_name, vector_scatter_sig, F_S)                         \
1610     do_signature(vector_scatter_sig, "(Ljava/lang/Class;Ljava/lang/Class;ILjava/lang/Class;"                                                   \
1611                                    "Ljava/lang/Object;J"                                                                                       \
1612                                    "Ljdk/incubator/vector/IntVector;Ljdk/incubator/vector/Vector;"                                                \
1613                                    "Ljava/lang/Object;I[II"                                                                                    \
1614                                    "Ljdk/incubator/vector/VectorIntrinsics$StoreVectorOperationWithMap;)V")                                    \
1615     do_name(vector_scatter_name, "storeWithMap")                                                                                               \
1616   do_intrinsic(_VectorRebox, jdk_incubator_vector_VectorIntrinsics, vector_rebox_name, vector_rebox_sig, F_S)                                  \
1617    do_alias(vector_rebox_sig, object_object_signature)                                                                                         \
1618    do_name(vector_rebox_name, "maybeRebox")                                                                                                    \
1619                                                                                                                                                \
1620                                                                                                                                \
1621    /* (2) Bytecode intrinsics                                                                        */                        \
1622                                                                                                                                \
1623   do_intrinsic(_park,                     jdk_internal_misc_Unsafe,     park_name, park_signature,                     F_R)    \
1624    do_name(     park_name,                                              "park")                                                \
1625    do_signature(park_signature,                                         "(ZJ)V")                                               \
1626   do_intrinsic(_unpark,                   jdk_internal_misc_Unsafe,     unpark_name, unpark_signature,                 F_R)    \
1627    do_name(     unpark_name,                                            "unpark")                                              \
1628    do_alias(    unpark_signature,                                       /*(LObject;)V*/ object_void_signature)                 \
1629                                                                                                                                \
1630   do_intrinsic(_StringBuilder_void,   java_lang_StringBuilder, object_initializer_name, void_method_signature,     F_R)   \
1631   do_intrinsic(_StringBuilder_int,    java_lang_StringBuilder, object_initializer_name, int_void_signature,        F_R)   \
1632   do_intrinsic(_StringBuilder_String, java_lang_StringBuilder, object_initializer_name, string_void_signature,     F_R)   \
1633                                                                                                                           \
1634   do_intrinsic(_StringBuilder_append_char,   java_lang_StringBuilder, append_name, char_StringBuilder_signature,   F_R)   \
1635   do_intrinsic(_StringBuilder_append_int,    java_lang_StringBuilder, append_name, int_StringBuilder_signature,    F_R)   \
1636   do_intrinsic(_StringBuilder_append_String, java_lang_StringBuilder, append_name, String_StringBuilder_signature, F_R)   \
1637                                                                                                                           \
1638   do_intrinsic(_StringBuilder_toString, java_lang_StringBuilder, toString_name, void_string_signature,             F_R)   \
1639                                                                                                                           \
1640   do_intrinsic(_StringBuffer_void,   java_lang_StringBuffer, object_initializer_name, void_method_signature,       F_R)   \
1641   do_intrinsic(_StringBuffer_int,    java_lang_StringBuffer, object_initializer_name, int_void_signature,          F_R)   \
1642   do_intrinsic(_StringBuffer_String, java_lang_StringBuffer, object_initializer_name, string_void_signature,       F_R)   \
1643                                                                                                                           \
1644   do_intrinsic(_StringBuffer_append_char,   java_lang_StringBuffer, append_name, char_StringBuffer_signature,      F_Y)   \
1645   do_intrinsic(_StringBuffer_append_int,    java_lang_StringBuffer, append_name, int_StringBuffer_signature,       F_Y)   \
1646   do_intrinsic(_StringBuffer_append_String, java_lang_StringBuffer, append_name, String_StringBuffer_signature,    F_Y)   \
1647                                                                                                                           \
1648   do_intrinsic(_StringBuffer_toString,  java_lang_StringBuffer, toString_name, void_string_signature,              F_Y)   \
1649                                                                                                                           \
1650   do_intrinsic(_Integer_toString,      java_lang_Integer, toString_name, int_String_signature,                     F_S)   \
1651                                                                                                                           \
1652   do_intrinsic(_String_String, java_lang_String, object_initializer_name, string_void_signature,                   F_R)   \
1653                                                                                                                           \
1654   do_intrinsic(_Object_init,              java_lang_Object, object_initializer_name, void_method_signature,        F_R)   \
1655   /*    (symbol object_initializer_name defined above) */                                                                 \
1656                                                                                                                           \
1657   do_intrinsic(_invoke,                   java_lang_reflect_Method, invoke_name, object_object_array_object_signature, F_R) \
1658   /*   (symbols invoke_name and invoke_signature defined above) */                                                      \
1659   /* the polymorphic MH intrinsics must be in compact order, with _invokeGeneric first and _linkToInterface last */     \
1660   do_intrinsic(_invokeGeneric,            java_lang_invoke_MethodHandle, invoke_name,           star_name, F_RN)        \
1661   do_intrinsic(_invokeBasic,              java_lang_invoke_MethodHandle, invokeBasic_name,      star_name, F_RN)        \
1662   do_intrinsic(_linkToVirtual,            java_lang_invoke_MethodHandle, linkToVirtual_name,    star_name, F_SN)        \
1663   do_intrinsic(_linkToStatic,             java_lang_invoke_MethodHandle, linkToStatic_name,     star_name, F_SN)        \
1664   do_intrinsic(_linkToSpecial,            java_lang_invoke_MethodHandle, linkToSpecial_name,    star_name, F_SN)        \
1665   do_intrinsic(_linkToInterface,          java_lang_invoke_MethodHandle, linkToInterface_name,  star_name, F_SN)        \
1666   /* special marker for bytecode generated for the JVM from a LambdaForm: */                                            \
1667   do_intrinsic(_compiledLambdaForm,       java_lang_invoke_MethodHandle, compiledLambdaForm_name, star_name, F_RN)      \
1668                                                                                                                         \
1669   /* unboxing methods: */                                                                                               \
1670   do_intrinsic(_booleanValue,             java_lang_Boolean,      booleanValue_name, void_boolean_signature, F_R)       \
1671    do_name(     booleanValue_name,       "booleanValue")                                                                \
1672   do_intrinsic(_byteValue,                java_lang_Byte,         byteValue_name, void_byte_signature, F_R)             \
1673    do_name(     byteValue_name,          "byteValue")                                                                   \
1674   do_intrinsic(_charValue,                java_lang_Character,    charValue_name, void_char_signature, F_R)             \
1675    do_name(     charValue_name,          "charValue")                                                                   \
1676   do_intrinsic(_shortValue,               java_lang_Short,        shortValue_name, void_short_signature, F_R)           \
1677    do_name(     shortValue_name,         "shortValue")                                                                  \
1678   do_intrinsic(_intValue,                 java_lang_Integer,      intValue_name, void_int_signature, F_R)               \
1679    do_name(     intValue_name,           "intValue")                                                                    \
1680   do_intrinsic(_longValue,                java_lang_Long,         longValue_name, void_long_signature, F_R)             \
1681    do_name(     longValue_name,          "longValue")                                                                   \
1682   do_intrinsic(_floatValue,               java_lang_Float,        floatValue_name, void_float_signature, F_R)           \
1683    do_name(     floatValue_name,         "floatValue")                                                                  \
1684   do_intrinsic(_doubleValue,              java_lang_Double,       doubleValue_name, void_double_signature, F_R)         \
1685    do_name(     doubleValue_name,        "doubleValue")                                                                 \
1686                                                                                                                         \
1687   /* boxing methods: */                                                                                                 \
1688    do_name(    valueOf_name,              "valueOf")                                                                    \
1689   do_intrinsic(_Boolean_valueOf,          java_lang_Boolean,      valueOf_name, Boolean_valueOf_signature, F_S)         \
1690    do_name(     Boolean_valueOf_signature,                       "(Z)Ljava/lang/Boolean;")                              \
1691   do_intrinsic(_Byte_valueOf,             java_lang_Byte,         valueOf_name, Byte_valueOf_signature, F_S)            \
1692    do_name(     Byte_valueOf_signature,                          "(B)Ljava/lang/Byte;")                                 \
1693   do_intrinsic(_Character_valueOf,        java_lang_Character,    valueOf_name, Character_valueOf_signature, F_S)       \
1694    do_name(     Character_valueOf_signature,                     "(C)Ljava/lang/Character;")                            \
1695   do_intrinsic(_Short_valueOf,            java_lang_Short,        valueOf_name, Short_valueOf_signature, F_S)           \
1696    do_name(     Short_valueOf_signature,                         "(S)Ljava/lang/Short;")                                \
1697   do_intrinsic(_Integer_valueOf,          java_lang_Integer,      valueOf_name, Integer_valueOf_signature, F_S)         \
1698    do_name(     Integer_valueOf_signature,                       "(I)Ljava/lang/Integer;")                              \
1699   do_intrinsic(_Long_valueOf,             java_lang_Long,         valueOf_name, Long_valueOf_signature, F_S)            \
1700    do_name(     Long_valueOf_signature,                          "(J)Ljava/lang/Long;")                                 \
1701   do_intrinsic(_Float_valueOf,            java_lang_Float,        valueOf_name, Float_valueOf_signature, F_S)           \
1702    do_name(     Float_valueOf_signature,                         "(F)Ljava/lang/Float;")                                \
1703   do_intrinsic(_Double_valueOf,           java_lang_Double,       valueOf_name, Double_valueOf_signature, F_S)          \
1704    do_name(     Double_valueOf_signature,                        "(D)Ljava/lang/Double;")                               \
1705                                                                                                                         \
1706   /* forEachRemaining */                                                                             \
1707   do_intrinsic(_forEachRemaining, java_util_stream_StreamsRangeIntSpliterator, forEachRemaining_name, forEachRemaining_signature, F_R) \
1708    do_name(     forEachRemaining_name,    "forEachRemaining")                                                           \
1709    do_name(     forEachRemaining_signature,                      "(Ljava/util/function/IntConsumer;)V")                 \
1710 
1711     /*end*/
1712 
1713 
1714 
1715 
1716 // Class vmSymbols
1717 
1718 class vmSymbols: AllStatic {
1719   friend class vmIntrinsics;
1720   friend class VMStructs;
1721   friend class JVMCIVMStructs;
1722  public:
1723   // enum for figuring positions and size of array holding Symbol*s
1724   enum SID {
1725     NO_SID = 0,
1726 
1727     #define VM_SYMBOL_ENUM(name, string) VM_SYMBOL_ENUM_NAME(name),
1728     VM_SYMBOLS_DO(VM_SYMBOL_ENUM, VM_ALIAS_IGNORE)
1729     #undef VM_SYMBOL_ENUM
1730 
1731     SID_LIMIT,
1732 
1733     #define VM_ALIAS_ENUM(name, def) VM_SYMBOL_ENUM_NAME(name) = VM_SYMBOL_ENUM_NAME(def),
1734     VM_SYMBOLS_DO(VM_SYMBOL_IGNORE, VM_ALIAS_ENUM)
1735     #undef VM_ALIAS_ENUM
1736 
1737     FIRST_SID = NO_SID + 1
1738   };
1739   enum {
1740     log2_SID_LIMIT = 12         // checked by an assert at start-up
1741   };
1742 
1743  private:
1744   // The symbol array
1745   static Symbol* _symbols[];
1746 
1747   // Field signatures indexed by BasicType.
1748   static Symbol* _type_signatures[T_VOID+1];
1749 
1750  public:
1751   // Initialization
1752   static void initialize(TRAPS);
1753   // Accessing
1754   #define VM_SYMBOL_DECLARE(name, ignore)                 \
1755     static Symbol* name() {                               \
1756       return _symbols[VM_SYMBOL_ENUM_NAME(name)];         \
1757     }
1758   VM_SYMBOLS_DO(VM_SYMBOL_DECLARE, VM_SYMBOL_DECLARE)
1759   #undef VM_SYMBOL_DECLARE
1760 
1761   // Sharing support
1762   static void symbols_do(SymbolClosure* f);
1763   static void metaspace_pointers_do(MetaspaceClosure *it);
1764   static void serialize(SerializeClosure* soc);
1765 
1766   static Symbol* type_signature(BasicType t) {
1767     assert((uint)t < T_VOID+1, "range check");
1768     assert(_type_signatures[t] != NULL, "domain check");
1769     return _type_signatures[t];
1770   }
1771   // inverse of type_signature; returns T_OBJECT if s is not recognized
1772   static BasicType signature_type(const Symbol* s);
1773 
1774   static Symbol* symbol_at(SID id) {
1775     assert(id >= FIRST_SID && id < SID_LIMIT, "oob");
1776     assert(_symbols[id] != NULL, "init");
1777     return _symbols[id];
1778   }
1779 
1780   // Returns symbol's SID if one is assigned, else NO_SID.
1781   static SID find_sid(const Symbol* symbol);
1782   static SID find_sid(const char* symbol_name);
1783 
1784 #ifndef PRODUCT
1785   // No need for this in the product:
1786   static const char* name_for(SID sid);
1787 #endif //PRODUCT
1788 };
1789 
1790 // VM Intrinsic ID's uniquely identify some very special methods
1791 class vmIntrinsics: AllStatic {
1792   friend class vmSymbols;
1793   friend class ciObjectFactory;
1794 
1795  public:
1796   // Accessing
1797   enum ID {
1798     _none = 0,                      // not an intrinsic (default answer)
1799 
1800     #define VM_INTRINSIC_ENUM(id, klass, name, sig, flags)  id,
1801     VM_INTRINSICS_DO(VM_INTRINSIC_ENUM,
1802                      VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE)
1803     #undef VM_INTRINSIC_ENUM
1804 
1805     ID_LIMIT,
1806     LAST_COMPILER_INLINE = _VectorScatterOp,
1807     FIRST_VECTOR_API     = _VectorUnaryOp,
1808     LAST_VECTOR_API      = _VectorRebox,
1809     FIRST_MH_SIG_POLY    = _invokeGeneric,
1810     FIRST_MH_STATIC      = _linkToVirtual,
1811     LAST_MH_SIG_POLY     = _linkToInterface,
1812 
1813     FIRST_ID = _none + 1
1814   };
1815 
1816   enum Flags {
1817     // AccessFlags syndromes relevant to intrinsics.
1818     F_none = 0,
1819     F_R,                        // !static ?native !synchronized (R="regular")
1820     F_S,                        //  static ?native !synchronized
1821     F_Y,                        // !static ?native  synchronized
1822     F_RN,                       // !static  native !synchronized
1823     F_SN,                       //  static  native !synchronized
1824     F_RNY,                      // !static  native  synchronized
1825 
1826     FLAG_LIMIT
1827   };
1828   enum {
1829     log2_FLAG_LIMIT = 4         // checked by an assert at start-up
1830   };
1831 
1832 public:
1833   static ID ID_from(int raw_id) {
1834     assert(raw_id >= (int)_none && raw_id < (int)ID_LIMIT,
1835            "must be a valid intrinsic ID");
1836     return (ID)raw_id;
1837   }
1838 
1839   static const char* name_at(ID id);
1840 
1841 private:
1842   static ID find_id_impl(vmSymbols::SID holder,
1843                          vmSymbols::SID name,
1844                          vmSymbols::SID sig,
1845                          jshort flags);
1846 
1847 public:
1848   // Given a method's class, name, signature, and access flags, report its ID.
1849   static ID find_id(vmSymbols::SID holder,
1850                     vmSymbols::SID name,
1851                     vmSymbols::SID sig,
1852                     jshort flags) {
1853     ID id = find_id_impl(holder, name, sig, flags);
1854 #ifdef ASSERT
1855     // ID _none does not hold the following asserts.
1856     if (id == _none)  return id;
1857 #endif
1858     assert(    class_for(id) == holder, "correct id");
1859     assert(     name_for(id) == name,   "correct id");
1860     assert(signature_for(id) == sig,    "correct id");
1861     return id;
1862   }
1863 
1864   static void verify_method(ID actual_id, Method* m) PRODUCT_RETURN;
1865 
1866   // Find out the symbols behind an intrinsic:
1867   static vmSymbols::SID     class_for(ID id);
1868   static vmSymbols::SID      name_for(ID id);
1869   static vmSymbols::SID signature_for(ID id);
1870   static Flags              flags_for(ID id);
1871 
1872   static const char* short_name_as_C_string(ID id, char* buf, int size);
1873 
1874   // Wrapper object methods:
1875   static ID for_boxing(BasicType type);
1876   static ID for_unboxing(BasicType type);
1877 
1878   // Raw conversion:
1879   static ID for_raw_conversion(BasicType src, BasicType dest);
1880 
1881   // The methods below provide information related to compiling intrinsics.
1882 
1883   // (1) Information needed by the C1 compiler.
1884 
1885   static bool preserves_state(vmIntrinsics::ID id);
1886   static bool can_trap(vmIntrinsics::ID id);
1887   static bool should_be_pinned(vmIntrinsics::ID id);
1888 
1889   // (2) Information needed by the C2 compiler.
1890 
1891   // Returns true if the intrinsic for method 'method' will perform a virtual dispatch.
1892   static bool does_virtual_dispatch(vmIntrinsics::ID id);
1893   // A return value larger than 0 indicates that the intrinsic for method
1894   // 'method' requires predicated logic.
1895   static int predicates_needed(vmIntrinsics::ID id);
1896 
1897   // Returns true if a compiler intrinsic is disabled by command-line flags
1898   // and false otherwise.
1899   static bool is_disabled_by_flags(const methodHandle& method);
1900   static bool is_disabled_by_flags(vmIntrinsics::ID id);
1901   static bool is_intrinsic_disabled(vmIntrinsics::ID id);
1902   static bool is_intrinsic_available(vmIntrinsics::ID id);
1903 };
1904 
1905 #endif // SHARE_CLASSFILE_VMSYMBOLS_HPP