1 /*
   2  * Copyright (c) 2020, 2024, 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_VMINTRINSICS_HPP
  26 #define SHARE_CLASSFILE_VMINTRINSICS_HPP
  27 
  28 #include "jfr/support/jfrIntrinsics.hpp"
  29 #include "memory/allStatic.hpp"
  30 #include "utilities/globalDefinitions.hpp"
  31 #include "utilities/enumIterator.hpp"
  32 #include "utilities/vmEnums.hpp"
  33 
  34 class Method;
  35 class methodHandle;
  36 
  37 // Here are all the intrinsics known to the runtime and the CI.
  38 // Each intrinsic consists of a public enum name (like _hashCode),
  39 // followed by a specification of its klass, name, and signature:
  40 //    template(<id>,  <klass>,  <name>, <sig>, <FCODE>)
  41 //
  42 // If you add an intrinsic here, you must also define its name
  43 // and signature as members of the VM symbols.  The VM symbols for
  44 // the intrinsic name and signature may be defined above.
  45 //
  46 // Because the VM_SYMBOLS_DO macro makes reference to VM_INTRINSICS_DO,
  47 // you can also define an intrinsic's name and/or signature locally to the
  48 // intrinsic, if this makes sense.  (It often does make sense.)
  49 //
  50 // For example:
  51 //    do_intrinsic(_foo,  java_lang_Object,  foo_name, foo_signature, F_xx)
  52 //     do_name(     foo_name, "foo")
  53 //     do_signature(foo_signature, "()F")
  54 // klass      = vmSymbols::java_lang_Object()
  55 // name       = vmSymbols::foo_name()
  56 // signature  = vmSymbols::foo_signature()
  57 //
  58 // The name and/or signature might be a "well known" symbol
  59 // like "equal" or "()I", in which case there will be no local
  60 // re-definition of the symbol.
  61 //
  62 // The do_class, do_name, and do_signature calls are all used for the
  63 // same purpose:  Define yet another VM symbol.  They could all be merged
  64 // into a common 'do_symbol' call, but it seems useful to record our
  65 // intentions here about kinds of symbols (class vs. name vs. signature).
  66 //
  67 // The F_xx is one of the Flags enum; see below.
  68 //
  69 // for Emacs: (let ((c-backslash-column 120) (c-backslash-max-column 120)) (c-backslash-region (point) (point-max) nil t))
  70 //
  71 //
  72 // There are two types of intrinsic methods: (1) Library intrinsics and (2) bytecode intrinsics.
  73 //
  74 // (1) A library intrinsic method may be replaced with hand-crafted assembly code,
  75 // with hand-crafted compiler IR, or with a combination of the two. The semantics
  76 // of the replacement code may differ from the semantics of the replaced code.
  77 //
  78 // (2) Bytecode intrinsic methods are not replaced by special code, but they are
  79 // treated in some other special way by the compiler. For example, the compiler
  80 // may delay inlining for some String-related intrinsic methods (e.g., some methods
  81 // defined in the StringBuilder and StringBuffer classes, see
  82 // Compile::should_delay_string_inlining() for more details).
  83 //
  84 // Due to the difference between the semantics of an intrinsic method as defined
  85 // in the (Java) source code and the semantics of the method as defined
  86 // by the code in the VM, intrinsic methods must be explicitly marked.
  87 //
  88 // Intrinsic methods are marked by the jdk.internal.vm.annotation.IntrinsicCandidate
  89 // annotation. If CheckIntrinsics is enabled, the VM performs the following
  90 // checks when a class C is loaded: (1) all intrinsics defined by the VM for
  91 // class C are present in the loaded class file and are marked;
  92 // (2) an intrinsic is defined by the VM for all marked methods of class C;
  93 // (3) check for orphan methods in class C (i.e., methods for which the VM
  94 // declares an intrinsic but that are not declared for the loaded class C.
  95 // Check (3) is available only in debug builds.
  96 //
  97 // If a mismatch is detected for a method, the VM behaves differently depending
  98 // on the type of build. A fastdebug build exits and reports an error on a mismatch.
  99 // A product build will not replace an unmarked library intrinsic method with
 100 // hand-crafted code, that is, unmarked library intrinsics are treated as ordinary
 101 // methods in a product build. The special treatment of a bytecode intrinsic method
 102 // persists even if the method not marked.
 103 //
 104 // When adding an intrinsic for a method, please make sure to appropriately
 105 // annotate the method in the source code. The list below contains all
 106 // library intrinsics followed by bytecode intrinsics. Please also make sure to
 107 // add the declaration of the intrinsic to the appropriate section of the list.
 108 #define VM_INTRINSICS_DO(do_intrinsic, do_class, do_name, do_signature, do_alias)                                       \
 109   /* (1) Library intrinsics                                                                        */                   \
 110   do_intrinsic(_hashCode,                 java_lang_Object,       hashCode_name, void_int_signature,             F_RN)  \
 111    do_name(     hashCode_name,                                   "hashCode")                                            \
 112   do_intrinsic(_getClass,                 java_lang_Object,       getClass_name, void_class_signature,           F_RN)  \
 113    do_name(     getClass_name,                                   "getClass")                                            \
 114   do_intrinsic(_clone,                    java_lang_Object,       clone_name, void_object_signature,             F_RN)  \
 115    do_name(     clone_name,                                      "clone")                                               \
 116   do_intrinsic(_notify,                   java_lang_Object,       notify_name, void_method_signature,            F_RN)  \
 117    do_name(     notify_name,                                     "notify")                                              \
 118   do_intrinsic(_notifyAll,                java_lang_Object,       notifyAll_name, void_method_signature,         F_RN)  \
 119    do_name(     notifyAll_name,                                  "notifyAll")                                           \
 120                                                                                                                         \
 121   /* Math & StrictMath intrinsics are defined in terms of just a few signatures: */                                     \
 122   do_class(java_lang_Math,                "java/lang/Math")                                                             \
 123   do_class(java_lang_StrictMath,          "java/lang/StrictMath")                                                       \
 124   do_signature(double2_double_signature,  "(DD)D")                                                                      \
 125   do_signature(double3_double_signature,  "(DDD)D")                                                                     \
 126   do_signature(float2_float_signature,    "(FF)F")                                                                      \
 127   do_signature(float3_float_signature,    "(FFF)F")                                                                     \
 128   do_signature(int2_int_signature,        "(II)I")                                                                      \
 129   do_signature(long2_int_signature,       "(JJ)I")                                                                      \
 130   do_signature(long2_long_signature,      "(JJ)J")                                                                      \
 131                                                                                                                         \
 132   /* here are the math names, all together: */                                                                          \
 133   do_name(abs_name,"abs")       do_name(sin_name,"sin")         do_name(cos_name,"cos")                                 \
 134   do_name(tan_name,"tan")       do_name(atan2_name,"atan2")     do_name(sqrt_name,"sqrt")                               \
 135   do_name(log_name,"log")       do_name(log10_name,"log10")     do_name(pow_name,"pow")                                 \
 136   do_name(exp_name,"exp")       do_name(min_name,"min")         do_name(max_name,"max")                                 \
 137   do_name(floor_name, "floor")  do_name(ceil_name, "ceil")      do_name(rint_name, "rint")                              \
 138   do_name(round_name, "round")  do_name(tanh_name,"tanh")                                                               \
 139                                                                                                                         \
 140   do_name(addExact_name,"addExact")                                                                                     \
 141   do_name(decrementExact_name,"decrementExact")                                                                         \
 142   do_name(incrementExact_name,"incrementExact")                                                                         \
 143   do_name(multiplyExact_name,"multiplyExact")                                                                           \
 144   do_name(multiplyHigh_name,"multiplyHigh")                                                                             \
 145   do_name(unsignedMultiplyHigh_name,"unsignedMultiplyHigh")                                                             \
 146   do_name(negateExact_name,"negateExact")                                                                               \
 147   do_name(subtractExact_name,"subtractExact")                                                                           \
 148   do_name(fma_name, "fma")                                                                                              \
 149   do_name(copySign_name, "copySign")                                                                                    \
 150   do_name(signum_name,"signum")                                                                                         \
 151   do_name(expand_name,"expand")                                                                                         \
 152                                                                                                                         \
 153   do_intrinsic(_dabs,                     java_lang_Math,         abs_name,   double_double_signature,           F_S)   \
 154   do_intrinsic(_fabs,                     java_lang_Math,         abs_name,   float_float_signature,             F_S)   \
 155   do_intrinsic(_iabs,                     java_lang_Math,         abs_name,   int_int_signature,                 F_S)   \
 156   do_intrinsic(_labs,                     java_lang_Math,         abs_name,   long_long_signature,               F_S)   \
 157   do_intrinsic(_dsin,                     java_lang_Math,         sin_name,   double_double_signature,           F_S)   \
 158   do_intrinsic(_floor,                    java_lang_Math,         floor_name, double_double_signature,           F_S)   \
 159   do_intrinsic(_ceil,                     java_lang_Math,         ceil_name,  double_double_signature,           F_S)   \
 160   do_intrinsic(_rint,                     java_lang_Math,         rint_name,  double_double_signature,           F_S)   \
 161   do_intrinsic(_dcos,                     java_lang_Math,         cos_name,   double_double_signature,           F_S)   \
 162   do_intrinsic(_dtan,                     java_lang_Math,         tan_name,   double_double_signature,           F_S)   \
 163   do_intrinsic(_datan2,                   java_lang_Math,         atan2_name, double2_double_signature,          F_S)   \
 164   do_intrinsic(_dtanh,                    java_lang_Math,         tanh_name,   double_double_signature,          F_S)   \
 165   do_intrinsic(_dsqrt,                    java_lang_Math,         sqrt_name,  double_double_signature,           F_S)   \
 166   do_intrinsic(_dlog,                     java_lang_Math,         log_name,   double_double_signature,           F_S)   \
 167   do_intrinsic(_dlog10,                   java_lang_Math,         log10_name, double_double_signature,           F_S)   \
 168   do_intrinsic(_dpow,                     java_lang_Math,         pow_name,   double2_double_signature,          F_S)   \
 169   do_intrinsic(_dexp,                     java_lang_Math,         exp_name,   double_double_signature,           F_S)   \
 170   do_intrinsic(_min,                      java_lang_Math,         min_name,   int2_int_signature,                F_S)   \
 171   do_intrinsic(_max,                      java_lang_Math,         max_name,   int2_int_signature,                F_S)   \
 172   do_intrinsic(_addExactI,                java_lang_Math,         addExact_name, int2_int_signature,             F_S)   \
 173   do_intrinsic(_addExactL,                java_lang_Math,         addExact_name, long2_long_signature,           F_S)   \
 174   do_intrinsic(_decrementExactI,          java_lang_Math,         decrementExact_name, int_int_signature,        F_S)   \
 175   do_intrinsic(_decrementExactL,          java_lang_Math,         decrementExact_name, long_long_signature,      F_S)   \
 176   do_intrinsic(_incrementExactI,          java_lang_Math,         incrementExact_name, int_int_signature,        F_S)   \
 177   do_intrinsic(_incrementExactL,          java_lang_Math,         incrementExact_name, long_long_signature,      F_S)   \
 178   do_intrinsic(_multiplyExactI,           java_lang_Math,         multiplyExact_name, int2_int_signature,        F_S)   \
 179   do_intrinsic(_multiplyExactL,           java_lang_Math,         multiplyExact_name, long2_long_signature,      F_S)   \
 180   do_intrinsic(_multiplyHigh,             java_lang_Math,         multiplyHigh_name, long2_long_signature,       F_S)   \
 181   do_intrinsic(_unsignedMultiplyHigh,     java_lang_Math,         unsignedMultiplyHigh_name, long2_long_signature, F_S) \
 182   do_intrinsic(_negateExactI,             java_lang_Math,         negateExact_name, int_int_signature,           F_S)   \
 183   do_intrinsic(_negateExactL,             java_lang_Math,         negateExact_name, long_long_signature,         F_S)   \
 184   do_intrinsic(_subtractExactI,           java_lang_Math,         subtractExact_name, int2_int_signature,        F_S)   \
 185   do_intrinsic(_subtractExactL,           java_lang_Math,         subtractExact_name, long2_long_signature,      F_S)   \
 186   do_intrinsic(_fmaD,                     java_lang_Math,         fma_name,           double3_double_signature,  F_S)   \
 187   do_intrinsic(_fmaF,                     java_lang_Math,         fma_name,           float3_float_signature,    F_S)   \
 188   do_intrinsic(_maxF,                     java_lang_Math,         max_name,           float2_float_signature,    F_S)   \
 189   do_intrinsic(_minF,                     java_lang_Math,         min_name,           float2_float_signature,    F_S)   \
 190   do_intrinsic(_maxD,                     java_lang_Math,         max_name,           double2_double_signature,  F_S)   \
 191   do_intrinsic(_minD,                     java_lang_Math,         min_name,           double2_double_signature,  F_S)   \
 192   do_intrinsic(_roundD,                   java_lang_Math,         round_name,         double_long_signature,     F_S)   \
 193   do_intrinsic(_roundF,                   java_lang_Math,         round_name,         float_int_signature,       F_S)   \
 194   do_intrinsic(_dcopySign,                java_lang_Math,         copySign_name,      double2_double_signature,  F_S)   \
 195   do_intrinsic(_fcopySign,                java_lang_Math,         copySign_name,      float2_float_signature,    F_S)   \
 196   do_intrinsic(_dsignum,                  java_lang_Math,         signum_name,        double_double_signature,   F_S)   \
 197   do_intrinsic(_fsignum,                  java_lang_Math,         signum_name,        float_float_signature,     F_S)   \
 198                                                                                                                         \
 199   /* StrictMath intrinsics, similar to what we have in Math. */                                                         \
 200   do_intrinsic(_min_strict,               java_lang_StrictMath,   min_name,           int2_int_signature,        F_S)   \
 201   do_intrinsic(_max_strict,               java_lang_StrictMath,   max_name,           int2_int_signature,        F_S)   \
 202   do_intrinsic(_minF_strict,              java_lang_StrictMath,   min_name,           float2_float_signature,    F_S)   \
 203   do_intrinsic(_maxF_strict,              java_lang_StrictMath,   max_name,           float2_float_signature,    F_S)   \
 204   do_intrinsic(_minD_strict,              java_lang_StrictMath,   min_name,           double2_double_signature,  F_S)   \
 205   do_intrinsic(_maxD_strict,              java_lang_StrictMath,   max_name,           double2_double_signature,  F_S)   \
 206   /* Additional dsqrt intrinsic to directly handle the sqrt method in StrictMath. Otherwise the same as in Math. */     \
 207   do_intrinsic(_dsqrt_strict,             java_lang_StrictMath,   sqrt_name,          double_double_signature,   F_S)   \
 208                                                                                                                         \
 209   do_intrinsic(_floatIsInfinite,          java_lang_Float,        isInfinite_name,    float_bool_signature,      F_S)   \
 210    do_name(     isInfinite_name,                                  "isInfinite")                                         \
 211   do_intrinsic(_floatIsFinite,            java_lang_Float,        isFinite_name,      float_bool_signature,      F_S)   \
 212    do_name(     isFinite_name,                                    "isFinite")                                           \
 213   do_intrinsic(_doubleIsInfinite,         java_lang_Double,       isInfinite_name,    double_bool_signature,     F_S)   \
 214   do_intrinsic(_doubleIsFinite,           java_lang_Double,       isFinite_name,      double_bool_signature,     F_S)   \
 215                                                                                                                         \
 216   do_intrinsic(_floatToRawIntBits,        java_lang_Float,        floatToRawIntBits_name,   float_int_signature, F_SN)  \
 217    do_name(     floatToRawIntBits_name,                          "floatToRawIntBits")                                   \
 218   do_intrinsic(_floatToIntBits,           java_lang_Float,        floatToIntBits_name,      float_int_signature, F_S)   \
 219    do_name(     floatToIntBits_name,                             "floatToIntBits")                                      \
 220   do_intrinsic(_intBitsToFloat,           java_lang_Float,        intBitsToFloat_name,      int_float_signature, F_SN)  \
 221    do_name(     intBitsToFloat_name,                             "intBitsToFloat")                                      \
 222   do_intrinsic(_doubleToRawLongBits,      java_lang_Double,       doubleToRawLongBits_name, double_long_signature, F_SN)\
 223    do_name(     doubleToRawLongBits_name,                        "doubleToRawLongBits")                                 \
 224   do_intrinsic(_doubleToLongBits,         java_lang_Double,       doubleToLongBits_name,    double_long_signature, F_S) \
 225    do_name(     doubleToLongBits_name,                           "doubleToLongBits")                                    \
 226   do_intrinsic(_longBitsToDouble,         java_lang_Double,       longBitsToDouble_name,    long_double_signature, F_SN)\
 227    do_name(     longBitsToDouble_name,                           "longBitsToDouble")                                    \
 228   do_intrinsic(_float16ToFloat,           java_lang_Float,        float16ToFloat_name,      f16_float_signature, F_S)   \
 229    do_name(     float16ToFloat_name,                             "float16ToFloat")                                      \
 230    do_signature(f16_float_signature,                             "(S)F")                                                \
 231   do_intrinsic(_floatToFloat16,           java_lang_Float,        floatToFloat16_name,      float_f16_signature, F_S)   \
 232    do_name(     floatToFloat16_name,                             "floatToFloat16")                                      \
 233    do_signature(float_f16_signature,                             "(F)S")                                                \
 234                                                                                                                         \
 235   do_intrinsic(_compareUnsigned_i,        java_lang_Integer,      compareUnsigned_name,     int2_int_signature,  F_S)   \
 236   do_intrinsic(_compareUnsigned_l,        java_lang_Long,         compareUnsigned_name,     long2_int_signature, F_S)   \
 237    do_name(     compareUnsigned_name,                            "compareUnsigned")                                     \
 238                                                                                                                         \
 239   do_intrinsic(_divideUnsigned_i,         java_lang_Integer,      divideUnsigned_name,      int2_int_signature,  F_S)   \
 240   do_intrinsic(_remainderUnsigned_i,      java_lang_Integer,      remainderUnsigned_name,   int2_int_signature,  F_S)   \
 241    do_name(     divideUnsigned_name,                             "divideUnsigned")                                      \
 242   do_intrinsic(_divideUnsigned_l,         java_lang_Long,         divideUnsigned_name,      long2_long_signature, F_S)  \
 243   do_intrinsic(_remainderUnsigned_l,      java_lang_Long,         remainderUnsigned_name,   long2_long_signature, F_S)  \
 244    do_name(     remainderUnsigned_name,                          "remainderUnsigned")                                   \
 245                                                                                                                         \
 246   do_intrinsic(_numberOfLeadingZeros_i,   java_lang_Integer,      numberOfLeadingZeros_name,int_int_signature,   F_S)   \
 247   do_intrinsic(_numberOfLeadingZeros_l,   java_lang_Long,         numberOfLeadingZeros_name,long_int_signature,  F_S)   \
 248                                                                                                                         \
 249   do_intrinsic(_numberOfTrailingZeros_i,  java_lang_Integer,      numberOfTrailingZeros_name,int_int_signature,  F_S)   \
 250   do_intrinsic(_numberOfTrailingZeros_l,  java_lang_Long,         numberOfTrailingZeros_name,long_int_signature, F_S)   \
 251                                                                                                                         \
 252   do_intrinsic(_bitCount_i,               java_lang_Integer,      bitCount_name,            int_int_signature,   F_S)   \
 253   do_intrinsic(_bitCount_l,               java_lang_Long,         bitCount_name,            long_int_signature,  F_S)   \
 254   do_intrinsic(_compress_i,               java_lang_Integer,      compress_name,            int2_int_signature,   F_S)  \
 255   do_intrinsic(_compress_l,               java_lang_Long,         compress_name,            long2_long_signature, F_S)  \
 256   do_intrinsic(_expand_i,                 java_lang_Integer,      expand_name,              int2_int_signature,   F_S)  \
 257   do_intrinsic(_expand_l,                 java_lang_Long,         expand_name,              long2_long_signature, F_S)  \
 258                                                                                                                         \
 259   do_intrinsic(_reverse_i,                java_lang_Integer,      reverse_name,             int_int_signature,   F_S)   \
 260    do_name(     reverse_name,                                    "reverse")                                             \
 261   do_intrinsic(_reverse_l,                java_lang_Long,         reverse_name,             long_long_signature, F_S)   \
 262   do_intrinsic(_reverseBytes_i,           java_lang_Integer,      reverseBytes_name,        int_int_signature,   F_S)   \
 263    do_name(     reverseBytes_name,                               "reverseBytes")                                        \
 264   do_intrinsic(_reverseBytes_l,           java_lang_Long,         reverseBytes_name,        long_long_signature, F_S)   \
 265     /*  (symbol reverseBytes_name defined above) */                                                                     \
 266   do_intrinsic(_reverseBytes_c,           java_lang_Character,    reverseBytes_name,        char_char_signature, F_S)   \
 267     /*  (symbol reverseBytes_name defined above) */                                                                     \
 268   do_intrinsic(_reverseBytes_s,           java_lang_Short,        reverseBytes_name,        short_short_signature, F_S) \
 269     /*  (symbol reverseBytes_name defined above) */                                                                     \
 270                                                                                                                         \
 271   do_intrinsic(_identityHashCode,         java_lang_System,       identityHashCode_name, object_int_signature,   F_SN)  \
 272    do_name(     identityHashCode_name,                           "identityHashCode")                                    \
 273   do_intrinsic(_currentTimeMillis,        java_lang_System,       currentTimeMillis_name, void_long_signature,   F_SN)  \
 274                                                                                                                         \
 275    do_name(     currentTimeMillis_name,                          "currentTimeMillis")                                   \
 276   do_intrinsic(_nanoTime,                 java_lang_System,       nanoTime_name,          void_long_signature,   F_SN)  \
 277    do_name(     nanoTime_name,                                   "nanoTime")                                            \
 278                                                                                                                         \
 279   JFR_INTRINSICS(do_intrinsic, do_class, do_name, do_signature, do_alias)                                               \
 280                                                                                                                         \
 281   do_intrinsic(_arraycopy,                java_lang_System,       arraycopy_name, arraycopy_signature,           F_SN)  \
 282    do_name(     arraycopy_name,                                  "arraycopy")                                           \
 283    do_signature(arraycopy_signature,                             "(Ljava/lang/Object;ILjava/lang/Object;II)V")          \
 284                                                                                                                         \
 285   do_intrinsic(_currentCarrierThread,     java_lang_Thread,       currentCarrierThread_name, currentThread_signature, F_SN) \
 286    do_name(     currentCarrierThread_name,                       "currentCarrierThread")                                \
 287   do_intrinsic(_currentThread,            java_lang_Thread,       currentThread_name, currentThread_signature,   F_SN)  \
 288    do_name(     currentThread_name,                              "currentThread")                                       \
 289    do_signature(currentThread_signature,                         "()Ljava/lang/Thread;")                                \
 290   do_intrinsic(_scopedValueCache,         java_lang_Thread,       scopedValueCache_name, scopedValueCache_signature, F_SN) \
 291    do_name(     scopedValueCache_name,                           "scopedValueCache")                                    \
 292    do_signature(scopedValueCache_signature,                      "()[Ljava/lang/Object;")                               \
 293   do_intrinsic(_setScopedValueCache,      java_lang_Thread,       setScopedValueCache_name, setScopedValueCache_signature, F_SN) \
 294    do_name(     setScopedValueCache_name,                        "setScopedValueCache")                                 \
 295    do_signature(setScopedValueCache_signature,                   "([Ljava/lang/Object;)V")                              \
 296   do_intrinsic(_findScopedValueBindings,  java_lang_Thread,       findScopedValueBindings_name, void_object_signature, F_SN) \
 297    do_name(     findScopedValueBindings_name,                    "findScopedValueBindings")                             \
 298                                                                                                                         \
 299   do_intrinsic(_setCurrentThread,         java_lang_Thread,       setCurrentThread_name, thread_void_signature,   F_RN) \
 300    do_name(     setCurrentThread_name,                           "setCurrentThread")                                    \
 301                                                                                                                         \
 302   /* reflective intrinsics, for java/lang/Class, etc. */                                                                \
 303   do_intrinsic(_isAssignableFrom,         java_lang_Class,        isAssignableFrom_name, class_boolean_signature, F_RN) \
 304    do_name(     isAssignableFrom_name,                           "isAssignableFrom")                                    \
 305   do_intrinsic(_isInstance,               java_lang_Class,        isInstance_name, object_boolean_signature,     F_RN)  \
 306    do_name(     isInstance_name,                                 "isInstance")                                          \
 307   do_intrinsic(_getModifiers,             java_lang_Class,        getModifiers_name, void_int_signature,         F_RN)  \
 308    do_name(     getModifiers_name,                               "getModifiers")                                        \
 309   do_intrinsic(_isInterface,              java_lang_Class,        isInterface_name, void_boolean_signature,      F_RN)  \
 310    do_name(     isInterface_name,                                "isInterface")                                         \
 311   do_intrinsic(_isArray,                  java_lang_Class,        isArray_name, void_boolean_signature,          F_RN)  \
 312    do_name(     isArray_name,                                    "isArray")                                             \
 313   do_intrinsic(_isPrimitive,              java_lang_Class,        isPrimitive_name, void_boolean_signature,      F_RN)  \
 314    do_name(     isPrimitive_name,                                "isPrimitive")                                         \
 315   do_intrinsic(_isHidden,                 java_lang_Class,        isHidden_name, void_boolean_signature,         F_RN)  \
 316    do_name(     isHidden_name,                                   "isHidden")                                            \
 317   do_intrinsic(_getSuperclass,            java_lang_Class,        getSuperclass_name, void_class_signature,      F_RN)  \
 318    do_name(     getSuperclass_name,                              "getSuperclass")                                       \
 319   do_intrinsic(_Class_cast,               java_lang_Class,        Class_cast_name, object_object_signature,      F_R)   \
 320    do_name(     Class_cast_name,                                 "cast")                                                \
 321                                                                                                                         \
 322   do_intrinsic(_getClassAccessFlags,      reflect_Reflection,     getClassAccessFlags_name, class_int_signature, F_SN)  \
 323    do_name(     getClassAccessFlags_name,                        "getClassAccessFlags")                                 \
 324   do_intrinsic(_getLength,                java_lang_reflect_Array, getLength_name, object_int_signature,         F_SN)  \
 325    do_name(     getLength_name,                                   "getLength")                                          \
 326                                                                                                                         \
 327   do_intrinsic(_getCallerClass,           reflect_Reflection,     getCallerClass_name, void_class_signature,     F_SN)  \
 328    do_name(     getCallerClass_name,                             "getCallerClass")                                      \
 329                                                                                                                         \
 330   do_intrinsic(_newArray,                 java_lang_reflect_Array, newArray_name, newArray_signature,            F_SN)  \
 331    do_name(     newArray_name,                                    "newArray")                                           \
 332    do_signature(newArray_signature,                               "(Ljava/lang/Class;I)Ljava/lang/Object;")             \
 333   do_intrinsic(_newNullRestrictedArray,   jdk_internal_value_ValueClass, newNullRestrictedArray_name, newNullRestrictedArray_signature, F_SN) \
 334    do_signature(newNullRestrictedArray_signature,                 "(Ljava/lang/Class;I)[Ljava/lang/Object;")            \
 335    do_name(     newNullRestrictedArray_name,                      "newNullRestrictedArray")                             \
 336                                                                                                                         \
 337   do_intrinsic(_onSpinWait,               java_lang_Thread,       onSpinWait_name, onSpinWait_signature,         F_S)   \
 338    do_name(     onSpinWait_name,                                  "onSpinWait")                                         \
 339    do_alias(    onSpinWait_signature,                             void_method_signature)                                \
 340                                                                                                                         \
 341   do_intrinsic(_ensureMaterializedForStackWalk, java_lang_Thread, ensureMaterializedForStackWalk_name, object_void_signature, F_SN)  \
 342    do_name(     ensureMaterializedForStackWalk_name,              "ensureMaterializedForStackWalk")                     \
 343                                                                                                                         \
 344   do_intrinsic(_copyOf,                   java_util_Arrays,       copyOf_name, copyOf_signature,                 F_S)   \
 345    do_name(     copyOf_name,                                     "copyOf")                                              \
 346    do_signature(copyOf_signature,             "([Ljava/lang/Object;ILjava/lang/Class;)[Ljava/lang/Object;")             \
 347                                                                                                                         \
 348   do_intrinsic(_arraySort,                java_util_DualPivotQuicksort, arraySort_name, arraySort_signature,     F_S)   \
 349    do_name(     arraySort_name,                                  "sort")                                                \
 350    do_signature(arraySort_signature, "(Ljava/lang/Class;Ljava/lang/Object;JIILjava/util/DualPivotQuicksort$SortOperation;)V") \
 351                                                                                                                         \
 352   do_intrinsic(_arrayPartition,           java_util_DualPivotQuicksort, arrayPartition_name, arrayPartition_signature, F_S) \
 353    do_name(     arrayPartition_name,                             "partition")                                           \
 354    do_signature(arrayPartition_signature, "(Ljava/lang/Class;Ljava/lang/Object;JIIIILjava/util/DualPivotQuicksort$PartitionOperation;)[I") \
 355                                                                                                                         \
 356   do_intrinsic(_copyOfRange,              java_util_Arrays,       copyOfRange_name, copyOfRange_signature,       F_S)   \
 357    do_name(     copyOfRange_name,                                "copyOfRange")                                         \
 358    do_signature(copyOfRange_signature,        "([Ljava/lang/Object;IILjava/lang/Class;)[Ljava/lang/Object;")            \
 359                                                                                                                         \
 360   do_intrinsic(_equalsC,                  java_util_Arrays,       equals_name,    equalsC_signature,             F_S)   \
 361    do_signature(equalsC_signature,                               "([C[C)Z")                                             \
 362   do_intrinsic(_equalsB,                  java_util_Arrays,       equals_name,    equalsB_signature,             F_S)   \
 363    do_signature(equalsB_signature,                               "([B[B)Z")                                             \
 364                                                                                                                         \
 365   do_intrinsic(_vectorizedHashCode,       jdk_internal_util_ArraysSupport, vectorizedHashCode_name,  vectorizedHashCode_signature, F_S)   \
 366    do_name(     vectorizedHashCode_name,                         "vectorizedHashCode")                                  \
 367    do_signature(vectorizedHashCode_signature,                    "(Ljava/lang/Object;IIII)I")                           \
 368                                                                                                                         \
 369   do_intrinsic(_compressStringC,          java_lang_StringUTF16,  compress_name, encodeISOArray_signature,       F_S)   \
 370    do_name(     compress_name,                                   "compress")                                            \
 371   do_intrinsic(_compressStringB,          java_lang_StringUTF16,  compress_name, indexOfI_signature,             F_S)   \
 372   do_intrinsic(_inflateStringC,           java_lang_StringLatin1, inflate_name, inflateC_signature,              F_S)   \
 373    do_name(     inflate_name,                                    "inflate")                                             \
 374    do_signature(inflateC_signature,                              "([BI[CII)V")                                          \
 375   do_intrinsic(_inflateStringB,           java_lang_StringLatin1, inflate_name, inflateB_signature,              F_S)   \
 376    do_signature(inflateB_signature,                              "([BI[BII)V")                                          \
 377   do_intrinsic(_toBytesStringU,           java_lang_StringUTF16, toBytes_name, toBytesU_signature,               F_S)   \
 378    do_name(     toBytes_name,                                    "toBytes")                                             \
 379    do_signature(toBytesU_signature,                              "([CII)[B")                                            \
 380   do_intrinsic(_getCharsStringU,          java_lang_StringUTF16, getCharsU_name, getCharsU_signature,            F_S)   \
 381    do_name(     getCharsU_name,                                  "getChars")                                            \
 382    do_signature(getCharsU_signature,                             "([BII[CI)V")                                          \
 383   do_intrinsic(_getCharStringU,           java_lang_StringUTF16, getChar_name, getCharStringU_signature,         F_S)   \
 384    do_signature(getCharStringU_signature,                        "([BI)C")                                              \
 385   do_intrinsic(_putCharStringU,           java_lang_StringUTF16, putChar_name, putCharStringU_signature,         F_S)   \
 386    do_signature(putCharStringU_signature,                        "([BII)V")                                             \
 387   do_intrinsic(_compareToL,               java_lang_StringLatin1,compareTo_name, compareTo_indexOf_signature,    F_S)   \
 388   do_intrinsic(_compareToU,               java_lang_StringUTF16, compareTo_name, compareTo_indexOf_signature,    F_S)   \
 389   do_intrinsic(_compareToLU,              java_lang_StringLatin1,compareToLU_name, compareTo_indexOf_signature,  F_S)   \
 390   do_intrinsic(_compareToUL,              java_lang_StringUTF16, compareToUL_name, compareTo_indexOf_signature,  F_S)   \
 391    do_signature(compareTo_indexOf_signature,                     "([B[B)I")                                             \
 392    do_name(     compareTo_name,                                  "compareTo")                                           \
 393    do_name(     compareToLU_name,                                "compareToUTF16")                                      \
 394    do_name(     compareToUL_name,                                "compareToLatin1")                                     \
 395   do_intrinsic(_indexOfL,                 java_lang_StringLatin1,indexOf_name, compareTo_indexOf_signature,      F_S)   \
 396   do_intrinsic(_indexOfU,                 java_lang_StringUTF16, indexOf_name, compareTo_indexOf_signature,      F_S)   \
 397   do_intrinsic(_indexOfUL,                java_lang_StringUTF16, indexOfUL_name, compareTo_indexOf_signature,    F_S)   \
 398   do_intrinsic(_indexOfIL,                java_lang_StringLatin1,indexOf_name, indexOfI_signature,               F_S)   \
 399   do_intrinsic(_indexOfIU,                java_lang_StringUTF16, indexOf_name, indexOfI_signature,               F_S)   \
 400   do_intrinsic(_indexOfIUL,               java_lang_StringUTF16, indexOfUL_name, indexOfI_signature,             F_S)   \
 401   do_intrinsic(_indexOfU_char,            java_lang_StringUTF16, indexOfChar_name, indexOfChar_signature,        F_S)   \
 402   do_intrinsic(_indexOfL_char,            java_lang_StringLatin1,indexOfChar_name, indexOfChar_signature,        F_S)   \
 403    do_name(     indexOf_name,                                    "indexOf")                                             \
 404    do_name(     indexOfChar_name,                                "indexOfChar")                                         \
 405    do_name(     indexOfUL_name,                                  "indexOfLatin1")                                       \
 406    do_signature(indexOfI_signature,                              "([BI[BII)I")                                          \
 407    do_signature(indexOfChar_signature,                           "([BIII)I")                                            \
 408   do_intrinsic(_equalsL,                  java_lang_StringLatin1,equals_name, equalsB_signature,                 F_S)   \
 409                                                                                                                         \
 410   do_intrinsic(_isDigit,                  java_lang_CharacterDataLatin1, isDigit_name,      int_bool_signature,  F_R)   \
 411    do_name(     isDigit_name,                                           "isDigit")                                      \
 412   do_intrinsic(_isLowerCase,              java_lang_CharacterDataLatin1, isLowerCase_name,  int_bool_signature,  F_R)   \
 413    do_name(     isLowerCase_name,                                       "isLowerCase")                                  \
 414   do_intrinsic(_isUpperCase,              java_lang_CharacterDataLatin1, isUpperCase_name,  int_bool_signature,  F_R)   \
 415    do_name(     isUpperCase_name,                                       "isUpperCase")                                  \
 416   do_intrinsic(_isWhitespace,             java_lang_CharacterDataLatin1, isWhitespace_name, int_bool_signature,  F_R)   \
 417    do_name(     isWhitespace_name,                                      "isWhitespace")                                 \
 418                                                                                                                         \
 419   do_intrinsic(_Preconditions_checkIndex, jdk_internal_util_Preconditions, checkIndex_name, Preconditions_checkIndex_signature, F_S)   \
 420    do_signature(Preconditions_checkIndex_signature,              "(IILjava/util/function/BiFunction;)I")                \
 421   do_intrinsic(_Preconditions_checkLongIndex, jdk_internal_util_Preconditions, checkIndex_name, Preconditions_checkLongIndex_signature, F_S)   \
 422    do_signature(Preconditions_checkLongIndex_signature,          "(JJLjava/util/function/BiFunction;)J")                \
 423                                                                                                                         \
 424   do_class(java_lang_StringCoding,        "java/lang/StringCoding")                                                     \
 425   do_intrinsic(_countPositives,     java_lang_StringCoding, countPositives_name, countPositives_signature, F_S)         \
 426    do_name(     countPositives_name,                       "countPositives")                                            \
 427    do_signature(countPositives_signature,                  "([BII)I")                                                   \
 428                                                                                                                         \
 429   do_class(sun_nio_cs_iso8859_1_Encoder,  "sun/nio/cs/ISO_8859_1$Encoder")                                              \
 430   do_intrinsic(_encodeISOArray,     sun_nio_cs_iso8859_1_Encoder, encodeISOArray_name, encodeISOArray_signature, F_S)   \
 431    do_name(     encodeISOArray_name,                             "implEncodeISOArray")                                  \
 432    do_signature(encodeISOArray_signature,                        "([CI[BII)I")                                          \
 433                                                                                                                         \
 434   do_intrinsic(_encodeByteISOArray,     java_lang_StringCoding, encodeISOArray_name, indexOfI_signature,         F_S)   \
 435                                                                                                                         \
 436   do_intrinsic(_encodeAsciiArray,       java_lang_StringCoding, encodeAsciiArray_name, encodeISOArray_signature, F_S)   \
 437    do_name(     encodeAsciiArray_name,                           "implEncodeAsciiArray")                                \
 438                                                                                                                         \
 439   do_class(java_math_BigInteger,                      "java/math/BigInteger")                                           \
 440   do_intrinsic(_multiplyToLen,      java_math_BigInteger, multiplyToLen_name, multiplyToLen_signature, F_S)             \
 441    do_name(     multiplyToLen_name,                             "implMultiplyToLen")                                    \
 442    do_signature(multiplyToLen_signature,                        "([II[II[I)[I")                                         \
 443                                                                                                                         \
 444   do_intrinsic(_squareToLen, java_math_BigInteger, squareToLen_name, squareToLen_signature, F_S)                        \
 445    do_name(     squareToLen_name,                             "implSquareToLen")                                        \
 446    do_signature(squareToLen_signature,                        "([II[II)[I")                                             \
 447                                                                                                                         \
 448   do_intrinsic(_mulAdd, java_math_BigInteger, mulAdd_name, mulAdd_signature, F_S)                                       \
 449    do_name(     mulAdd_name,                                  "implMulAdd")                                             \
 450    do_signature(mulAdd_signature,                             "([I[IIII)I")                                             \
 451                                                                                                                         \
 452   do_intrinsic(_montgomeryMultiply,      java_math_BigInteger, montgomeryMultiply_name, montgomeryMultiply_signature, F_S) \
 453    do_name(     montgomeryMultiply_name,                             "implMontgomeryMultiply")                          \
 454    do_signature(montgomeryMultiply_signature,                        "([I[I[IIJ[I)[I")                                  \
 455                                                                                                                         \
 456   do_intrinsic(_montgomerySquare,      java_math_BigInteger, montgomerySquare_name, montgomerySquare_signature, F_S)    \
 457    do_name(     montgomerySquare_name,                             "implMontgomerySquare")                              \
 458    do_signature(montgomerySquare_signature,                        "([I[IIJ[I)[I")                                      \
 459                                                                                                                         \
 460   do_intrinsic(_bigIntegerRightShiftWorker, java_math_BigInteger, rightShift_name, big_integer_shift_worker_signature, F_S) \
 461    do_name(     rightShift_name,                                 "shiftRightImplWorker")                                \
 462                                                                                                                         \
 463   do_intrinsic(_bigIntegerLeftShiftWorker, java_math_BigInteger, leftShift_name, big_integer_shift_worker_signature, F_S) \
 464    do_name(     leftShift_name,                                 "shiftLeftImplWorker")                                  \
 465                                                                                                                         \
 466   do_class(jdk_internal_util_ArraysSupport, "jdk/internal/util/ArraysSupport")                                                          \
 467   do_intrinsic(_vectorizedMismatch, jdk_internal_util_ArraysSupport, vectorizedMismatch_name, vectorizedMismatch_signature, F_S)\
 468    do_name(vectorizedMismatch_name, "vectorizedMismatch")                                                               \
 469    do_signature(vectorizedMismatch_signature, "(Ljava/lang/Object;JLjava/lang/Object;JII)I")                            \
 470                                                                                                                         \
 471   /* java/lang/ref/Reference */                                                                                         \
 472   do_intrinsic(_Reference_get,              java_lang_ref_Reference, get_name,       void_object_signature,    F_R)     \
 473   do_intrinsic(_Reference_refersTo0,        java_lang_ref_Reference, refersTo0_name, object_boolean_signature, F_RN)    \
 474   do_intrinsic(_PhantomReference_refersTo0, java_lang_ref_PhantomReference, refersTo0_name, object_boolean_signature, F_RN) \
 475   do_intrinsic(_Reference_clear0,           java_lang_ref_Reference, clear0_name,    void_method_signature, F_RN)       \
 476   do_intrinsic(_PhantomReference_clear0,    java_lang_ref_PhantomReference, clear0_name, void_method_signature, F_RN)   \
 477                                                                                                                         \
 478   /* support for com.sun.crypto.provider.AESCrypt and some of its callers */                                            \
 479   do_class(com_sun_crypto_provider_aescrypt,      "com/sun/crypto/provider/AESCrypt")                                   \
 480   do_intrinsic(_aescrypt_encryptBlock, com_sun_crypto_provider_aescrypt, encryptBlock_name, byteArray_int_byteArray_int_signature, F_R)   \
 481   do_intrinsic(_aescrypt_decryptBlock, com_sun_crypto_provider_aescrypt, decryptBlock_name, byteArray_int_byteArray_int_signature, F_R)   \
 482    do_name(     encryptBlock_name,                                 "implEncryptBlock")                                  \
 483    do_name(     decryptBlock_name,                                 "implDecryptBlock")                                  \
 484    do_signature(byteArray_int_byteArray_int_signature,             "([BI[BI)V")                                         \
 485                                                                                                                         \
 486   do_class(com_sun_crypto_provider_cipherBlockChaining,            "com/sun/crypto/provider/CipherBlockChaining")       \
 487    do_intrinsic(_cipherBlockChaining_encryptAESCrypt, com_sun_crypto_provider_cipherBlockChaining, encrypt_name, byteArray_int_int_byteArray_int_signature, F_R)   \
 488    do_intrinsic(_cipherBlockChaining_decryptAESCrypt, com_sun_crypto_provider_cipherBlockChaining, decrypt_name, byteArray_int_int_byteArray_int_signature, F_R)   \
 489    do_name(     encrypt_name,                                      "implEncrypt")                                       \
 490    do_name(     decrypt_name,                                      "implDecrypt")                                       \
 491    do_signature(byteArray_int_int_byteArray_int_signature,         "([BII[BI)I")                                        \
 492                                                                                                                         \
 493   do_class(com_sun_crypto_provider_electronicCodeBook, "com/sun/crypto/provider/ElectronicCodeBook")                    \
 494    do_intrinsic(_electronicCodeBook_encryptAESCrypt, com_sun_crypto_provider_electronicCodeBook, ecb_encrypt_name, byteArray_int_int_byteArray_int_signature, F_R)  \
 495    do_intrinsic(_electronicCodeBook_decryptAESCrypt, com_sun_crypto_provider_electronicCodeBook, ecb_decrypt_name, byteArray_int_int_byteArray_int_signature, F_R)  \
 496    do_name(ecb_encrypt_name, "implECBEncrypt")                                                                          \
 497    do_name(ecb_decrypt_name, "implECBDecrypt")                                                                          \
 498                                                                                                                         \
 499   do_class(com_sun_crypto_provider_counterMode,      "com/sun/crypto/provider/CounterMode")                             \
 500    do_intrinsic(_counterMode_AESCrypt, com_sun_crypto_provider_counterMode, crypt_name, byteArray_int_int_byteArray_int_signature, F_R)   \
 501    do_name(     crypt_name,                                 "implCrypt")                                                    \
 502                                                                                                                         \
 503   do_class(com_sun_crypto_provider_galoisCounterMode, "com/sun/crypto/provider/GaloisCounterMode")                      \
 504    do_intrinsic(_galoisCounterMode_AESCrypt, com_sun_crypto_provider_galoisCounterMode, gcm_crypt_name, aes_gcm_signature, F_S)   \
 505    do_name(gcm_crypt_name, "implGCMCrypt0")                                                                                 \
 506    do_signature(aes_gcm_signature, "([BII[BI[BILcom/sun/crypto/provider/GCTR;Lcom/sun/crypto/provider/GHASH;)I")                                                             \
 507                                                                                                                         \
 508   /* support for sun.security.provider.MD5 */                                                                           \
 509   do_class(sun_security_provider_md5,                              "sun/security/provider/MD5")                         \
 510   do_intrinsic(_md5_implCompress, sun_security_provider_md5, implCompress_name, implCompress_signature, F_R)            \
 511    do_name(     implCompress_name,                                 "implCompress0")                                     \
 512    do_signature(implCompress_signature,                            "([BI)V")                                            \
 513                                                                                                                         \
 514   /* support for sun.security.provider.SHA */                                                                           \
 515   do_class(sun_security_provider_sha,                              "sun/security/provider/SHA")                         \
 516   do_intrinsic(_sha_implCompress, sun_security_provider_sha, implCompress_name, implCompress_signature, F_R)            \
 517                                                                                                                         \
 518   /* support for sun.security.provider.SHA2 */                                                                          \
 519   do_class(sun_security_provider_sha2,                             "sun/security/provider/SHA2")                        \
 520   do_intrinsic(_sha2_implCompress, sun_security_provider_sha2, implCompress_name, implCompress_signature, F_R)          \
 521                                                                                                                         \
 522   /* support for sun.security.provider.SHA5 */                                                                          \
 523   do_class(sun_security_provider_sha5,                             "sun/security/provider/SHA5")                        \
 524   do_intrinsic(_sha5_implCompress, sun_security_provider_sha5, implCompress_name, implCompress_signature, F_R)          \
 525                                                                                                                         \
 526   /* support for sun.security.provider.SHA3 */                                                                          \
 527   do_class(sun_security_provider_sha3,                             "sun/security/provider/SHA3")                        \
 528   do_intrinsic(_sha3_implCompress, sun_security_provider_sha3, implCompress_name, implCompress_signature, F_R)          \
 529                                                                                                                         \
 530   /* support for sun.security.provider.DigestBase */                                                                    \
 531   do_class(sun_security_provider_digestbase,                       "sun/security/provider/DigestBase")                  \
 532   do_intrinsic(_digestBase_implCompressMB, sun_security_provider_digestbase, implCompressMB_name, countPositives_signature, F_R)   \
 533    do_name(     implCompressMB_name,                               "implCompressMultiBlock0")                           \
 534                                                                                                                         \
 535   /* support for sun.security.util.math.intpoly.MontgomeryIntegerPolynomialP256 */                                      \
 536   do_class(sun_security_util_math_intpoly_MontgomeryIntegerPolynomialP256, "sun/security/util/math/intpoly/MontgomeryIntegerPolynomialP256")  \
 537   do_intrinsic(_intpoly_montgomeryMult_P256, sun_security_util_math_intpoly_MontgomeryIntegerPolynomialP256, intPolyMult_name, intPolyMult_signature, F_R) \
 538   do_name(intPolyMult_name, "multImpl")                                                                                     \
 539   do_signature(intPolyMult_signature, "([J[J[J)V")                                                                      \
 540                                                                                                                         \
 541   do_class(sun_security_util_math_intpoly_IntegerPolynomial, "sun/security/util/math/intpoly/IntegerPolynomial")        \
 542   do_intrinsic(_intpoly_assign, sun_security_util_math_intpoly_IntegerPolynomial, intPolyAssign_name, intPolyAssign_signature, F_S) \
 543    do_name(intPolyAssign_name, "conditionalAssign")                                                                     \
 544    do_signature(intPolyAssign_signature, "(I[J[J)V")                                                                    \
 545                                                                                                                         \
 546   /* support for java.util.Base64.Encoder*/                                                                             \
 547   do_class(java_util_Base64_Encoder, "java/util/Base64$Encoder")                                                        \
 548   do_intrinsic(_base64_encodeBlock, java_util_Base64_Encoder, encodeBlock_name, encodeBlock_signature, F_R)             \
 549   do_name(encodeBlock_name, "encodeBlock")                                                                              \
 550   do_signature(encodeBlock_signature, "([BII[BIZ)V")                                                                    \
 551                                                                                                                         \
 552   /* support for java.util.Base64.Decoder*/                                                                             \
 553   do_class(java_util_Base64_Decoder, "java/util/Base64$Decoder")                                                        \
 554   do_intrinsic(_base64_decodeBlock, java_util_Base64_Decoder, decodeBlock_name, decodeBlock_signature, F_R)             \
 555    do_name(decodeBlock_name, "decodeBlock")                                                                             \
 556    do_signature(decodeBlock_signature, "([BII[BIZZ)I")                                                                  \
 557                                                                                                                         \
 558   /* support for com.sun.crypto.provider.GHASH */                                                                       \
 559   do_class(com_sun_crypto_provider_ghash, "com/sun/crypto/provider/GHASH")                                              \
 560   do_intrinsic(_ghash_processBlocks, com_sun_crypto_provider_ghash, processBlocks_name, ghash_processBlocks_signature, F_S) \
 561    do_name(processBlocks_name, "processBlocks")                                                                         \
 562    do_signature(ghash_processBlocks_signature, "([BII[J[J)V")                                                           \
 563                                                                                                                         \
 564   /* support for com.sun.crypto.provider.Poly1305 */                                                                    \
 565   do_class(com_sun_crypto_provider_Poly1305, "com/sun/crypto/provider/Poly1305")                                        \
 566   do_intrinsic(_poly1305_processBlocks, com_sun_crypto_provider_Poly1305, processMultipleBlocks_name, ghash_processBlocks_signature, F_R) \
 567    do_name(processMultipleBlocks_name, "processMultipleBlocks")                                                         \
 568                                                                                                                         \
 569   /* support for com.sun.crypto.provider.ChaCha20Cipher */                                                              \
 570   do_class(com_sun_crypto_provider_chacha20cipher,      "com/sun/crypto/provider/ChaCha20Cipher")                       \
 571   do_intrinsic(_chacha20Block, com_sun_crypto_provider_chacha20cipher, chacha20Block_name, chacha20Block_signature, F_S) \
 572    do_name(chacha20Block_name,                                 "implChaCha20Block")                                         \
 573    do_signature(chacha20Block_signature, "([I[B)I")                                                                    \
 574                                                                                                                         \
 575   /* support for java.util.zip */                                                                                       \
 576   do_class(java_util_zip_CRC32,           "java/util/zip/CRC32")                                                        \
 577   do_intrinsic(_updateCRC32,               java_util_zip_CRC32,   update_name, int2_int_signature,               F_SN)  \
 578    do_name(     update_name,                                      "update")                                             \
 579   do_intrinsic(_updateBytesCRC32,          java_util_zip_CRC32,   updateBytes_name, updateBytes_signature,       F_SN)  \
 580    do_name(     updateBytes_name,                                "updateBytes0")                                        \
 581    do_signature(updateBytes_signature,                           "(I[BII)I")                                            \
 582   do_intrinsic(_updateByteBufferCRC32,     java_util_zip_CRC32,   updateByteBuffer_name, updateByteBuffer_signature, F_SN) \
 583    do_name(     updateByteBuffer_name,                           "updateByteBuffer0")                                   \
 584    do_signature(updateByteBuffer_signature,                      "(IJII)I")                                             \
 585                                                                                                                         \
 586   /* support for java.util.zip.CRC32C */                                                                                \
 587   do_class(java_util_zip_CRC32C,          "java/util/zip/CRC32C")                                                       \
 588   do_intrinsic(_updateBytesCRC32C,         java_util_zip_CRC32C,  updateBytes_C_name, updateBytes_signature,       F_S) \
 589    do_name(     updateBytes_C_name,                               "updateBytes")                                        \
 590   do_intrinsic(_updateDirectByteBufferCRC32C, java_util_zip_CRC32C, updateDirectByteBuffer_C_name, updateByteBuffer_signature, F_S) \
 591    do_name(    updateDirectByteBuffer_C_name,                     "updateDirectByteBuffer")                             \
 592                                                                                                                         \
 593    /* support for java.util.zip.Adler32 */                                                                              \
 594   do_class(java_util_zip_Adler32,        "java/util/zip/Adler32")                                                       \
 595   do_intrinsic(_updateBytesAdler32,       java_util_zip_Adler32,  updateBytes_C_name,  updateBytes_signature,  F_SN)    \
 596   do_intrinsic(_updateByteBufferAdler32,  java_util_zip_Adler32,  updateByteBuffer_A_name,  updateByteBuffer_signature,  F_SN) \
 597    do_name(     updateByteBuffer_A_name,                          "updateByteBuffer")                                   \
 598                                                                                                                         \
 599   /* jdk/internal/vm/Continuation */                                                                                    \
 600   do_class(jdk_internal_vm_Continuation, "jdk/internal/vm/Continuation")                                                \
 601   do_intrinsic(_Continuation_enter,        jdk_internal_vm_Continuation, enter_name,        continuationEnter_signature, F_S) \
 602    do_signature(continuationEnter_signature,                      "(Ljdk/internal/vm/Continuation;Z)V")                 \
 603   do_intrinsic(_Continuation_enterSpecial, jdk_internal_vm_Continuation, enterSpecial_name, continuationEnterSpecial_signature, F_SN) \
 604    do_signature(continuationEnterSpecial_signature,               "(Ljdk/internal/vm/Continuation;ZZ)V")                \
 605   do_signature(continuationGetStacks_signature,                   "(III)V")                                             \
 606   do_alias(continuationOnPinned_signature,      int_void_signature)                                                     \
 607   do_intrinsic(_Continuation_doYield,      jdk_internal_vm_Continuation, doYield_name,      continuationDoYield_signature, F_SN) \
 608    do_alias(    continuationDoYield_signature,     void_int_signature)                                                  \
 609   do_intrinsic(_Continuation_pin,          jdk_internal_vm_Continuation, pin_name, void_method_signature, F_SN)         \
 610   do_intrinsic(_Continuation_unpin,        jdk_internal_vm_Continuation, unpin_name, void_method_signature, F_SN)       \
 611                                                                                                                         \
 612   /* java/lang/VirtualThread */                                                                                         \
 613   do_intrinsic(_notifyJvmtiVThreadStart, java_lang_VirtualThread, notifyJvmtiStart_name, void_method_signature, F_RN)   \
 614   do_intrinsic(_notifyJvmtiVThreadEnd, java_lang_VirtualThread, notifyJvmtiEnd_name, void_method_signature, F_RN)       \
 615   do_intrinsic(_notifyJvmtiVThreadMount, java_lang_VirtualThread, notifyJvmtiMount_name, bool_void_signature, F_RN)     \
 616   do_intrinsic(_notifyJvmtiVThreadUnmount, java_lang_VirtualThread, notifyJvmtiUnmount_name, bool_void_signature, F_RN) \
 617   do_intrinsic(_notifyJvmtiVThreadDisableSuspend, java_lang_VirtualThread, notifyJvmtiDisableSuspend_name, bool_void_signature, F_SN) \
 618                                                                                                                         \
 619   /* support for UnsafeConstants */                                                                                     \
 620   do_class(jdk_internal_misc_UnsafeConstants,      "jdk/internal/misc/UnsafeConstants")                                 \
 621                                                                                                                         \
 622   /* support for Unsafe */                                                                                              \
 623   do_class(jdk_internal_misc_Unsafe,               "jdk/internal/misc/Unsafe")                                          \
 624   do_class(sun_misc_Unsafe,                        "sun/misc/Unsafe")                                                   \
 625   do_class(jdk_internal_misc_ScopedMemoryAccess,   "jdk/internal/misc/ScopedMemoryAccess")                              \
 626                                                                                                                         \
 627   do_intrinsic(_writeback0,               jdk_internal_misc_Unsafe,     writeback0_name, long_void_signature , F_RN)             \
 628    do_name(     writeback0_name,                                        "writeback0")                                            \
 629   do_intrinsic(_writebackPreSync0,        jdk_internal_misc_Unsafe,     writebackPreSync0_name, void_method_signature , F_RN)    \
 630    do_name(     writebackPreSync0_name,                                 "writebackPreSync0")                                     \
 631   do_intrinsic(_writebackPostSync0,       jdk_internal_misc_Unsafe,    writebackPostSync0_name, void_method_signature , F_RN)    \
 632    do_name(     writebackPostSync0_name,                                "writebackPostSync0")                                    \
 633   do_intrinsic(_allocateInstance,         jdk_internal_misc_Unsafe,     allocateInstance_name, allocateInstance_signature, F_RN) \
 634    do_name(     allocateInstance_name,                                  "allocateInstance")                                      \
 635    do_signature(allocateInstance_signature,                             "(Ljava/lang/Class;)Ljava/lang/Object;")                 \
 636   do_intrinsic(_allocateUninitializedArray, jdk_internal_misc_Unsafe,   allocateUninitializedArray_name, newArray_signature,  F_R) \
 637    do_name(     allocateUninitializedArray_name,                        "allocateUninitializedArray0")                           \
 638   do_intrinsic(_copyMemory,               jdk_internal_misc_Unsafe,     copyMemory_name, copyMemory_signature,         F_RN)     \
 639    do_name(     copyMemory_name,                                        "copyMemory0")                                           \
 640    do_signature(copyMemory_signature,                                   "(Ljava/lang/Object;JLjava/lang/Object;JJ)V")            \
 641   do_intrinsic(_isFlatArray,              jdk_internal_misc_Unsafe,     isFlatArray_name, class_boolean_signature, F_RN)         \
 642    do_name(     isFlatArray_name,                                       "isFlatArray")                                           \
 643   do_intrinsic(_setMemory,                jdk_internal_misc_Unsafe,     setMemory_name,  setMemory_signature,          F_RN)     \
 644    do_name(     setMemory_name,                                         "setMemory0")                                            \
 645    do_signature(setMemory_signature,                                    "(Ljava/lang/Object;JJB)V")                              \
 646   do_intrinsic(_loadFence,                jdk_internal_misc_Unsafe,     loadFence_name, loadFence_signature,           F_R)      \
 647    do_name(     loadFence_name,                                         "loadFence")                                             \
 648    do_alias(    loadFence_signature,                                    void_method_signature)                                   \
 649   do_intrinsic(_storeFence,               jdk_internal_misc_Unsafe,     storeFence_name, storeFence_signature,         F_R)      \
 650    do_name(     storeFence_name,                                        "storeFence")                                            \
 651    do_alias(    storeFence_signature,                                   void_method_signature)                                   \
 652   do_intrinsic(_storeStoreFence,          jdk_internal_misc_Unsafe,     storeStoreFence_name, storeStoreFence_signature, F_R)    \
 653    do_name(     storeStoreFence_name,                                   "storeStoreFence")                                       \
 654    do_alias(    storeStoreFence_signature,                              void_method_signature)                                   \
 655   do_intrinsic(_fullFence,                jdk_internal_misc_Unsafe,     fullFence_name, fullFence_signature,           F_RN)     \
 656    do_name(     fullFence_name,                                         "fullFence")                                             \
 657    do_alias(    fullFence_signature,                                    void_method_signature)                                   \
 658                                                                                                                         \
 659   /* Custom branch frequencies profiling support for JSR292 */                                                          \
 660   do_class(java_lang_invoke_MethodHandleImpl,               "java/lang/invoke/MethodHandleImpl")                        \
 661   do_intrinsic(_profileBoolean, java_lang_invoke_MethodHandleImpl, profileBoolean_name, profileBoolean_signature, F_S)  \
 662    do_name(     profileBoolean_name,                             "profileBoolean")                                      \
 663    do_signature(profileBoolean_signature,                        "(Z[I)Z")                                              \
 664   do_intrinsic(_isCompileConstant, java_lang_invoke_MethodHandleImpl, isCompileConstant_name, isCompileConstant_signature, F_S) \
 665    do_name(     isCompileConstant_name,                          "isCompileConstant")                                   \
 666    do_alias(    isCompileConstant_signature,                      object_boolean_signature)                             \
 667                                                                                                                         \
 668   do_intrinsic(_getObjectSize,   sun_instrument_InstrumentationImpl, getObjectSize_name, getObjectSize_signature, F_RN) \
 669    do_name(     getObjectSize_name,                               "getObjectSize0")                                     \
 670    do_alias(    getObjectSize_signature,                          long_object_long_signature)                           \
 671                                                                                                                         \
 672   /* special marker for blackholed methods: */                                                                          \
 673   do_intrinsic(_blackhole,                java_lang_Object,       blackhole_name, star_name, F_S)                       \
 674                                                                                                                         \
 675   /* unsafe memory references (there are a lot of them...) */                                                           \
 676   do_signature(getReference_signature,    "(Ljava/lang/Object;J)Ljava/lang/Object;")                                    \
 677   do_signature(putReference_signature,    "(Ljava/lang/Object;JLjava/lang/Object;)V")                                   \
 678   do_signature(getBoolean_signature,      "(Ljava/lang/Object;J)Z")                                                     \
 679   do_signature(putBoolean_signature,      "(Ljava/lang/Object;JZ)V")                                                    \
 680   do_signature(getByte_signature,         "(Ljava/lang/Object;J)B")                                                     \
 681   do_signature(putByte_signature,         "(Ljava/lang/Object;JB)V")                                                    \
 682   do_signature(getShort_signature,        "(Ljava/lang/Object;J)S")                                                     \
 683   do_signature(putShort_signature,        "(Ljava/lang/Object;JS)V")                                                    \
 684   do_signature(getChar_signature,         "(Ljava/lang/Object;J)C")                                                     \
 685   do_signature(putChar_signature,         "(Ljava/lang/Object;JC)V")                                                    \
 686   do_signature(getInt_signature,          "(Ljava/lang/Object;J)I")                                                     \
 687   do_signature(putInt_signature,          "(Ljava/lang/Object;JI)V")                                                    \
 688   do_signature(getLong_signature,         "(Ljava/lang/Object;J)J")                                                     \
 689   do_signature(putLong_signature,         "(Ljava/lang/Object;JJ)V")                                                    \
 690   do_signature(getFloat_signature,        "(Ljava/lang/Object;J)F")                                                     \
 691   do_signature(putFloat_signature,        "(Ljava/lang/Object;JF)V")                                                    \
 692   do_signature(getDouble_signature,       "(Ljava/lang/Object;J)D")                                                     \
 693   do_signature(putDouble_signature,       "(Ljava/lang/Object;JD)V")                                                    \
 694   do_signature(getValue_signature,        "(Ljava/lang/Object;JLjava/lang/Class;)Ljava/lang/Object;")                   \
 695   do_signature(putValue_signature,        "(Ljava/lang/Object;JLjava/lang/Class;Ljava/lang/Object;)V")                  \
 696                                                                                                                         \
 697   do_name(getReference_name,"getReference")     do_name(putReference_name,"putReference")                               \
 698   do_name(getBoolean_name,"getBoolean")         do_name(putBoolean_name,"putBoolean")                                   \
 699   do_name(getByte_name,"getByte")               do_name(putByte_name,"putByte")                                         \
 700   do_name(getShort_name,"getShort")             do_name(putShort_name,"putShort")                                       \
 701   do_name(getChar_name,"getChar")               do_name(putChar_name,"putChar")                                         \
 702   do_name(getInt_name,"getInt")                 do_name(putInt_name,"putInt")                                           \
 703   do_name(getLong_name,"getLong")               do_name(putLong_name,"putLong")                                         \
 704   do_name(getFloat_name,"getFloat")             do_name(putFloat_name,"putFloat")                                       \
 705   do_name(getDouble_name,"getDouble")           do_name(putDouble_name,"putDouble")                                     \
 706   do_name(getValue_name,"getValue")             do_name(putValue_name,"putValue")                                       \
 707   do_name(makePrivateBuffer_name,"makePrivateBuffer")                                                                   \
 708   do_name(finishPrivateBuffer_name,"finishPrivateBuffer")                                                               \
 709                                                                                                                         \
 710   do_intrinsic(_getReference,       jdk_internal_misc_Unsafe,     getReference_name, getReference_signature,     F_RN)  \
 711   do_intrinsic(_getBoolean,         jdk_internal_misc_Unsafe,     getBoolean_name, getBoolean_signature,         F_RN)  \
 712   do_intrinsic(_getByte,            jdk_internal_misc_Unsafe,     getByte_name, getByte_signature,               F_RN)  \
 713   do_intrinsic(_getShort,           jdk_internal_misc_Unsafe,     getShort_name, getShort_signature,             F_RN)  \
 714   do_intrinsic(_getChar,            jdk_internal_misc_Unsafe,     getChar_name, getChar_signature,               F_RN)  \
 715   do_intrinsic(_getInt,             jdk_internal_misc_Unsafe,     getInt_name, getInt_signature,                 F_RN)  \
 716   do_intrinsic(_getLong,            jdk_internal_misc_Unsafe,     getLong_name, getLong_signature,               F_RN)  \
 717   do_intrinsic(_getFloat,           jdk_internal_misc_Unsafe,     getFloat_name, getFloat_signature,             F_RN)  \
 718   do_intrinsic(_getDouble,          jdk_internal_misc_Unsafe,     getDouble_name, getDouble_signature,           F_RN)  \
 719   do_intrinsic(_getValue,           jdk_internal_misc_Unsafe,     getValue_name, getValue_signature,             F_RN)  \
 720   do_intrinsic(_putReference,       jdk_internal_misc_Unsafe,     putReference_name, putReference_signature,     F_RN)  \
 721   do_intrinsic(_putBoolean,         jdk_internal_misc_Unsafe,     putBoolean_name, putBoolean_signature,         F_RN)  \
 722   do_intrinsic(_putByte,            jdk_internal_misc_Unsafe,     putByte_name, putByte_signature,               F_RN)  \
 723   do_intrinsic(_putShort,           jdk_internal_misc_Unsafe,     putShort_name, putShort_signature,             F_RN)  \
 724   do_intrinsic(_putChar,            jdk_internal_misc_Unsafe,     putChar_name, putChar_signature,               F_RN)  \
 725   do_intrinsic(_putInt,             jdk_internal_misc_Unsafe,     putInt_name, putInt_signature,                 F_RN)  \
 726   do_intrinsic(_putLong,            jdk_internal_misc_Unsafe,     putLong_name, putLong_signature,               F_RN)  \
 727   do_intrinsic(_putFloat,           jdk_internal_misc_Unsafe,     putFloat_name, putFloat_signature,             F_RN)  \
 728   do_intrinsic(_putDouble,          jdk_internal_misc_Unsafe,     putDouble_name, putDouble_signature,           F_RN)  \
 729   do_intrinsic(_putValue,           jdk_internal_misc_Unsafe,     putValue_name, putValue_signature,             F_RN)  \
 730                                                                                                                         \
 731   do_intrinsic(_makePrivateBuffer,  jdk_internal_misc_Unsafe,     makePrivateBuffer_name, object_object_signature, F_RN)   \
 732   do_intrinsic(_finishPrivateBuffer,  jdk_internal_misc_Unsafe,   finishPrivateBuffer_name, object_object_signature, F_RN) \
 733                                                                                                                         \
 734   do_name(getReferenceVolatile_name,"getReferenceVolatile")   do_name(putReferenceVolatile_name,"putReferenceVolatile") \
 735   do_name(getBooleanVolatile_name,"getBooleanVolatile")       do_name(putBooleanVolatile_name,"putBooleanVolatile")     \
 736   do_name(getByteVolatile_name,"getByteVolatile")             do_name(putByteVolatile_name,"putByteVolatile")           \
 737   do_name(getShortVolatile_name,"getShortVolatile")           do_name(putShortVolatile_name,"putShortVolatile")         \
 738   do_name(getCharVolatile_name,"getCharVolatile")             do_name(putCharVolatile_name,"putCharVolatile")           \
 739   do_name(getIntVolatile_name,"getIntVolatile")               do_name(putIntVolatile_name,"putIntVolatile")             \
 740   do_name(getLongVolatile_name,"getLongVolatile")             do_name(putLongVolatile_name,"putLongVolatile")           \
 741   do_name(getFloatVolatile_name,"getFloatVolatile")           do_name(putFloatVolatile_name,"putFloatVolatile")         \
 742   do_name(getDoubleVolatile_name,"getDoubleVolatile")         do_name(putDoubleVolatile_name,"putDoubleVolatile")       \
 743                                                                                                                         \
 744   do_intrinsic(_getReferenceVolatile,     jdk_internal_misc_Unsafe,     getReferenceVolatile_name, getReference_signature, F_RN)  \
 745   do_intrinsic(_getBooleanVolatile,       jdk_internal_misc_Unsafe,     getBooleanVolatile_name, getBoolean_signature,     F_RN)  \
 746   do_intrinsic(_getByteVolatile,          jdk_internal_misc_Unsafe,     getByteVolatile_name, getByte_signature,           F_RN)  \
 747   do_intrinsic(_getShortVolatile,         jdk_internal_misc_Unsafe,     getShortVolatile_name, getShort_signature,         F_RN)  \
 748   do_intrinsic(_getCharVolatile,          jdk_internal_misc_Unsafe,     getCharVolatile_name, getChar_signature,           F_RN)  \
 749   do_intrinsic(_getIntVolatile,           jdk_internal_misc_Unsafe,     getIntVolatile_name, getInt_signature,             F_RN)  \
 750   do_intrinsic(_getLongVolatile,          jdk_internal_misc_Unsafe,     getLongVolatile_name, getLong_signature,           F_RN)  \
 751   do_intrinsic(_getFloatVolatile,         jdk_internal_misc_Unsafe,     getFloatVolatile_name, getFloat_signature,         F_RN)  \
 752   do_intrinsic(_getDoubleVolatile,        jdk_internal_misc_Unsafe,     getDoubleVolatile_name, getDouble_signature,       F_RN)  \
 753   do_intrinsic(_putReferenceVolatile,     jdk_internal_misc_Unsafe,     putReferenceVolatile_name, putReference_signature, F_RN)  \
 754   do_intrinsic(_putBooleanVolatile,       jdk_internal_misc_Unsafe,     putBooleanVolatile_name, putBoolean_signature,     F_RN)  \
 755   do_intrinsic(_putByteVolatile,          jdk_internal_misc_Unsafe,     putByteVolatile_name, putByte_signature,           F_RN)  \
 756   do_intrinsic(_putShortVolatile,         jdk_internal_misc_Unsafe,     putShortVolatile_name, putShort_signature,         F_RN)  \
 757   do_intrinsic(_putCharVolatile,          jdk_internal_misc_Unsafe,     putCharVolatile_name, putChar_signature,           F_RN)  \
 758   do_intrinsic(_putIntVolatile,           jdk_internal_misc_Unsafe,     putIntVolatile_name, putInt_signature,             F_RN)  \
 759   do_intrinsic(_putLongVolatile,          jdk_internal_misc_Unsafe,     putLongVolatile_name, putLong_signature,           F_RN)  \
 760   do_intrinsic(_putFloatVolatile,         jdk_internal_misc_Unsafe,     putFloatVolatile_name, putFloat_signature,         F_RN)  \
 761   do_intrinsic(_putDoubleVolatile,        jdk_internal_misc_Unsafe,     putDoubleVolatile_name, putDouble_signature,       F_RN)  \
 762                                                                                                                         \
 763   do_name(getReferenceOpaque_name,"getReferenceOpaque") do_name(putReferenceOpaque_name,"putReferenceOpaque")           \
 764   do_name(getBooleanOpaque_name,"getBooleanOpaque")     do_name(putBooleanOpaque_name,"putBooleanOpaque")               \
 765   do_name(getByteOpaque_name,"getByteOpaque")           do_name(putByteOpaque_name,"putByteOpaque")                     \
 766   do_name(getShortOpaque_name,"getShortOpaque")         do_name(putShortOpaque_name,"putShortOpaque")                   \
 767   do_name(getCharOpaque_name,"getCharOpaque")           do_name(putCharOpaque_name,"putCharOpaque")                     \
 768   do_name(getIntOpaque_name,"getIntOpaque")             do_name(putIntOpaque_name,"putIntOpaque")                       \
 769   do_name(getLongOpaque_name,"getLongOpaque")           do_name(putLongOpaque_name,"putLongOpaque")                     \
 770   do_name(getFloatOpaque_name,"getFloatOpaque")         do_name(putFloatOpaque_name,"putFloatOpaque")                   \
 771   do_name(getDoubleOpaque_name,"getDoubleOpaque")       do_name(putDoubleOpaque_name,"putDoubleOpaque")                 \
 772                                                                                                                         \
 773   do_intrinsic(_getReferenceOpaque,       jdk_internal_misc_Unsafe,        getReferenceOpaque_name, getReference_signature, F_R)  \
 774   do_intrinsic(_getBooleanOpaque,         jdk_internal_misc_Unsafe,        getBooleanOpaque_name, getBoolean_signature,     F_R)  \
 775   do_intrinsic(_getByteOpaque,            jdk_internal_misc_Unsafe,        getByteOpaque_name, getByte_signature,           F_R)  \
 776   do_intrinsic(_getShortOpaque,           jdk_internal_misc_Unsafe,        getShortOpaque_name, getShort_signature,         F_R)  \
 777   do_intrinsic(_getCharOpaque,            jdk_internal_misc_Unsafe,        getCharOpaque_name, getChar_signature,           F_R)  \
 778   do_intrinsic(_getIntOpaque,             jdk_internal_misc_Unsafe,        getIntOpaque_name, getInt_signature,             F_R)  \
 779   do_intrinsic(_getLongOpaque,            jdk_internal_misc_Unsafe,        getLongOpaque_name, getLong_signature,           F_R)  \
 780   do_intrinsic(_getFloatOpaque,           jdk_internal_misc_Unsafe,        getFloatOpaque_name, getFloat_signature,         F_R)  \
 781   do_intrinsic(_getDoubleOpaque,          jdk_internal_misc_Unsafe,        getDoubleOpaque_name, getDouble_signature,       F_R)  \
 782   do_intrinsic(_putReferenceOpaque,       jdk_internal_misc_Unsafe,        putReferenceOpaque_name, putReference_signature, F_R)  \
 783   do_intrinsic(_putBooleanOpaque,         jdk_internal_misc_Unsafe,        putBooleanOpaque_name, putBoolean_signature,     F_R)  \
 784   do_intrinsic(_putByteOpaque,            jdk_internal_misc_Unsafe,        putByteOpaque_name, putByte_signature,           F_R)  \
 785   do_intrinsic(_putShortOpaque,           jdk_internal_misc_Unsafe,        putShortOpaque_name, putShort_signature,         F_R)  \
 786   do_intrinsic(_putCharOpaque,            jdk_internal_misc_Unsafe,        putCharOpaque_name, putChar_signature,           F_R)  \
 787   do_intrinsic(_putIntOpaque,             jdk_internal_misc_Unsafe,        putIntOpaque_name, putInt_signature,             F_R)  \
 788   do_intrinsic(_putLongOpaque,            jdk_internal_misc_Unsafe,        putLongOpaque_name, putLong_signature,           F_R)  \
 789   do_intrinsic(_putFloatOpaque,           jdk_internal_misc_Unsafe,        putFloatOpaque_name, putFloat_signature,         F_R)  \
 790   do_intrinsic(_putDoubleOpaque,          jdk_internal_misc_Unsafe,        putDoubleOpaque_name, putDouble_signature,       F_R)  \
 791                                                                                                                         \
 792   do_name(getReferenceAcquire_name,  "getReferenceAcquire") do_name(putReferenceRelease_name,  "putReferenceRelease")   \
 793   do_name(getBooleanAcquire_name, "getBooleanAcquire")      do_name(putBooleanRelease_name, "putBooleanRelease")        \
 794   do_name(getByteAcquire_name,    "getByteAcquire")         do_name(putByteRelease_name,    "putByteRelease")           \
 795   do_name(getShortAcquire_name,   "getShortAcquire")        do_name(putShortRelease_name,   "putShortRelease")          \
 796   do_name(getCharAcquire_name,    "getCharAcquire")         do_name(putCharRelease_name,    "putCharRelease")           \
 797   do_name(getIntAcquire_name,     "getIntAcquire")          do_name(putIntRelease_name,     "putIntRelease")            \
 798   do_name(getLongAcquire_name,    "getLongAcquire")         do_name(putLongRelease_name,    "putLongRelease")           \
 799   do_name(getFloatAcquire_name,   "getFloatAcquire")        do_name(putFloatRelease_name,   "putFloatRelease")          \
 800   do_name(getDoubleAcquire_name,  "getDoubleAcquire")       do_name(putDoubleRelease_name,  "putDoubleRelease")         \
 801                                                                                                                         \
 802   do_intrinsic(_getReferenceAcquire,     jdk_internal_misc_Unsafe,        getReferenceAcquire_name, getReference_signature, F_R)  \
 803   do_intrinsic(_getBooleanAcquire,       jdk_internal_misc_Unsafe,        getBooleanAcquire_name, getBoolean_signature,     F_R)  \
 804   do_intrinsic(_getByteAcquire,          jdk_internal_misc_Unsafe,        getByteAcquire_name, getByte_signature,           F_R)  \
 805   do_intrinsic(_getShortAcquire,         jdk_internal_misc_Unsafe,        getShortAcquire_name, getShort_signature,         F_R)  \
 806   do_intrinsic(_getCharAcquire,          jdk_internal_misc_Unsafe,        getCharAcquire_name, getChar_signature,           F_R)  \
 807   do_intrinsic(_getIntAcquire,           jdk_internal_misc_Unsafe,        getIntAcquire_name, getInt_signature,             F_R)  \
 808   do_intrinsic(_getLongAcquire,          jdk_internal_misc_Unsafe,        getLongAcquire_name, getLong_signature,           F_R)  \
 809   do_intrinsic(_getFloatAcquire,         jdk_internal_misc_Unsafe,        getFloatAcquire_name, getFloat_signature,         F_R)  \
 810   do_intrinsic(_getDoubleAcquire,        jdk_internal_misc_Unsafe,        getDoubleAcquire_name, getDouble_signature,       F_R)  \
 811   do_intrinsic(_putReferenceRelease,     jdk_internal_misc_Unsafe,        putReferenceRelease_name, putReference_signature, F_R)  \
 812   do_intrinsic(_putBooleanRelease,       jdk_internal_misc_Unsafe,        putBooleanRelease_name, putBoolean_signature,     F_R)  \
 813   do_intrinsic(_putByteRelease,          jdk_internal_misc_Unsafe,        putByteRelease_name, putByte_signature,           F_R)  \
 814   do_intrinsic(_putShortRelease,         jdk_internal_misc_Unsafe,        putShortRelease_name, putShort_signature,         F_R)  \
 815   do_intrinsic(_putCharRelease,          jdk_internal_misc_Unsafe,        putCharRelease_name, putChar_signature,           F_R)  \
 816   do_intrinsic(_putIntRelease,           jdk_internal_misc_Unsafe,        putIntRelease_name, putInt_signature,             F_R)  \
 817   do_intrinsic(_putLongRelease,          jdk_internal_misc_Unsafe,        putLongRelease_name, putLong_signature,           F_R)  \
 818   do_intrinsic(_putFloatRelease,         jdk_internal_misc_Unsafe,        putFloatRelease_name, putFloat_signature,         F_R)  \
 819   do_intrinsic(_putDoubleRelease,        jdk_internal_misc_Unsafe,        putDoubleRelease_name, putDouble_signature,       F_R)  \
 820                                                                                                                         \
 821   do_name(getShortUnaligned_name,"getShortUnaligned")     do_name(putShortUnaligned_name,"putShortUnaligned")           \
 822   do_name(getCharUnaligned_name,"getCharUnaligned")       do_name(putCharUnaligned_name,"putCharUnaligned")             \
 823   do_name(getIntUnaligned_name,"getIntUnaligned")         do_name(putIntUnaligned_name,"putIntUnaligned")               \
 824   do_name(getLongUnaligned_name,"getLongUnaligned")       do_name(putLongUnaligned_name,"putLongUnaligned")             \
 825                                                                                                                         \
 826   do_intrinsic(_getShortUnaligned,         jdk_internal_misc_Unsafe,    getShortUnaligned_name, getShort_signature,     F_R)  \
 827   do_intrinsic(_getCharUnaligned,          jdk_internal_misc_Unsafe,    getCharUnaligned_name, getChar_signature,       F_R)  \
 828   do_intrinsic(_getIntUnaligned,           jdk_internal_misc_Unsafe,    getIntUnaligned_name, getInt_signature,         F_R)  \
 829   do_intrinsic(_getLongUnaligned,          jdk_internal_misc_Unsafe,    getLongUnaligned_name, getLong_signature,       F_R)  \
 830   do_intrinsic(_putShortUnaligned,         jdk_internal_misc_Unsafe,    putShortUnaligned_name, putShort_signature,     F_R)  \
 831   do_intrinsic(_putCharUnaligned,          jdk_internal_misc_Unsafe,    putCharUnaligned_name, putChar_signature,       F_R)  \
 832   do_intrinsic(_putIntUnaligned,           jdk_internal_misc_Unsafe,    putIntUnaligned_name, putInt_signature,         F_R)  \
 833   do_intrinsic(_putLongUnaligned,          jdk_internal_misc_Unsafe,    putLongUnaligned_name, putLong_signature,       F_R)  \
 834                                                                                                                         \
 835   do_signature(compareAndSetReference_signature,      "(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Z")        \
 836   do_signature(compareAndExchangeReference_signature, "(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;") \
 837   do_signature(compareAndSetLong_signature,        "(Ljava/lang/Object;JJJ)Z")                                          \
 838   do_signature(compareAndExchangeLong_signature,   "(Ljava/lang/Object;JJJ)J")                                          \
 839   do_signature(compareAndSetInt_signature,         "(Ljava/lang/Object;JII)Z")                                          \
 840   do_signature(compareAndExchangeInt_signature,    "(Ljava/lang/Object;JII)I")                                          \
 841   do_signature(compareAndSetByte_signature,        "(Ljava/lang/Object;JBB)Z")                                          \
 842   do_signature(compareAndExchangeByte_signature,   "(Ljava/lang/Object;JBB)B")                                          \
 843   do_signature(compareAndSetShort_signature,       "(Ljava/lang/Object;JSS)Z")                                          \
 844   do_signature(compareAndExchangeShort_signature,  "(Ljava/lang/Object;JSS)S")                                          \
 845                                                                                                                         \
 846   do_name(compareAndSetReference_name,              "compareAndSetReference")                                           \
 847   do_name(compareAndExchangeReference_name,         "compareAndExchangeReference")                                      \
 848   do_name(compareAndExchangeReferenceAcquire_name,  "compareAndExchangeReferenceAcquire")                               \
 849   do_name(compareAndExchangeReferenceRelease_name,  "compareAndExchangeReferenceRelease")                               \
 850   do_name(compareAndSetLong_name,                   "compareAndSetLong")                                                \
 851   do_name(compareAndExchangeLong_name,              "compareAndExchangeLong")                                           \
 852   do_name(compareAndExchangeLongAcquire_name,       "compareAndExchangeLongAcquire")                                    \
 853   do_name(compareAndExchangeLongRelease_name,       "compareAndExchangeLongRelease")                                    \
 854   do_name(compareAndSetInt_name,                    "compareAndSetInt")                                                 \
 855   do_name(compareAndExchangeInt_name,               "compareAndExchangeInt")                                            \
 856   do_name(compareAndExchangeIntAcquire_name,        "compareAndExchangeIntAcquire")                                     \
 857   do_name(compareAndExchangeIntRelease_name,        "compareAndExchangeIntRelease")                                     \
 858   do_name(compareAndSetByte_name,                   "compareAndSetByte")                                                \
 859   do_name(compareAndExchangeByte_name,              "compareAndExchangeByte")                                           \
 860   do_name(compareAndExchangeByteAcquire_name,       "compareAndExchangeByteAcquire")                                    \
 861   do_name(compareAndExchangeByteRelease_name,       "compareAndExchangeByteRelease")                                    \
 862   do_name(compareAndSetShort_name,                  "compareAndSetShort")                                               \
 863   do_name(compareAndExchangeShort_name,             "compareAndExchangeShort")                                          \
 864   do_name(compareAndExchangeShortAcquire_name,      "compareAndExchangeShortAcquire")                                   \
 865   do_name(compareAndExchangeShortRelease_name,      "compareAndExchangeShortRelease")                                   \
 866                                                                                                                         \
 867   do_name(weakCompareAndSetReferencePlain_name,     "weakCompareAndSetReferencePlain")                                  \
 868   do_name(weakCompareAndSetReferenceAcquire_name,   "weakCompareAndSetReferenceAcquire")                                \
 869   do_name(weakCompareAndSetReferenceRelease_name,   "weakCompareAndSetReferenceRelease")                                \
 870   do_name(weakCompareAndSetReference_name,          "weakCompareAndSetReference")                                       \
 871   do_name(weakCompareAndSetLongPlain_name,          "weakCompareAndSetLongPlain")                                       \
 872   do_name(weakCompareAndSetLongAcquire_name,        "weakCompareAndSetLongAcquire")                                     \
 873   do_name(weakCompareAndSetLongRelease_name,        "weakCompareAndSetLongRelease")                                     \
 874   do_name(weakCompareAndSetLong_name,               "weakCompareAndSetLong")                                            \
 875   do_name(weakCompareAndSetIntPlain_name,           "weakCompareAndSetIntPlain")                                        \
 876   do_name(weakCompareAndSetIntAcquire_name,         "weakCompareAndSetIntAcquire")                                      \
 877   do_name(weakCompareAndSetIntRelease_name,         "weakCompareAndSetIntRelease")                                      \
 878   do_name(weakCompareAndSetInt_name,                "weakCompareAndSetInt")                                             \
 879   do_name(weakCompareAndSetBytePlain_name,          "weakCompareAndSetBytePlain")                                       \
 880   do_name(weakCompareAndSetByteAcquire_name,        "weakCompareAndSetByteAcquire")                                     \
 881   do_name(weakCompareAndSetByteRelease_name,        "weakCompareAndSetByteRelease")                                     \
 882   do_name(weakCompareAndSetByte_name,               "weakCompareAndSetByte")                                            \
 883   do_name(weakCompareAndSetShortPlain_name,         "weakCompareAndSetShortPlain")                                      \
 884   do_name(weakCompareAndSetShortAcquire_name,       "weakCompareAndSetShortAcquire")                                    \
 885   do_name(weakCompareAndSetShortRelease_name,       "weakCompareAndSetShortRelease")                                    \
 886   do_name(weakCompareAndSetShort_name,              "weakCompareAndSetShort")                                           \
 887                                                                                                                         \
 888   do_intrinsic(_compareAndSetReference,              jdk_internal_misc_Unsafe,  compareAndSetReference_name,              compareAndSetReference_signature,      F_RN) \
 889   do_intrinsic(_compareAndExchangeReference,         jdk_internal_misc_Unsafe,  compareAndExchangeReference_name,         compareAndExchangeReference_signature, F_RN) \
 890   do_intrinsic(_compareAndExchangeReferenceAcquire,  jdk_internal_misc_Unsafe,  compareAndExchangeReferenceAcquire_name,  compareAndExchangeReference_signature, F_R)  \
 891   do_intrinsic(_compareAndExchangeReferenceRelease,  jdk_internal_misc_Unsafe,  compareAndExchangeReferenceRelease_name,  compareAndExchangeReference_signature, F_R)  \
 892   do_intrinsic(_compareAndSetLong,                jdk_internal_misc_Unsafe,  compareAndSetLong_name,                compareAndSetLong_signature,        F_RN) \
 893   do_intrinsic(_compareAndExchangeLong,           jdk_internal_misc_Unsafe,  compareAndExchangeLong_name,           compareAndExchangeLong_signature,   F_RN) \
 894   do_intrinsic(_compareAndExchangeLongAcquire,    jdk_internal_misc_Unsafe,  compareAndExchangeLongAcquire_name,    compareAndExchangeLong_signature,   F_R)  \
 895   do_intrinsic(_compareAndExchangeLongRelease,    jdk_internal_misc_Unsafe,  compareAndExchangeLongRelease_name,    compareAndExchangeLong_signature,   F_R)  \
 896   do_intrinsic(_compareAndSetInt,                 jdk_internal_misc_Unsafe,  compareAndSetInt_name,                 compareAndSetInt_signature,         F_RN) \
 897   do_intrinsic(_compareAndExchangeInt,            jdk_internal_misc_Unsafe,  compareAndExchangeInt_name,            compareAndExchangeInt_signature,    F_RN) \
 898   do_intrinsic(_compareAndExchangeIntAcquire,     jdk_internal_misc_Unsafe,  compareAndExchangeIntAcquire_name,     compareAndExchangeInt_signature,    F_R)  \
 899   do_intrinsic(_compareAndExchangeIntRelease,     jdk_internal_misc_Unsafe,  compareAndExchangeIntRelease_name,     compareAndExchangeInt_signature,    F_R)  \
 900   do_intrinsic(_compareAndSetByte,                jdk_internal_misc_Unsafe,  compareAndSetByte_name,                compareAndSetByte_signature,        F_R)  \
 901   do_intrinsic(_compareAndExchangeByte,           jdk_internal_misc_Unsafe,  compareAndExchangeByte_name,           compareAndExchangeByte_signature,   F_R)  \
 902   do_intrinsic(_compareAndExchangeByteAcquire,    jdk_internal_misc_Unsafe,  compareAndExchangeByteAcquire_name,    compareAndExchangeByte_signature,   F_R)  \
 903   do_intrinsic(_compareAndExchangeByteRelease,    jdk_internal_misc_Unsafe,  compareAndExchangeByteRelease_name,    compareAndExchangeByte_signature,   F_R)  \
 904   do_intrinsic(_compareAndSetShort,               jdk_internal_misc_Unsafe,  compareAndSetShort_name,               compareAndSetShort_signature,       F_R)  \
 905   do_intrinsic(_compareAndExchangeShort,          jdk_internal_misc_Unsafe,  compareAndExchangeShort_name,          compareAndExchangeShort_signature,  F_R)  \
 906   do_intrinsic(_compareAndExchangeShortAcquire,   jdk_internal_misc_Unsafe,  compareAndExchangeShortAcquire_name,   compareAndExchangeShort_signature,  F_R)  \
 907   do_intrinsic(_compareAndExchangeShortRelease,   jdk_internal_misc_Unsafe,  compareAndExchangeShortRelease_name,   compareAndExchangeShort_signature,  F_R)  \
 908                                                                                                                                                              \
 909   do_intrinsic(_weakCompareAndSetReferencePlain,  jdk_internal_misc_Unsafe,  weakCompareAndSetReferencePlain_name,     compareAndSetReference_signature,      F_R) \
 910   do_intrinsic(_weakCompareAndSetReferenceAcquire,jdk_internal_misc_Unsafe,  weakCompareAndSetReferenceAcquire_name,   compareAndSetReference_signature,      F_R) \
 911   do_intrinsic(_weakCompareAndSetReferenceRelease,jdk_internal_misc_Unsafe,  weakCompareAndSetReferenceRelease_name,   compareAndSetReference_signature,      F_R) \
 912   do_intrinsic(_weakCompareAndSetReference,       jdk_internal_misc_Unsafe,  weakCompareAndSetReference_name,          compareAndSetReference_signature,      F_R) \
 913   do_intrinsic(_weakCompareAndSetLongPlain,       jdk_internal_misc_Unsafe,  weakCompareAndSetLongPlain_name,       compareAndSetLong_signature,        F_R) \
 914   do_intrinsic(_weakCompareAndSetLongAcquire,     jdk_internal_misc_Unsafe,  weakCompareAndSetLongAcquire_name,     compareAndSetLong_signature,        F_R) \
 915   do_intrinsic(_weakCompareAndSetLongRelease,     jdk_internal_misc_Unsafe,  weakCompareAndSetLongRelease_name,     compareAndSetLong_signature,        F_R) \
 916   do_intrinsic(_weakCompareAndSetLong,            jdk_internal_misc_Unsafe,  weakCompareAndSetLong_name,            compareAndSetLong_signature,        F_R) \
 917   do_intrinsic(_weakCompareAndSetIntPlain,        jdk_internal_misc_Unsafe,  weakCompareAndSetIntPlain_name,        compareAndSetInt_signature,         F_R) \
 918   do_intrinsic(_weakCompareAndSetIntAcquire,      jdk_internal_misc_Unsafe,  weakCompareAndSetIntAcquire_name,      compareAndSetInt_signature,         F_R) \
 919   do_intrinsic(_weakCompareAndSetIntRelease,      jdk_internal_misc_Unsafe,  weakCompareAndSetIntRelease_name,      compareAndSetInt_signature,         F_R) \
 920   do_intrinsic(_weakCompareAndSetInt,             jdk_internal_misc_Unsafe,  weakCompareAndSetInt_name,             compareAndSetInt_signature,         F_R) \
 921   do_intrinsic(_weakCompareAndSetBytePlain,       jdk_internal_misc_Unsafe,  weakCompareAndSetBytePlain_name,       compareAndSetByte_signature,        F_R) \
 922   do_intrinsic(_weakCompareAndSetByteAcquire,     jdk_internal_misc_Unsafe,  weakCompareAndSetByteAcquire_name,     compareAndSetByte_signature,        F_R) \
 923   do_intrinsic(_weakCompareAndSetByteRelease,     jdk_internal_misc_Unsafe,  weakCompareAndSetByteRelease_name,     compareAndSetByte_signature,        F_R) \
 924   do_intrinsic(_weakCompareAndSetByte,            jdk_internal_misc_Unsafe,  weakCompareAndSetByte_name,            compareAndSetByte_signature,        F_R) \
 925   do_intrinsic(_weakCompareAndSetShortPlain,      jdk_internal_misc_Unsafe,  weakCompareAndSetShortPlain_name,      compareAndSetShort_signature,       F_R) \
 926   do_intrinsic(_weakCompareAndSetShortAcquire,    jdk_internal_misc_Unsafe,  weakCompareAndSetShortAcquire_name,    compareAndSetShort_signature,       F_R) \
 927   do_intrinsic(_weakCompareAndSetShortRelease,    jdk_internal_misc_Unsafe,  weakCompareAndSetShortRelease_name,    compareAndSetShort_signature,       F_R) \
 928   do_intrinsic(_weakCompareAndSetShort,           jdk_internal_misc_Unsafe,  weakCompareAndSetShort_name,           compareAndSetShort_signature,       F_R) \
 929                            \
 930   do_intrinsic(_getAndAddInt,             jdk_internal_misc_Unsafe,     getAndAddInt_name, getAndAddInt_signature, F_R)       \
 931    do_name(     getAndAddInt_name,                                      "getAndAddInt")                                       \
 932    do_signature(getAndAddInt_signature,                                 "(Ljava/lang/Object;JI)I" )                           \
 933   do_intrinsic(_getAndAddLong,            jdk_internal_misc_Unsafe,     getAndAddLong_name, getAndAddLong_signature, F_R)     \
 934    do_name(     getAndAddLong_name,                                     "getAndAddLong")                                      \
 935    do_signature(getAndAddLong_signature,                                "(Ljava/lang/Object;JJ)J" )                           \
 936   do_intrinsic(_getAndAddByte,            jdk_internal_misc_Unsafe,     getAndAddByte_name, getAndAddByte_signature, F_R)     \
 937    do_name(     getAndAddByte_name,                                     "getAndAddByte")                                      \
 938    do_signature(getAndAddByte_signature,                                "(Ljava/lang/Object;JB)B" )                           \
 939   do_intrinsic(_getAndAddShort,           jdk_internal_misc_Unsafe,     getAndAddShort_name, getAndAddShort_signature, F_R)   \
 940    do_name(     getAndAddShort_name,                                    "getAndAddShort")                                     \
 941    do_signature(getAndAddShort_signature,                               "(Ljava/lang/Object;JS)S" )                           \
 942   do_intrinsic(_getAndSetInt,             jdk_internal_misc_Unsafe,     getAndSetInt_name, getAndSetInt_signature, F_R)       \
 943    do_name(     getAndSetInt_name,                                      "getAndSetInt")                                       \
 944    do_alias(    getAndSetInt_signature,                                 /*"(Ljava/lang/Object;JI)I"*/ getAndAddInt_signature)   \
 945   do_intrinsic(_getAndSetLong,            jdk_internal_misc_Unsafe,     getAndSetLong_name, getAndSetLong_signature, F_R)     \
 946    do_name(     getAndSetLong_name,                                     "getAndSetLong")                                      \
 947    do_alias(    getAndSetLong_signature,                                /*"(Ljava/lang/Object;JJ)J"*/ getAndAddLong_signature)  \
 948   do_intrinsic(_getAndSetByte,            jdk_internal_misc_Unsafe,     getAndSetByte_name, getAndSetByte_signature, F_R)     \
 949    do_name(     getAndSetByte_name,                                     "getAndSetByte")                                      \
 950    do_alias(    getAndSetByte_signature,                                /*"(Ljava/lang/Object;JB)B"*/ getAndAddByte_signature)  \
 951   do_intrinsic(_getAndSetShort,           jdk_internal_misc_Unsafe,     getAndSetShort_name, getAndSetShort_signature, F_R)   \
 952    do_name(     getAndSetShort_name,                                    "getAndSetShort")                                     \
 953    do_alias(    getAndSetShort_signature,                               /*"(Ljava/lang/Object;JS)S"*/ getAndAddShort_signature) \
 954   do_intrinsic(_getAndSetReference,       jdk_internal_misc_Unsafe,     getAndSetReference_name, getAndSetReference_signature, F_R) \
 955    do_name(     getAndSetReference_name,                                "getAndSetReference")                                  \
 956    do_signature(getAndSetReference_signature,                           "(Ljava/lang/Object;JLjava/lang/Object;)Ljava/lang/Object;" ) \
 957                                                                                                                                                \
 958   /* Vector API intrinsification support */                                                                                                    \
 959                                                                                                                                                \
 960   do_intrinsic(_VectorUnaryOp, jdk_internal_vm_vector_VectorSupport, vector_unary_op_name, vector_unary_op_sig, F_S)                           \
 961    do_signature(vector_unary_op_sig, "(I"                                                                                                      \
 962                                       "Ljava/lang/Class;"                                                                                      \
 963                                       "Ljava/lang/Class;Ljava/lang/Class;"                                                                     \
 964                                       "I"                                                                                                      \
 965                                       "Ljdk/internal/vm/vector/VectorSupport$Vector;"                                                          \
 966                                       "Ljdk/internal/vm/vector/VectorSupport$VectorMask;"                                                      \
 967                                       "Ljdk/internal/vm/vector/VectorSupport$UnaryOperation;)"                                                 \
 968                                       "Ljdk/internal/vm/vector/VectorSupport$Vector;")                                                         \
 969    do_name(vector_unary_op_name,     "unaryOp")                                                                                                \
 970                                                                                                                                                \
 971   do_intrinsic(_VectorBinaryOp, jdk_internal_vm_vector_VectorSupport, vector_binary_op_name, vector_binary_op_sig, F_S)                        \
 972    do_signature(vector_binary_op_sig, "(I"                                                                                                     \
 973                                        "Ljava/lang/Class;"                                                                                     \
 974                                        "Ljava/lang/Class;"                                                                                     \
 975                                        "Ljava/lang/Class;"                                                                                     \
 976                                        "I"                                                                                                     \
 977                                        "Ljdk/internal/vm/vector/VectorSupport$VectorPayload;"                                                  \
 978                                        "Ljdk/internal/vm/vector/VectorSupport$VectorPayload;"                                                  \
 979                                        "Ljdk/internal/vm/vector/VectorSupport$VectorMask;"                                                     \
 980                                        "Ljdk/internal/vm/vector/VectorSupport$BinaryOperation;)"                                               \
 981                                        "Ljdk/internal/vm/vector/VectorSupport$VectorPayload;")                                                 \
 982    do_name(vector_binary_op_name,     "binaryOp")                                                                                              \
 983                                                                                                                                                \
 984   do_intrinsic(_VectorTernaryOp, jdk_internal_vm_vector_VectorSupport, vector_ternary_op_name, vector_ternary_op_sig, F_S)                     \
 985    do_signature(vector_ternary_op_sig, "(I"                                                                                                    \
 986                                         "Ljava/lang/Class;"                                                                                    \
 987                                         "Ljava/lang/Class;"                                                                                    \
 988                                         "Ljava/lang/Class;"                                                                                    \
 989                                         "I"                                                                                                    \
 990                                         "Ljdk/internal/vm/vector/VectorSupport$Vector;"                                                        \
 991                                         "Ljdk/internal/vm/vector/VectorSupport$Vector;"                                                        \
 992                                         "Ljdk/internal/vm/vector/VectorSupport$Vector;"                                                        \
 993                                         "Ljdk/internal/vm/vector/VectorSupport$VectorMask;"                                                    \
 994                                         "Ljdk/internal/vm/vector/VectorSupport$TernaryOperation;)"                                             \
 995                                         "Ljdk/internal/vm/vector/VectorSupport$Vector;")                                                       \
 996    do_name(vector_ternary_op_name,     "ternaryOp")                                                                                            \
 997                                                                                                                                                \
 998   do_intrinsic(_VectorSelectFromTwoVectorOp, jdk_internal_vm_vector_VectorSupport, vector_select_from_op_name, vector_select_from_op_sig, F_S) \
 999    do_signature(vector_select_from_op_sig, "(Ljava/lang/Class;"                                                                                \
1000                                             "Ljava/lang/Class;"                                                                                \
1001                                             "I"                                                                                                \
1002                                             "Ljdk/internal/vm/vector/VectorSupport$Vector;"                                                    \
1003                                             "Ljdk/internal/vm/vector/VectorSupport$Vector;"                                                    \
1004                                             "Ljdk/internal/vm/vector/VectorSupport$Vector;"                                                    \
1005                                             "Ljdk/internal/vm/vector/VectorSupport$SelectFromTwoVector;)"                                      \
1006                                             "Ljdk/internal/vm/vector/VectorSupport$Vector;")                                                   \
1007    do_name(vector_select_from_op_name,     "selectFromTwoVectorOp")                                                                            \
1008                                                                                                                                                \
1009   do_intrinsic(_VectorFromBitsCoerced, jdk_internal_vm_vector_VectorSupport, vector_frombits_coerced_name, vector_frombits_coerced_sig, F_S)   \
1010    do_signature(vector_frombits_coerced_sig, "(Ljava/lang/Class;"                                                                              \
1011                                                "Ljava/lang/Class;"                                                                             \
1012                                                "I"                                                                                             \
1013                                                "J"                                                                                             \
1014                                                "I"                                                                                             \
1015                                                "Ljdk/internal/vm/vector/VectorSupport$VectorSpecies;"                                          \
1016                                                "Ljdk/internal/vm/vector/VectorSupport$FromBitsCoercedOperation;)"                              \
1017                                                "Ljdk/internal/vm/vector/VectorSupport$VectorPayload;")                                         \
1018    do_name(vector_frombits_coerced_name, "fromBitsCoerced")                                                                                    \
1019                                                                                                                                                \
1020   do_intrinsic(_VectorShuffleIota, jdk_internal_vm_vector_VectorSupport, vector_shuffle_step_iota_name, vector_shuffle_step_iota_sig, F_S)     \
1021    do_signature(vector_shuffle_step_iota_sig, "(Ljava/lang/Class;"                                                                             \
1022                                                "Ljava/lang/Class;"                                                                             \
1023                                                "Ljdk/internal/vm/vector/VectorSupport$VectorSpecies;"                                          \
1024                                                "IIII"                                                                                          \
1025                                                "Ljdk/internal/vm/vector/VectorSupport$ShuffleIotaOperation;)"                                  \
1026                                                "Ljdk/internal/vm/vector/VectorSupport$VectorShuffle;")                                         \
1027    do_name(vector_shuffle_step_iota_name, "shuffleIota")                                                                                       \
1028                                                                                                                                                \
1029   do_intrinsic(_VectorShuffleToVector, jdk_internal_vm_vector_VectorSupport, vector_shuffle_to_vector_name, vector_shuffle_to_vector_sig, F_S) \
1030    do_signature(vector_shuffle_to_vector_sig, "(Ljava/lang/Class;"                                                                             \
1031                                                "Ljava/lang/Class;"                                                                             \
1032                                                "Ljava/lang/Class;"                                                                             \
1033                                                "Ljdk/internal/vm/vector/VectorSupport$VectorShuffle;"                                          \
1034                                                "ILjdk/internal/vm/vector/VectorSupport$ShuffleToVectorOperation;)"                             \
1035                                                "Ljdk/internal/vm/vector/VectorSupport$Vector;")                                                \
1036    do_name(vector_shuffle_to_vector_name, "shuffleToVector")                                                                                   \
1037                                                                                                                                                \
1038   do_intrinsic(_VectorWrapShuffleIndexes, jdk_internal_vm_vector_VectorSupport, vector_wrap_shuffle_indexes_name,                              \
1039                                                                                                          vector_wrap_shuffle_indexes_sig, F_S) \
1040    do_signature(vector_wrap_shuffle_indexes_sig, "(Ljava/lang/Class;"                                                                          \
1041                                                   "Ljava/lang/Class;"                                                                          \
1042                                                   "Ljdk/internal/vm/vector/VectorSupport$VectorShuffle;"                                       \
1043                                                   "ILjdk/internal/vm/vector/VectorSupport$WrapShuffleIndexesOperation;)"                       \
1044                                                   "Ljdk/internal/vm/vector/VectorSupport$VectorShuffle;")                                      \
1045    do_name(vector_wrap_shuffle_indexes_name, "wrapShuffleIndexes")                                                                             \
1046                                                                                                                                                \
1047   do_intrinsic(_VectorLoadOp, jdk_internal_vm_vector_VectorSupport, vector_load_op_name, vector_load_op_sig, F_S)                              \
1048    do_signature(vector_load_op_sig, "(Ljava/lang/Class;"                                                                                       \
1049                                      "Ljava/lang/Class;"                                                                                       \
1050                                      "I"                                                                                                       \
1051                                      "Ljava/lang/Object;"                                                                                      \
1052                                      "J"                                                                                                       \
1053                                      "Z"                                                                                                       \
1054                                      "Ljava/lang/Object;"                                                                                      \
1055                                      "J"                                                                                                       \
1056                                      "Ljdk/internal/vm/vector/VectorSupport$VectorSpecies;"                                                    \
1057                                      "Ljdk/internal/vm/vector/VectorSupport$LoadOperation;)"                                                   \
1058                                      "Ljdk/internal/vm/vector/VectorSupport$VectorPayload;")                                                   \
1059    do_name(vector_load_op_name,     "load")                                                                                                    \
1060                                                                                                                                                \
1061   do_intrinsic(_VectorLoadMaskedOp, jdk_internal_vm_vector_VectorSupport, vector_load_masked_op_name, vector_load_masked_op_sig, F_S)          \
1062    do_signature(vector_load_masked_op_sig, "(Ljava/lang/Class;"                                                                                \
1063                                             "Ljava/lang/Class;"                                                                                \
1064                                             "Ljava/lang/Class;"                                                                                \
1065                                             "I"                                                                                                \
1066                                             "Ljava/lang/Object;"                                                                               \
1067                                             "J"                                                                                                \
1068                                             "Z"                                                                                                \
1069                                             "Ljdk/internal/vm/vector/VectorSupport$VectorMask;"                                                \
1070                                             "I"                                                                                                \
1071                                             "Ljava/lang/Object;"                                                                               \
1072                                             "J"                                                                                                \
1073                                             "Ljdk/internal/vm/vector/VectorSupport$VectorSpecies;"                                             \
1074                                             "Ljdk/internal/vm/vector/VectorSupport$LoadVectorMaskedOperation;)"                                \
1075                                             "Ljdk/internal/vm/vector/VectorSupport$Vector;")                                                   \
1076    do_name(vector_load_masked_op_name,     "loadMasked")                                                                                       \
1077                                                                                                                                                \
1078   do_intrinsic(_VectorStoreOp, jdk_internal_vm_vector_VectorSupport, vector_store_op_name, vector_store_op_sig, F_S)                           \
1079    do_signature(vector_store_op_sig, "(Ljava/lang/Class;"                                                                                      \
1080                                       "Ljava/lang/Class;"                                                                                      \
1081                                       "I"                                                                                                      \
1082                                       "Ljava/lang/Object;"                                                                                     \
1083                                       "J"                                                                                                      \
1084                                       "Z"                                                                                                      \
1085                                       "Ljdk/internal/vm/vector/VectorSupport$VectorPayload;"                                                   \
1086                                       "Ljava/lang/Object;"                                                                                     \
1087                                       "J"                                                                                                      \
1088                                       "Ljdk/internal/vm/vector/VectorSupport$StoreVectorOperation;)"                                           \
1089                                       "V")                                                                                                     \
1090    do_name(vector_store_op_name,     "store")                                                                                                  \
1091                                                                                                                                                \
1092   do_intrinsic(_VectorStoreMaskedOp, jdk_internal_vm_vector_VectorSupport, vector_store_masked_op_name, vector_store_masked_op_sig, F_S)       \
1093    do_signature(vector_store_masked_op_sig, "(Ljava/lang/Class;"                                                                               \
1094                                              "Ljava/lang/Class;"                                                                               \
1095                                              "Ljava/lang/Class;"                                                                               \
1096                                              "I"                                                                                               \
1097                                              "Ljava/lang/Object;"                                                                              \
1098                                              "J"                                                                                               \
1099                                              "Z"                                                                                               \
1100                                              "Ljdk/internal/vm/vector/VectorSupport$Vector;"                                                   \
1101                                              "Ljdk/internal/vm/vector/VectorSupport$VectorMask;"                                               \
1102                                              "Ljava/lang/Object;"                                                                              \
1103                                              "J"                                                                                               \
1104                                              "Ljdk/internal/vm/vector/VectorSupport$StoreVectorMaskedOperation;)"                              \
1105                                              "V")                                                                                              \
1106    do_name(vector_store_masked_op_name,     "storeMasked")                                                                                     \
1107                                                                                                                                                \
1108   do_intrinsic(_VectorReductionCoerced, jdk_internal_vm_vector_VectorSupport, vector_reduction_coerced_name, vector_reduction_coerced_sig, F_S)\
1109    do_signature(vector_reduction_coerced_sig, "(I"                                                                                             \
1110                                                "Ljava/lang/Class;"                                                                             \
1111                                                "Ljava/lang/Class;"                                                                             \
1112                                                "Ljava/lang/Class;"                                                                             \
1113                                                "I"                                                                                             \
1114                                                "Ljdk/internal/vm/vector/VectorSupport$Vector;"                                                 \
1115                                                "Ljdk/internal/vm/vector/VectorSupport$VectorMask;"                                             \
1116                                                "Ljdk/internal/vm/vector/VectorSupport$ReductionOperation;)"                                    \
1117                                                "J")                                                                                            \
1118    do_name(vector_reduction_coerced_name, "reductionCoerced")                                                                                  \
1119                                                                                                                                                \
1120   do_intrinsic(_VectorTest, jdk_internal_vm_vector_VectorSupport, vector_test_name, vector_test_sig, F_S)                                      \
1121    do_signature(vector_test_sig, "(I"                                                                                                          \
1122                                   "Ljava/lang/Class;"                                                                                          \
1123                                   "Ljava/lang/Class;"                                                                                          \
1124                                   "I"                                                                                                          \
1125                                   "Ljdk/internal/vm/vector/VectorSupport$VectorMask;"                                                          \
1126                                   "Ljdk/internal/vm/vector/VectorSupport$VectorMask;"                                                          \
1127                                   "Ljava/util/function/BiFunction;)"                                                                           \
1128                                   "Z")                                                                                                         \
1129    do_name(vector_test_name, "test")                                                                                                           \
1130                                                                                                                                                \
1131   do_intrinsic(_VectorBlend, jdk_internal_vm_vector_VectorSupport, vector_blend_name, vector_blend_sig, F_S)                                   \
1132    do_signature(vector_blend_sig, "(Ljava/lang/Class;"                                                                                         \
1133                                    "Ljava/lang/Class;"                                                                                         \
1134                                    "Ljava/lang/Class;"                                                                                         \
1135                                    "I"                                                                                                         \
1136                                    "Ljdk/internal/vm/vector/VectorSupport$Vector;"                                                             \
1137                                    "Ljdk/internal/vm/vector/VectorSupport$Vector;"                                                             \
1138                                    "Ljdk/internal/vm/vector/VectorSupport$VectorMask;"                                                         \
1139                                    "Ljdk/internal/vm/vector/VectorSupport$VectorBlendOp;)"                                                     \
1140                                    "Ljdk/internal/vm/vector/VectorSupport$Vector;")                                                            \
1141    do_name(vector_blend_name, "blend")                                                                                                         \
1142                                                                                                                                                \
1143   do_intrinsic(_VectorCompare, jdk_internal_vm_vector_VectorSupport, vector_compare_name, vector_compare_sig, F_S)                             \
1144    do_signature(vector_compare_sig, "(I"                                                                                                       \
1145                                      "Ljava/lang/Class;"                                                                                       \
1146                                      "Ljava/lang/Class;Ljava/lang/Class;"                                                                      \
1147                                      "I"                                                                                                       \
1148                                      "Ljdk/internal/vm/vector/VectorSupport$Vector;"                                                           \
1149                                      "Ljdk/internal/vm/vector/VectorSupport$Vector;"                                                           \
1150                                      "Ljdk/internal/vm/vector/VectorSupport$VectorMask;"                                                       \
1151                                      "Ljdk/internal/vm/vector/VectorSupport$VectorCompareOp;)"                                                 \
1152                                      "Ljdk/internal/vm/vector/VectorSupport$VectorMask;")                                                      \
1153    do_name(vector_compare_name, "compare")                                                                                                     \
1154                                                                                                                                                \
1155   do_intrinsic(_VectorRearrange, jdk_internal_vm_vector_VectorSupport, vector_rearrange_name, vector_rearrange_sig, F_S)                       \
1156    do_signature(vector_rearrange_sig, "(Ljava/lang/Class;"                                                                                     \
1157                                        "Ljava/lang/Class;"                                                                                     \
1158                                        "Ljava/lang/Class;"                                                                                     \
1159                                        "Ljava/lang/Class;"                                                                                     \
1160                                        "I"                                                                                                     \
1161                                        "Ljdk/internal/vm/vector/VectorSupport$Vector;"                                                         \
1162                                        "Ljdk/internal/vm/vector/VectorSupport$VectorShuffle;"                                                  \
1163                                        "Ljdk/internal/vm/vector/VectorSupport$VectorMask;"                                                     \
1164                                        "Ljdk/internal/vm/vector/VectorSupport$VectorRearrangeOp;)"                                             \
1165                                        "Ljdk/internal/vm/vector/VectorSupport$Vector;")                                                        \
1166    do_name(vector_rearrange_name, "rearrangeOp")                                                                                               \
1167                                                                                                                                                \
1168   do_intrinsic(_VectorSelectFrom, jdk_internal_vm_vector_VectorSupport, vector_select_from_name, vector_select_from_sig, F_S)                  \
1169    do_signature(vector_select_from_sig, "(Ljava/lang/Class;"                                                                                   \
1170                                         "Ljava/lang/Class;"                                                                                     \
1171                                         "Ljava/lang/Class;"                                                                                     \
1172                                         "I"                                                                                                     \
1173                                         "Ljdk/internal/vm/vector/VectorSupport$Vector;"                                                         \
1174                                         "Ljdk/internal/vm/vector/VectorSupport$Vector;"                                                         \
1175                                         "Ljdk/internal/vm/vector/VectorSupport$VectorMask;"                                                     \
1176                                         "Ljdk/internal/vm/vector/VectorSupport$VectorSelectFromOp;)"                                            \
1177                                         "Ljdk/internal/vm/vector/VectorSupport$Vector;")                                                        \
1178    do_name(vector_select_from_name, "selectFromOp")                                                                                              \
1179                                                                                                                                                \
1180   do_intrinsic(_VectorExtract, jdk_internal_vm_vector_VectorSupport, vector_extract_name, vector_extract_sig, F_S)                             \
1181    do_signature(vector_extract_sig, "(Ljava/lang/Class;"                                                                                       \
1182                                      "Ljava/lang/Class;"                                                                                       \
1183                                      "I"                                                                                                       \
1184                                      "Ljdk/internal/vm/vector/VectorSupport$VectorPayload;"                                                    \
1185                                      "I"                                                                                                       \
1186                                      "Ljdk/internal/vm/vector/VectorSupport$VecExtractOp;)"                                                    \
1187                                      "J")                                                                                                      \
1188    do_name(vector_extract_name, "extract")                                                                                                     \
1189                                                                                                                                                \
1190  do_intrinsic(_VectorInsert, jdk_internal_vm_vector_VectorSupport, vector_insert_name, vector_insert_sig, F_S)                                 \
1191    do_signature(vector_insert_sig, "(Ljava/lang/Class;"                                                                                        \
1192                                     "Ljava/lang/Class;"                                                                                        \
1193                                     "I"                                                                                                        \
1194                                     "Ljdk/internal/vm/vector/VectorSupport$Vector;"                                                            \
1195                                     "IJ"                                                                                                       \
1196                                     "Ljdk/internal/vm/vector/VectorSupport$VecInsertOp;)"                                                      \
1197                                     "Ljdk/internal/vm/vector/VectorSupport$Vector;")                                                           \
1198    do_name(vector_insert_name, "insert")                                                                                                       \
1199                                                                                                                                                \
1200   do_intrinsic(_VectorBroadcastInt, jdk_internal_vm_vector_VectorSupport, vector_broadcast_int_name, vector_broadcast_int_sig, F_S)            \
1201    do_signature(vector_broadcast_int_sig, "(I"                                                                                                 \
1202                                            "Ljava/lang/Class;"                                                                                 \
1203                                            "Ljava/lang/Class;"                                                                                 \
1204                                            "Ljava/lang/Class;"                                                                                 \
1205                                            "I"                                                                                                 \
1206                                            "Ljdk/internal/vm/vector/VectorSupport$Vector;"                                                     \
1207                                            "I"                                                                                                 \
1208                                            "Ljdk/internal/vm/vector/VectorSupport$VectorMask;"                                                 \
1209                                            "Ljdk/internal/vm/vector/VectorSupport$VectorBroadcastIntOp;)"                                      \
1210                                            "Ljdk/internal/vm/vector/VectorSupport$Vector;")                                                    \
1211    do_name(vector_broadcast_int_name, "broadcastInt")                                                                                          \
1212                                                                                                                                                \
1213   do_intrinsic(_VectorConvert, jdk_internal_vm_vector_VectorSupport, vector_convert_name, vector_convert_sig, F_S)                             \
1214    do_signature(vector_convert_sig, "(I"                                                                                                       \
1215                                      "Ljava/lang/Class;"                                                                                       \
1216                                      "Ljava/lang/Class;"                                                                                       \
1217                                      "I"                                                                                                       \
1218                                      "Ljava/lang/Class;"                                                                                       \
1219                                      "Ljava/lang/Class;"                                                                                       \
1220                                      "I"                                                                                                       \
1221                                      "Ljdk/internal/vm/vector/VectorSupport$VectorPayload;"                                                    \
1222                                      "Ljdk/internal/vm/vector/VectorSupport$VectorSpecies;"                                                    \
1223                                      "Ljdk/internal/vm/vector/VectorSupport$VectorConvertOp;)"                                                 \
1224                                      "Ljdk/internal/vm/vector/VectorSupport$VectorPayload;")                                                   \
1225    do_name(vector_convert_name, "convert")                                                                                                     \
1226                                                                                                                                                \
1227    do_intrinsic(_VectorGatherOp, jdk_internal_vm_vector_VectorSupport, vector_gather_name, vector_gather_sig, F_S)                             \
1228     do_signature(vector_gather_sig, "(Ljava/lang/Class;"                                                                                       \
1229                                      "Ljava/lang/Class;"                                                                                       \
1230                                      "Ljava/lang/Class;"                                                                                       \
1231                                      "I"                                                                                                       \
1232                                      "Ljava/lang/Class;"                                                                                       \
1233                                      "Ljava/lang/Object;"                                                                                      \
1234                                      "J"                                                                                                       \
1235                                      "Ljdk/internal/vm/vector/VectorSupport$Vector;"                                                           \
1236                                      "Ljdk/internal/vm/vector/VectorSupport$VectorMask;"                                                       \
1237                                      "Ljava/lang/Object;"                                                                                      \
1238                                      "I[II"                                                                                                    \
1239                                      "Ljdk/internal/vm/vector/VectorSupport$VectorSpecies;"                                                    \
1240                                      "Ljdk/internal/vm/vector/VectorSupport$LoadVectorOperationWithMap;)"                                      \
1241                                      "Ljdk/internal/vm/vector/VectorSupport$Vector;")                                                          \
1242     do_name(vector_gather_name, "loadWithMap")                                                                                                 \
1243                                                                                                                                                \
1244    do_intrinsic(_VectorScatterOp, jdk_internal_vm_vector_VectorSupport, vector_scatter_name, vector_scatter_sig, F_S)                          \
1245     do_signature(vector_scatter_sig, "(Ljava/lang/Class;"                                                                                      \
1246                                       "Ljava/lang/Class;"                                                                                      \
1247                                       "Ljava/lang/Class;"                                                                                      \
1248                                       "I"                                                                                                      \
1249                                       "Ljava/lang/Class;"                                                                                      \
1250                                       "Ljava/lang/Object;"                                                                                     \
1251                                       "J"                                                                                                      \
1252                                       "Ljdk/internal/vm/vector/VectorSupport$Vector;"                                                          \
1253                                       "Ljdk/internal/vm/vector/VectorSupport$Vector;"                                                          \
1254                                       "Ljdk/internal/vm/vector/VectorSupport$VectorMask;Ljava/lang/Object;"                                    \
1255                                       "I[II"                                                                                                   \
1256                                       "Ljdk/internal/vm/vector/VectorSupport$StoreVectorOperationWithMap;)"                                    \
1257                                       "V")                                                                                                     \
1258     do_name(vector_scatter_name, "storeWithMap")                                                                                               \
1259                                                                                                                                                \
1260   do_intrinsic(_VectorRebox, jdk_internal_vm_vector_VectorSupport, vector_rebox_name, vector_rebox_sig, F_S)                                   \
1261     do_signature(vector_rebox_sig, "(Ljdk/internal/vm/vector/VectorSupport$VectorPayload;)"                                                    \
1262                                     "Ljdk/internal/vm/vector/VectorSupport$VectorPayload;")                                                    \
1263    do_name(vector_rebox_name, "maybeRebox")                                                                                                    \
1264                                                                                                                                                \
1265   do_intrinsic(_VectorMaskOp, jdk_internal_vm_vector_VectorSupport, vector_mask_oper_name, vector_mask_oper_sig, F_S)                          \
1266     do_signature(vector_mask_oper_sig, "(I"                                                                                                    \
1267                                         "Ljava/lang/Class;"                                                                                    \
1268                                         "Ljava/lang/Class;"                                                                                    \
1269                                         "I"                                                                                                    \
1270                                         "Ljdk/internal/vm/vector/VectorSupport$VectorMask;"                                                    \
1271                                         "Ljdk/internal/vm/vector/VectorSupport$VectorMaskOp;)"                                                 \
1272                                         "J")                                                                                                   \
1273     do_name(vector_mask_oper_name, "maskReductionCoerced")                                                                                     \
1274                                                                                                                                                \
1275   do_intrinsic(_VectorCompressExpand, jdk_internal_vm_vector_VectorSupport, vector_compress_expand_op_name, vector_compress_expand_op_sig, F_S)\
1276    do_signature(vector_compress_expand_op_sig, "(I"                                                                                            \
1277                                       "Ljava/lang/Class;"                                                                                      \
1278                                       "Ljava/lang/Class;"                                                                                      \
1279                                       "Ljava/lang/Class;"                                                                                      \
1280                                       "I"                                                                                                      \
1281                                       "Ljdk/internal/vm/vector/VectorSupport$Vector;"                                                          \
1282                                       "Ljdk/internal/vm/vector/VectorSupport$VectorMask;"                                                      \
1283                                       "Ljdk/internal/vm/vector/VectorSupport$CompressExpandOperation;)"                                        \
1284                                       "Ljdk/internal/vm/vector/VectorSupport$VectorPayload;")                                                  \
1285    do_name(vector_compress_expand_op_name,     "compressExpandOp")                                                                             \
1286                                                                                                                                                \
1287   do_intrinsic(_IndexVector, jdk_internal_vm_vector_VectorSupport, index_vector_op_name, index_vector_op_sig, F_S)                             \
1288     do_signature(index_vector_op_sig, "(Ljava/lang/Class;"                                                                                     \
1289                                        "Ljava/lang/Class;"                                                                                     \
1290                                        "I"                                                                                                     \
1291                                        "Ljdk/internal/vm/vector/VectorSupport$Vector;"                                                         \
1292                                        "I"                                                                                                     \
1293                                        "Ljdk/internal/vm/vector/VectorSupport$VectorSpecies;"                                                  \
1294                                        "Ljdk/internal/vm/vector/VectorSupport$IndexOperation;)"                                                \
1295                                        "Ljdk/internal/vm/vector/VectorSupport$Vector;")                                                        \
1296     do_name(index_vector_op_name, "indexVector")                                                                                               \
1297                                                                                                                                                \
1298   do_intrinsic(_IndexPartiallyInUpperRange, jdk_internal_vm_vector_VectorSupport, index_partially_in_upper_range_name, index_partially_in_upper_range_sig, F_S)\
1299     do_signature(index_partially_in_upper_range_sig, "(Ljava/lang/Class;"                                                                                      \
1300                                                      "Ljava/lang/Class;"                                                                                       \
1301                                                      "I"                                                                                                       \
1302                                                      "J"                                                                                                       \
1303                                                      "J"                                                                                                       \
1304                                                      "Ljdk/internal/vm/vector/VectorSupport$IndexPartiallyInUpperRangeOperation;)"                             \
1305                                                      "Ljdk/internal/vm/vector/VectorSupport$VectorMask;")                                                      \
1306     do_name(index_partially_in_upper_range_name, "indexPartiallyInUpperRange")                                                                                 \
1307                                                                                                                                \
1308    /* (2) Bytecode intrinsics                                                                        */                        \
1309                                                                                                                                \
1310   do_intrinsic(_park,                     jdk_internal_misc_Unsafe,     park_name, park_signature,                     F_RN)   \
1311    do_name(     park_name,                                              "park")                                                \
1312    do_signature(park_signature,                                         "(ZJ)V")                                               \
1313   do_intrinsic(_unpark,                   jdk_internal_misc_Unsafe,     unpark_name, unpark_signature,                 F_RN)   \
1314    do_name(     unpark_name,                                            "unpark")                                              \
1315    do_alias(    unpark_signature,                                       /*(LObject;)V*/ object_void_signature)                 \
1316                                                                                                                                \
1317   do_intrinsic(_StringBuilder_void,   java_lang_StringBuilder, object_initializer_name, void_method_signature,     F_R)   \
1318   do_intrinsic(_StringBuilder_int,    java_lang_StringBuilder, object_initializer_name, int_void_signature,        F_R)   \
1319   do_intrinsic(_StringBuilder_String, java_lang_StringBuilder, object_initializer_name, string_void_signature,     F_R)   \
1320                                                                                                                           \
1321   do_intrinsic(_StringBuilder_append_char,   java_lang_StringBuilder, append_name, char_StringBuilder_signature,   F_R)   \
1322   do_intrinsic(_StringBuilder_append_int,    java_lang_StringBuilder, append_name, int_StringBuilder_signature,    F_R)   \
1323   do_intrinsic(_StringBuilder_append_String, java_lang_StringBuilder, append_name, String_StringBuilder_signature, F_R)   \
1324                                                                                                                           \
1325   do_intrinsic(_StringBuilder_toString, java_lang_StringBuilder, toString_name, void_string_signature,             F_R)   \
1326                                                                                                                           \
1327   do_intrinsic(_StringBuffer_void,   java_lang_StringBuffer, object_initializer_name, void_method_signature,       F_R)   \
1328   do_intrinsic(_StringBuffer_int,    java_lang_StringBuffer, object_initializer_name, int_void_signature,          F_R)   \
1329   do_intrinsic(_StringBuffer_String, java_lang_StringBuffer, object_initializer_name, string_void_signature,       F_R)   \
1330                                                                                                                           \
1331   do_intrinsic(_StringBuffer_append_char,   java_lang_StringBuffer, append_name, char_StringBuffer_signature,      F_Y)   \
1332   do_intrinsic(_StringBuffer_append_int,    java_lang_StringBuffer, append_name, int_StringBuffer_signature,       F_Y)   \
1333   do_intrinsic(_StringBuffer_append_String, java_lang_StringBuffer, append_name, String_StringBuffer_signature,    F_Y)   \
1334                                                                                                                           \
1335   do_intrinsic(_StringBuffer_toString,  java_lang_StringBuffer, toString_name, void_string_signature,              F_Y)   \
1336                                                                                                                           \
1337   do_intrinsic(_Integer_toString,      java_lang_Integer, toString_name, int_String_signature,                     F_S)   \
1338                                                                                                                           \
1339   do_intrinsic(_String_String, java_lang_String, object_initializer_name, string_void_signature,                   F_R)   \
1340                                                                                                                           \
1341   do_intrinsic(_Object_init,              java_lang_Object, object_initializer_name, void_method_signature,        F_R)   \
1342   /*    (symbol object_initializer_name defined above) */                                                                 \
1343                                                                                                                           \
1344   do_intrinsic(_invoke,                   java_lang_reflect_Method, invoke_name, object_object_array_object_signature, F_R) \
1345   /*   (symbols invoke_name and invoke_signature defined above) */                                                      \
1346   /* the polymorphic MH intrinsics must be in compact order, with _invokeGeneric first and _linkToInterface last */     \
1347   do_intrinsic(_invokeGeneric,            java_lang_invoke_MethodHandle, invoke_name,           star_name, F_RN)        \
1348   do_intrinsic(_invokeBasic,              java_lang_invoke_MethodHandle, invokeBasic_name,      star_name, F_RN)        \
1349   do_intrinsic(_linkToVirtual,            java_lang_invoke_MethodHandle, linkToVirtual_name,    star_name, F_SN)        \
1350   do_intrinsic(_linkToStatic,             java_lang_invoke_MethodHandle, linkToStatic_name,     star_name, F_SN)        \
1351   do_intrinsic(_linkToSpecial,            java_lang_invoke_MethodHandle, linkToSpecial_name,    star_name, F_SN)        \
1352   do_intrinsic(_linkToInterface,          java_lang_invoke_MethodHandle, linkToInterface_name,  star_name, F_SN)        \
1353   do_intrinsic(_linkToNative,             java_lang_invoke_MethodHandle, linkToNative_name,     star_name, F_SN)        \
1354   /* special marker for bytecode generated for the JVM from a LambdaForm: */                                            \
1355   do_intrinsic(_compiledLambdaForm,       java_lang_invoke_MethodHandle, compiledLambdaForm_name, star_name, F_RN)      \
1356                                                                                                                         \
1357   /* unboxing methods: */                                                                                               \
1358   do_intrinsic(_booleanValue,             java_lang_Boolean,      booleanValue_name, void_boolean_signature, F_R)       \
1359    do_name(     booleanValue_name,       "booleanValue")                                                                \
1360   do_intrinsic(_byteValue,                java_lang_Byte,         byteValue_name, void_byte_signature, F_R)             \
1361    do_name(     byteValue_name,          "byteValue")                                                                   \
1362   do_intrinsic(_charValue,                java_lang_Character,    charValue_name, void_char_signature, F_R)             \
1363    do_name(     charValue_name,          "charValue")                                                                   \
1364   do_intrinsic(_shortValue,               java_lang_Short,        shortValue_name, void_short_signature, F_R)           \
1365    do_name(     shortValue_name,         "shortValue")                                                                  \
1366   do_intrinsic(_intValue,                 java_lang_Integer,      intValue_name, void_int_signature, F_R)               \
1367    do_name(     intValue_name,           "intValue")                                                                    \
1368   do_intrinsic(_longValue,                java_lang_Long,         longValue_name, void_long_signature, F_R)             \
1369    do_name(     longValue_name,          "longValue")                                                                   \
1370   do_intrinsic(_floatValue,               java_lang_Float,        floatValue_name, void_float_signature, F_R)           \
1371    do_name(     floatValue_name,         "floatValue")                                                                  \
1372   do_intrinsic(_doubleValue,              java_lang_Double,       doubleValue_name, void_double_signature, F_R)         \
1373    do_name(     doubleValue_name,        "doubleValue")                                                                 \
1374                                                                                                                         \
1375   /* boxing methods: */                                                                                                 \
1376    do_name(    valueOf_name,              "valueOf")                                                                    \
1377   do_intrinsic(_Boolean_valueOf,          java_lang_Boolean,      valueOf_name, Boolean_valueOf_signature, F_S)         \
1378    do_name(     Boolean_valueOf_signature,                       "(Z)Ljava/lang/Boolean;")                              \
1379   do_intrinsic(_Byte_valueOf,             java_lang_Byte,         valueOf_name, Byte_valueOf_signature, F_S)            \
1380    do_name(     Byte_valueOf_signature,                          "(B)Ljava/lang/Byte;")                                 \
1381   do_intrinsic(_Character_valueOf,        java_lang_Character,    valueOf_name, Character_valueOf_signature, F_S)       \
1382    do_name(     Character_valueOf_signature,                     "(C)Ljava/lang/Character;")                            \
1383   do_intrinsic(_Short_valueOf,            java_lang_Short,        valueOf_name, Short_valueOf_signature, F_S)           \
1384    do_name(     Short_valueOf_signature,                         "(S)Ljava/lang/Short;")                                \
1385   do_intrinsic(_Integer_valueOf,          java_lang_Integer,      valueOf_name, Integer_valueOf_signature, F_S)         \
1386    do_name(     Integer_valueOf_signature,                       "(I)Ljava/lang/Integer;")                              \
1387   do_intrinsic(_Long_valueOf,             java_lang_Long,         valueOf_name, Long_valueOf_signature, F_S)            \
1388    do_name(     Long_valueOf_signature,                          "(J)Ljava/lang/Long;")                                 \
1389   do_intrinsic(_Float_valueOf,            java_lang_Float,        valueOf_name, Float_valueOf_signature, F_S)           \
1390    do_name(     Float_valueOf_signature,                         "(F)Ljava/lang/Float;")                                \
1391   do_intrinsic(_Double_valueOf,           java_lang_Double,       valueOf_name, Double_valueOf_signature, F_S)          \
1392    do_name(     Double_valueOf_signature,                        "(D)Ljava/lang/Double;")                               \
1393                                                                                                                         \
1394   /* forEachRemaining */                                                                             \
1395   do_intrinsic(_forEachRemaining, java_util_stream_StreamsRangeIntSpliterator, forEachRemaining_name, forEachRemaining_signature, F_R) \
1396    do_name(     forEachRemaining_name,    "forEachRemaining")                                                           \
1397    do_name(     forEachRemaining_signature,                      "(Ljava/util/function/IntConsumer;)V")                 \
1398 
1399     /*end*/
1400 
1401 #define VM_INTRINSIC_ID_ENUM(id, klass, name, sig, flags)  id,
1402 #define VM_INTRINSICS_CONST(id, klass, name, sig, flags)   static const vmIntrinsicID id = vmIntrinsicID::id;
1403 #define __IGNORE_CLASS(id, name)                      /*ignored*/
1404 #define __IGNORE_NAME(id, name)                       /*ignored*/
1405 #define __IGNORE_SIGNATURE(id, name)                  /*ignored*/
1406 #define __IGNORE_ALIAS(id, name)                      /*ignored*/
1407 
1408 // VM Intrinsic ID's uniquely identify some very special methods
1409 enum class vmIntrinsicID : int {
1410   _none = 0,                      // not an intrinsic (default answer)
1411 
1412   VM_INTRINSICS_DO(VM_INTRINSIC_ID_ENUM,
1413                    __IGNORE_CLASS, __IGNORE_NAME, __IGNORE_SIGNATURE, __IGNORE_ALIAS)
1414 
1415   ID_LIMIT,
1416   LAST_COMPILER_INLINE = _IndexPartiallyInUpperRange,
1417   FIRST_MH_SIG_POLY    = _invokeGeneric,
1418   FIRST_MH_STATIC      = _linkToVirtual,
1419   LAST_MH_SIG_POLY     = _linkToNative,
1420 
1421   FIRST_ID = _none + 1,
1422   LAST_ID = ID_LIMIT - 1,
1423 };
1424 
1425 ENUMERATOR_RANGE(vmIntrinsicID, vmIntrinsicID::FIRST_ID, vmIntrinsicID::LAST_ID)
1426 
1427 class vmIntrinsics : AllStatic {
1428   friend class vmSymbols;
1429   friend class ciObjectFactory;
1430 
1431  public:
1432   typedef vmIntrinsicID ID;
1433 
1434   // Convenient access of vmIntrinsicID::FOO as vmIntrinsics::FOO
1435   static const ID _none                = vmIntrinsicID::_none;
1436   static const ID ID_LIMIT             = vmIntrinsicID::ID_LIMIT;
1437   static const ID LAST_COMPILER_INLINE = vmIntrinsicID::LAST_COMPILER_INLINE;
1438   static const ID FIRST_MH_SIG_POLY    = vmIntrinsicID::FIRST_MH_SIG_POLY;
1439   static const ID FIRST_MH_STATIC      = vmIntrinsicID::FIRST_MH_STATIC;
1440   static const ID LAST_MH_SIG_POLY     = vmIntrinsicID::LAST_MH_SIG_POLY;
1441   static const ID FIRST_ID             = vmIntrinsicID::FIRST_ID;
1442 
1443   VM_INTRINSICS_DO(VM_INTRINSICS_CONST,
1444                    __IGNORE_CLASS, __IGNORE_NAME, __IGNORE_SIGNATURE, __IGNORE_ALIAS)
1445 
1446   enum Flags {
1447     // AccessFlags syndromes relevant to intrinsics.
1448     F_none = 0,
1449     F_R,                        // !static !native !synchronized (R="regular")
1450     F_S,                        //  static !native !synchronized
1451     F_Y,                        // !static !native  synchronized
1452     F_RN,                       // !static  native !synchronized
1453     F_SN,                       //  static  native !synchronized
1454 
1455     FLAG_LIMIT
1456   };
1457   enum {
1458     log2_FLAG_LIMIT = 3         // checked by an assert at start-up
1459   };
1460 
1461   static constexpr bool is_flag_static(Flags flags) {
1462     switch (flags) {
1463       case F_S:
1464       case F_SN:
1465         return true;
1466       case F_R:
1467       case F_Y:
1468       case F_RN:
1469         return false;
1470       default:
1471         ShouldNotReachHere();
1472         return false;
1473     }
1474   }
1475 
1476   static constexpr bool is_flag_synchronized(Flags flags) {
1477     switch (flags) {
1478       case F_Y:
1479         return true;
1480       case F_RN:
1481       case F_SN:
1482       case F_S:
1483       case F_R:
1484         return false;
1485       default:
1486         ShouldNotReachHere();
1487         return false;
1488     }
1489   }
1490 
1491   static constexpr bool is_flag_native(Flags flags) {
1492     switch (flags) {
1493       case F_RN:
1494       case F_SN:
1495         return true;
1496       case F_S:
1497       case F_R:
1498       case F_Y:
1499         return false;
1500       default:
1501         ShouldNotReachHere();
1502         return false;
1503     }
1504   }
1505 
1506   // Convert an arbitrary vmIntrinsicID to int (checks validity):
1507   //    vmIntrinsicID x = ...; int n = vmIntrinsics::as_int(x);
1508   // Convert a known vmIntrinsicID to int (no need for validity check):
1509   //    int n = static_cast<int>(vmIntrinsicID::_invokeGeneric);
1510   static constexpr int as_int(vmIntrinsicID id) {
1511     assert(is_valid_id(id), "must be");
1512     return static_cast<int>(id);
1513   }
1514 
1515   static constexpr int number_of_intrinsics() {
1516     return static_cast<int>(ID_LIMIT);
1517   }
1518 
1519 public:
1520   static constexpr bool is_valid_id(int raw_id) {
1521     return (raw_id >= static_cast<int>(_none) && raw_id < static_cast<int>(ID_LIMIT));
1522   }
1523 
1524   static constexpr bool is_valid_id(ID id) {
1525     return is_valid_id(static_cast<int>(id));
1526   }
1527 
1528   static constexpr ID ID_from(int raw_id) {
1529     assert(is_valid_id(raw_id), "must be a valid intrinsic ID");
1530     return static_cast<ID>(raw_id);
1531   }
1532 
1533   static const char* name_at(ID id);
1534 
1535 private:
1536   static ID find_id_impl(vmSymbolID holder,
1537                          vmSymbolID name,
1538                          vmSymbolID sig,
1539                          jshort flags);
1540 
1541   // check if the intrinsic is disabled by course-grained flags.
1542   static bool disabled_by_jvm_flags(vmIntrinsics::ID id);
1543   static void init_vm_intrinsic_name_table();
1544 public:
1545   static ID find_id(const char* name);
1546   // Given a method's class, name, signature, and access flags, report its ID.
1547   static ID find_id(vmSymbolID holder,
1548                     vmSymbolID name,
1549                     vmSymbolID sig,
1550                     jshort flags) {
1551     ID id = find_id_impl(holder, name, sig, flags);
1552 #ifdef ASSERT
1553     // ID _none does not hold the following asserts.
1554     if (id == _none)  return id;
1555 #endif
1556     assert(    class_for(id) == holder, "correct class: %s",     name_at(id));
1557     assert(     name_for(id) == name,   "correct name: %s",      name_at(id));
1558     assert(signature_for(id) == sig,    "correct signature: %s", name_at(id));
1559     assert(      is_flag_static(flags_for(id)) == ((flags & JVM_ACC_STATIC)       != 0),
1560                  "correct static flag: %s", name_at(id));
1561     assert(is_flag_synchronized(flags_for(id)) == ((flags & JVM_ACC_SYNCHRONIZED) != 0),
1562            "correct synchronized flag: %s", name_at(id));
1563     assert(      is_flag_native(flags_for(id)) == ((flags & JVM_ACC_NATIVE)       != 0),
1564                  "correct native flag: %s", name_at(id));
1565     return id;
1566   }
1567 
1568 #ifndef PRODUCT
1569   // Find out the symbols behind an intrinsic:
1570   static vmSymbolID     class_for(ID id);
1571   static vmSymbolID      name_for(ID id);
1572   static vmSymbolID signature_for(ID id);
1573   static Flags          flags_for(ID id);
1574 #endif
1575 
1576   static bool class_has_intrinsics(vmSymbolID holder);
1577 
1578   static const char* short_name_as_C_string(ID id, char* buf, int size);
1579 
1580   // The methods below provide information related to compiling intrinsics.
1581 
1582   // (1) Information needed by the C1 compiler.
1583 
1584   static bool preserves_state(vmIntrinsics::ID id);
1585   static bool can_trap(vmIntrinsics::ID id);
1586   static bool should_be_pinned(vmIntrinsics::ID id);
1587 
1588   // (2) Information needed by the C2 compiler.
1589 
1590   // Returns true if the intrinsic for method 'method' will perform a virtual dispatch.
1591   static bool does_virtual_dispatch(vmIntrinsics::ID id);
1592   // A return value larger than 0 indicates that the intrinsic for method
1593   // 'method' requires predicated logic.
1594   static int predicates_needed(vmIntrinsics::ID id);
1595 
1596   // There are 2 kinds of JVM options to control intrinsics.
1597   // 1. Disable/Control Intrinsic accepts a list of intrinsic IDs.
1598   //    ControlIntrinsic is recommended. DisableIntrinic will be deprecated.
1599   //    Currently, the DisableIntrinsic list prevails if an intrinsic appears on
1600   //    both lists.
1601   //
1602   // 2. Explicit UseXXXIntrinsics options. eg. UseAESIntrinsics, UseCRC32Intrinsics etc.
1603   //    Each option can control a group of intrinsics. The user can specify them but
1604   //    their final values are subject to hardware inspection (VM_Version::initialize).
1605   //    Stub generators are controlled by them.
1606   //
1607   // An intrinsic is enabled if and only if neither the fine-grained control(1) nor
1608   // the corresponding coarse-grained control(2) disables it.
1609   static bool is_disabled_by_flags(vmIntrinsics::ID id);
1610 
1611   static bool is_intrinsic_available(vmIntrinsics::ID id);
1612 };
1613 
1614 #undef VM_INTRINSIC_ENUM
1615 #undef VM_INTRINSICS_CONST
1616 #undef __IGNORE_CLASS
1617 #undef __IGNORE_NAME
1618 #undef __IGNORE_SIGNATURE
1619 #undef __IGNORE_ALIAS
1620 
1621 #endif // SHARE_CLASSFILE_VMINTRINSICS_HPP