src/hotspot/share/classfile/vmSymbols.hpp
author chegar
Thu, 17 Oct 2019 20:54:25 +0100
branchdatagramsocketimpl-branch
changeset 58679 9c3209ff7550
parent 58678 9cf78a70fa4f
parent 58664 e3618c902d17
permissions -rw-r--r--
datagramsocketimpl-branch: merge with default
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 53041
diff changeset
     2
 * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
 *
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5420
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5420
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5420
diff changeset
    21
 * questions.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 53041
diff changeset
    25
#ifndef SHARE_CLASSFILE_VMSYMBOLS_HPP
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 53041
diff changeset
    26
#define SHARE_CLASSFILE_VMSYMBOLS_HPP
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6463
diff changeset
    27
50113
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50063
diff changeset
    28
#include "jfr/support/jfrIntrinsics.hpp"
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50063
diff changeset
    29
#include "jvmci/vmSymbols_jvmci.hpp"
8076
96d498ec7ae1 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 7900
diff changeset
    30
#include "memory/iterator.hpp"
50113
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50063
diff changeset
    31
#include "oops/symbol.hpp"
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50063
diff changeset
    32
#include "utilities/macros.hpp"
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50063
diff changeset
    33
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6463
diff changeset
    34
8076
96d498ec7ae1 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 7900
diff changeset
    35
// The class vmSymbols is a name space for fast lookup of
96d498ec7ae1 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 7900
diff changeset
    36
// symbols commonly used in the VM.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
// Sample usage:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
//
8076
96d498ec7ae1 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 7900
diff changeset
    40
//   Symbol* obj       = vmSymbols::java_lang_Object();
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
// Useful sub-macros exported by this header file:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
#define VM_SYMBOL_ENUM_NAME(name)    name##_enum
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
#define VM_INTRINSIC_IGNORE(id, class, name, sig, flags) /*ignored*/
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
#define VM_SYMBOL_IGNORE(id, name)                       /*ignored*/
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
#define VM_ALIAS_IGNORE(id, id2)                         /*ignored*/
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
// Mapping function names to values. New entries should be added below.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
#define VM_SYMBOLS_DO(template, do_alias)                                                         \
36508
5f9eee6b383b 8142968: Module System implementation
alanb
parents: 36405
diff changeset
    53
  /* commonly used class, package, module names */                                                \
54347
235883996bc7 8221698: Remove redundant includes from popular header files
iklam
parents: 53435
diff changeset
    54
  template(java_base,                                 "java.base")                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
  template(java_lang_System,                          "java/lang/System")                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
  template(java_lang_Object,                          "java/lang/Object")                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
  template(java_lang_Class,                           "java/lang/Class")                          \
36508
5f9eee6b383b 8142968: Module System implementation
alanb
parents: 36405
diff changeset
    58
  template(java_lang_Package,                         "java/lang/Package")                        \
44520
0553e129e0ec 8177530: Module system implementation refresh (4/2017)
alanb
parents: 44326
diff changeset
    59
  template(java_lang_Module,                          "java/lang/Module")                         \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
  template(java_lang_String,                          "java/lang/String")                         \
33628
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
    61
  template(java_lang_StringLatin1,                    "java/lang/StringLatin1")                   \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
    62
  template(java_lang_StringUTF16,                     "java/lang/StringUTF16")                    \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
  template(java_lang_Thread,                          "java/lang/Thread")                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
  template(java_lang_ThreadGroup,                     "java/lang/ThreadGroup")                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
  template(java_lang_Cloneable,                       "java/lang/Cloneable")                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
  template(java_lang_Throwable,                       "java/lang/Throwable")                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
  template(java_lang_ClassLoader,                     "java/lang/ClassLoader")                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
  template(java_lang_ClassLoader_NativeLibrary,       "java/lang/ClassLoader\x024NativeLibrary")  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
  template(java_lang_ThreadDeath,                     "java/lang/ThreadDeath")                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
  template(java_lang_Boolean,                         "java/lang/Boolean")                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
  template(java_lang_Character,                       "java/lang/Character")                      \
190
e9a0a9dcd4f6 6395208: Elide autoboxing for calls to HashMap.get(int) and HashMap.get(long)
never
parents: 1
diff changeset
    72
  template(java_lang_Character_CharacterCache,        "java/lang/Character$CharacterCache")       \
52979
7384e00d5860 8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents: 52781
diff changeset
    73
  template(java_lang_CharacterDataLatin1,             "java/lang/CharacterDataLatin1")            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
  template(java_lang_Float,                           "java/lang/Float")                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
  template(java_lang_Double,                          "java/lang/Double")                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
  template(java_lang_Byte,                            "java/lang/Byte")                           \
17383
3665c0901a0d 6934604: enable parts of EliminateAutoBox by default
kvn
parents: 16617
diff changeset
    77
  template(java_lang_Byte_ByteCache,                  "java/lang/Byte$ByteCache")                 \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
  template(java_lang_Short,                           "java/lang/Short")                          \
190
e9a0a9dcd4f6 6395208: Elide autoboxing for calls to HashMap.get(int) and HashMap.get(long)
never
parents: 1
diff changeset
    79
  template(java_lang_Short_ShortCache,                "java/lang/Short$ShortCache")               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
  template(java_lang_Integer,                         "java/lang/Integer")                        \
190
e9a0a9dcd4f6 6395208: Elide autoboxing for calls to HashMap.get(int) and HashMap.get(long)
never
parents: 1
diff changeset
    81
  template(java_lang_Integer_IntegerCache,            "java/lang/Integer$IntegerCache")           \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
  template(java_lang_Long,                            "java/lang/Long")                           \
190
e9a0a9dcd4f6 6395208: Elide autoboxing for calls to HashMap.get(int) and HashMap.get(long)
never
parents: 1
diff changeset
    83
  template(java_lang_Long_LongCache,                  "java/lang/Long$LongCache")                 \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
  template(java_lang_Shutdown,                        "java/lang/Shutdown")                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
  template(java_lang_ref_Reference,                   "java/lang/ref/Reference")                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
  template(java_lang_ref_SoftReference,               "java/lang/ref/SoftReference")              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
  template(java_lang_ref_WeakReference,               "java/lang/ref/WeakReference")              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
  template(java_lang_ref_FinalReference,              "java/lang/ref/FinalReference")             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
  template(java_lang_ref_PhantomReference,            "java/lang/ref/PhantomReference")           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
  template(java_lang_ref_Finalizer,                   "java/lang/ref/Finalizer")                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
  template(java_lang_reflect_AccessibleObject,        "java/lang/reflect/AccessibleObject")       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
  template(java_lang_reflect_Method,                  "java/lang/reflect/Method")                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
  template(java_lang_reflect_Constructor,             "java/lang/reflect/Constructor")            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
  template(java_lang_reflect_Field,                   "java/lang/reflect/Field")                  \
15102
0a86564e5f61 8004728: Add hotspot support for parameter reflection
coleenp
parents: 15098
diff changeset
    95
  template(java_lang_reflect_Parameter,               "java/lang/reflect/Parameter")              \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
  template(java_lang_reflect_Array,                   "java/lang/reflect/Array")                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
  template(java_lang_StringBuffer,                    "java/lang/StringBuffer")                   \
4450
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
    98
  template(java_lang_StringBuilder,                   "java/lang/StringBuilder")                  \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
  template(java_lang_CharSequence,                    "java/lang/CharSequence")                   \
16617
6235d2c7549f 7198429: need checked categorization of caller-sensitive methods in the JDK
twisti
parents: 15436
diff changeset
   100
  template(java_lang_SecurityManager,                 "java/lang/SecurityManager")                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
  template(java_security_AccessControlContext,        "java/security/AccessControlContext")       \
52431
b0af758a092c 8212605: Pure-Java implementation of AccessController.doPrivileged
dlong
parents: 52220
diff changeset
   102
  template(java_security_AccessController,            "java/security/AccessController")           \
b0af758a092c 8212605: Pure-Java implementation of AccessController.doPrivileged
dlong
parents: 52220
diff changeset
   103
  template(executePrivileged_name,                    "executePrivileged")                        \
26135
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25465
diff changeset
   104
  template(java_security_CodeSource,                  "java/security/CodeSource")                 \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
  template(java_security_ProtectionDomain,            "java/security/ProtectionDomain")           \
26135
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25465
diff changeset
   106
  template(java_security_SecureClassLoader,           "java/security/SecureClassLoader")          \
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25465
diff changeset
   107
  template(java_net_URL,                              "java/net/URL")                             \
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25465
diff changeset
   108
  template(java_util_jar_Manifest,                    "java/util/jar/Manifest")                   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
  template(java_io_OutputStream,                      "java/io/OutputStream")                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
  template(java_io_Reader,                            "java/io/Reader")                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
  template(java_io_BufferedReader,                    "java/io/BufferedReader")                   \
26135
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25465
diff changeset
   112
  template(java_io_File,                              "java/io/File")                             \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
  template(java_io_FileInputStream,                   "java/io/FileInputStream")                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
  template(java_io_ByteArrayInputStream,              "java/io/ByteArrayInputStream")             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
  template(java_io_Serializable,                      "java/io/Serializable")                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
  template(java_util_Arrays,                          "java/util/Arrays")                         \
35954
d69682775b15 8149750: Decouple sun.misc.Signal from the base module
rriggs
parents: 35495
diff changeset
   117
  template(java_util_Objects,                         "java/util/Objects")                        \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
  template(java_util_Properties,                      "java/util/Properties")                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
  template(java_util_Vector,                          "java/util/Vector")                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
  template(java_util_AbstractList,                    "java/util/AbstractList")                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
  template(java_util_Hashtable,                       "java/util/Hashtable")                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
  template(java_lang_Compiler,                        "java/lang/Compiler")                       \
35954
d69682775b15 8149750: Decouple sun.misc.Signal from the base module
rriggs
parents: 35495
diff changeset
   123
  template(jdk_internal_misc_Signal,                  "jdk/internal/misc/Signal")                 \
38240
28e0cafd5222 8155794: Move Objects.checkIndex BiFunction accepting methods to an internal package
psandoz
parents: 38033
diff changeset
   124
  template(jdk_internal_util_Preconditions,           "jdk/internal/util/Preconditions")          \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
  template(java_lang_AssertionStatusDirectives,       "java/lang/AssertionStatusDirectives")      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
  template(getBootClassPathEntryForClass_name,        "getBootClassPathEntryForClass")            \
36850
ada6dcfa50dc 8153498: Update the PostVMInitHook mechanism to use an internal package in the base module
chegar
parents: 36848
diff changeset
   127
  template(jdk_internal_vm_PostVMInitHook,            "jdk/internal/vm/PostVMInitHook")           \
36508
5f9eee6b383b 8142968: Module System implementation
alanb
parents: 36405
diff changeset
   128
  template(sun_net_www_ParseUtil,                     "sun/net/www/ParseUtil")                    \
55115
a0d4e61acb6b 8223504: Improve performance of forall loops by better inlining of "iterator()" methods
skuksenko
parents: 54750
diff changeset
   129
  template(java_util_Iterator,                        "java/util/Iterator")                       \
36508
5f9eee6b383b 8142968: Module System implementation
alanb
parents: 36405
diff changeset
   130
                                                                                                  \
5f9eee6b383b 8142968: Module System implementation
alanb
parents: 36405
diff changeset
   131
  template(jdk_internal_loader_ClassLoaders_AppClassLoader,      "jdk/internal/loader/ClassLoaders$AppClassLoader")      \
5f9eee6b383b 8142968: Module System implementation
alanb
parents: 36405
diff changeset
   132
  template(jdk_internal_loader_ClassLoaders_PlatformClassLoader, "jdk/internal/loader/ClassLoaders$PlatformClassLoader") \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
                                                                                                  \
13106
cecfb99d6cff 7176856: add the JRE name to the error log
twisti
parents: 12957
diff changeset
   134
  /* Java runtime version access */                                                               \
36207
09a0c20ff517 8150162: Move sun.misc.Version to a truly internal package
chegar
parents: 35954
diff changeset
   135
  template(java_lang_VersionProps,                    "java/lang/VersionProps")                   \
13106
cecfb99d6cff 7176856: add the JRE name to the error log
twisti
parents: 12957
diff changeset
   136
  template(java_runtime_name_name,                    "java_runtime_name")                        \
14289
aec758622b4b 8002078: hs_err_pid file should report full JDK version string
sla
parents: 13968
diff changeset
   137
  template(java_runtime_version_name,                 "java_runtime_version")                     \
13106
cecfb99d6cff 7176856: add the JRE name to the error log
twisti
parents: 12957
diff changeset
   138
                                                                                                  \
36508
5f9eee6b383b 8142968: Module System implementation
alanb
parents: 36405
diff changeset
   139
  /* system initialization */                                                                     \
5f9eee6b383b 8142968: Module System implementation
alanb
parents: 36405
diff changeset
   140
  template(initPhase1_name,                           "initPhase1")                               \
5f9eee6b383b 8142968: Module System implementation
alanb
parents: 36405
diff changeset
   141
  template(initPhase2_name,                           "initPhase2")                               \
5f9eee6b383b 8142968: Module System implementation
alanb
parents: 36405
diff changeset
   142
  template(initPhase3_name,                           "initPhase3")                               \
44520
0553e129e0ec 8177530: Module system implementation refresh (4/2017)
alanb
parents: 44326
diff changeset
   143
  template(java_lang_module_init_signature,           "(Ljava/lang/ClassLoader;Ljava/lang/String;)V") \
36508
5f9eee6b383b 8142968: Module System implementation
alanb
parents: 36405
diff changeset
   144
                                                                                                  \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
  /* class file format tags */                                                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
  template(tag_source_file,                           "SourceFile")                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
  template(tag_inner_classes,                         "InnerClasses")                             \
50735
2f2af62dfac7 8010319: Implementation of JEP 181: Nest-Based Access Control
dholmes
parents: 50557
diff changeset
   148
  template(tag_nest_members,                          "NestMembers")                              \
2f2af62dfac7 8010319: Implementation of JEP 181: Nest-Based Access Control
dholmes
parents: 50557
diff changeset
   149
  template(tag_nest_host,                             "NestHost")                                 \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
  template(tag_constant_value,                        "ConstantValue")                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
  template(tag_code,                                  "Code")                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
  template(tag_exceptions,                            "Exceptions")                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
  template(tag_line_number_table,                     "LineNumberTable")                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
  template(tag_local_variable_table,                  "LocalVariableTable")                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
  template(tag_local_variable_type_table,             "LocalVariableTypeTable")                   \
15102
0a86564e5f61 8004728: Add hotspot support for parameter reflection
coleenp
parents: 15098
diff changeset
   156
  template(tag_method_parameters,                     "MethodParameters")                         \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
  template(tag_stack_map_table,                       "StackMapTable")                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
  template(tag_synthetic,                             "Synthetic")                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
  template(tag_deprecated,                            "Deprecated")                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
  template(tag_source_debug_extension,                "SourceDebugExtension")                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
  template(tag_signature,                             "Signature")                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
  template(tag_runtime_visible_annotations,           "RuntimeVisibleAnnotations")                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   163
  template(tag_runtime_invisible_annotations,         "RuntimeInvisibleAnnotations")              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
  template(tag_runtime_visible_parameter_annotations, "RuntimeVisibleParameterAnnotations")       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
  template(tag_runtime_invisible_parameter_annotations,"RuntimeInvisibleParameterAnnotations")    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
  template(tag_annotation_default,                    "AnnotationDefault")                        \
15097
9db149412e0e 8004823: Add VM support for type annotation reflection
stefank
parents: 14386
diff changeset
   167
  template(tag_runtime_visible_type_annotations,      "RuntimeVisibleTypeAnnotations")            \
9db149412e0e 8004823: Add VM support for type annotation reflection
stefank
parents: 14386
diff changeset
   168
  template(tag_runtime_invisible_type_annotations,    "RuntimeInvisibleTypeAnnotations")          \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
  template(tag_enclosing_method,                      "EnclosingMethod")                          \
7436
dbc43da3d512 7001379: bootstrap method data needs to be moved from constant pool to a classfile attribute
jrose
parents: 7397
diff changeset
   170
  template(tag_bootstrap_methods,                     "BootstrapMethods")                         \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
                                                                                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   172
  /* exception klasses: at least all exceptions thrown by the VM have entries here */             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   173
  template(java_lang_ArithmeticException,             "java/lang/ArithmeticException")            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
  template(java_lang_ArrayIndexOutOfBoundsException,  "java/lang/ArrayIndexOutOfBoundsException") \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   175
  template(java_lang_ArrayStoreException,             "java/lang/ArrayStoreException")            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
  template(java_lang_ClassCastException,              "java/lang/ClassCastException")             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
  template(java_lang_ClassNotFoundException,          "java/lang/ClassNotFoundException")         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
  template(java_lang_CloneNotSupportedException,      "java/lang/CloneNotSupportedException")     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
  template(java_lang_IllegalAccessException,          "java/lang/IllegalAccessException")         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
  template(java_lang_IllegalArgumentException,        "java/lang/IllegalArgumentException")       \
5420
586d3988e72b 6939134: JSR 292 adjustments to method handle invocation
jrose
parents: 5352
diff changeset
   181
  template(java_lang_IllegalStateException,           "java/lang/IllegalStateException")          \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
  template(java_lang_IllegalMonitorStateException,    "java/lang/IllegalMonitorStateException")   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
  template(java_lang_IllegalThreadStateException,     "java/lang/IllegalThreadStateException")    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   184
  template(java_lang_IndexOutOfBoundsException,       "java/lang/IndexOutOfBoundsException")      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   185
  template(java_lang_InstantiationException,          "java/lang/InstantiationException")         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   186
  template(java_lang_InstantiationError,              "java/lang/InstantiationError")             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   187
  template(java_lang_InterruptedException,            "java/lang/InterruptedException")           \
9967
9ddc1c490930 7049415: Failure of resolution of sym.reference to the c.s.s. should be wrapped in BootstrapMethodError
jrose
parents: 9640
diff changeset
   188
  template(java_lang_BootstrapMethodError,            "java/lang/BootstrapMethodError")           \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   189
  template(java_lang_LinkageError,                    "java/lang/LinkageError")                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
  template(java_lang_NegativeArraySizeException,      "java/lang/NegativeArraySizeException")     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
  template(java_lang_NoSuchFieldException,            "java/lang/NoSuchFieldException")           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
  template(java_lang_NoSuchMethodException,           "java/lang/NoSuchMethodException")          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   193
  template(java_lang_NullPointerException,            "java/lang/NullPointerException")           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   194
  template(java_lang_StringIndexOutOfBoundsException, "java/lang/StringIndexOutOfBoundsException")\
13396
1b2b5f740ee0 7188911: nightly failures after JSR 292 lazy method handle update (round 2)
twisti
parents: 13391
diff changeset
   195
  template(java_lang_UnsupportedOperationException,   "java/lang/UnsupportedOperationException")  \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
  template(java_lang_InvalidClassException,           "java/lang/InvalidClassException")          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
  template(java_lang_reflect_InvocationTargetException, "java/lang/reflect/InvocationTargetException") \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
  template(java_lang_Exception,                       "java/lang/Exception")                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   199
  template(java_lang_RuntimeException,                "java/lang/RuntimeException")               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   200
  template(java_io_IOException,                       "java/io/IOException")                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
  template(java_security_PrivilegedActionException,   "java/security/PrivilegedActionException")  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
                                                                                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
  /* error klasses: at least all errors thrown by the VM have entries here */                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   204
  template(java_lang_AbstractMethodError,             "java/lang/AbstractMethodError")            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   205
  template(java_lang_ClassCircularityError,           "java/lang/ClassCircularityError")          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   206
  template(java_lang_ClassFormatError,                "java/lang/ClassFormatError")               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   207
  template(java_lang_UnsupportedClassVersionError,    "java/lang/UnsupportedClassVersionError")   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   208
  template(java_lang_Error,                           "java/lang/Error")                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
  template(java_lang_ExceptionInInitializerError,     "java/lang/ExceptionInInitializerError")    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   210
  template(java_lang_IllegalAccessError,              "java/lang/IllegalAccessError")             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   211
  template(java_lang_IncompatibleClassChangeError,    "java/lang/IncompatibleClassChangeError")   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   212
  template(java_lang_InternalError,                   "java/lang/InternalError")                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   213
  template(java_lang_NoClassDefFoundError,            "java/lang/NoClassDefFoundError")           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   214
  template(java_lang_NoSuchFieldError,                "java/lang/NoSuchFieldError")               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   215
  template(java_lang_NoSuchMethodError,               "java/lang/NoSuchMethodError")              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   216
  template(java_lang_OutOfMemoryError,                "java/lang/OutOfMemoryError")               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   217
  template(java_lang_UnsatisfiedLinkError,            "java/lang/UnsatisfiedLinkError")           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   218
  template(java_lang_VerifyError,                     "java/lang/VerifyError")                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   219
  template(java_lang_SecurityException,               "java/lang/SecurityException")              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   220
  template(java_lang_VirtualMachineError,             "java/lang/VirtualMachineError")            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   221
  template(java_lang_StackOverflowError,              "java/lang/StackOverflowError")             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   222
  template(java_lang_StackTraceElement,               "java/lang/StackTraceElement")              \
15193
8e6b5694267f 8003985: Support @Contended Annotation - JEP 142
jwilhelm
parents: 15102
diff changeset
   223
                                                                                                  \
8e6b5694267f 8003985: Support @Contended Annotation - JEP 142
jwilhelm
parents: 15102
diff changeset
   224
  /* Concurrency support */                                                                       \
33483
5b7dd5bd7c5c 8140483: Atomic*FieldUpdaters final fields should be trusted
shade
parents: 33451
diff changeset
   225
  template(java_util_concurrent_locks_AbstractOwnableSynchronizer,           "java/util/concurrent/locks/AbstractOwnableSynchronizer") \
5b7dd5bd7c5c 8140483: Atomic*FieldUpdaters final fields should be trusted
shade
parents: 33451
diff changeset
   226
  template(java_util_concurrent_atomic_AtomicIntegerFieldUpdater_Impl,       "java/util/concurrent/atomic/AtomicIntegerFieldUpdater$AtomicIntegerFieldUpdaterImpl") \
5b7dd5bd7c5c 8140483: Atomic*FieldUpdaters final fields should be trusted
shade
parents: 33451
diff changeset
   227
  template(java_util_concurrent_atomic_AtomicLongFieldUpdater_CASUpdater,    "java/util/concurrent/atomic/AtomicLongFieldUpdater$CASUpdater") \
5b7dd5bd7c5c 8140483: Atomic*FieldUpdaters final fields should be trusted
shade
parents: 33451
diff changeset
   228
  template(java_util_concurrent_atomic_AtomicLongFieldUpdater_LockedUpdater, "java/util/concurrent/atomic/AtomicLongFieldUpdater$LockedUpdater") \
5b7dd5bd7c5c 8140483: Atomic*FieldUpdaters final fields should be trusted
shade
parents: 33451
diff changeset
   229
  template(java_util_concurrent_atomic_AtomicReferenceFieldUpdater_Impl,     "java/util/concurrent/atomic/AtomicReferenceFieldUpdater$AtomicReferenceFieldUpdaterImpl") \
34272
1b277b5ee6e3 8140687: Move @Contended to the jdk.internal.vm.annotation package
chegar
parents: 34260
diff changeset
   230
  template(jdk_internal_vm_annotation_Contended_signature,                   "Ljdk/internal/vm/annotation/Contended;")    \
35071
a0910b1d3e0d 8046936: JEP 270: Reserved Stack Areas for Critical Sections
fparain
parents: 34666
diff changeset
   231
  template(jdk_internal_vm_annotation_ReservedStackAccess_signature,         "Ljdk/internal/vm/annotation/ReservedStackAccess;") \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   232
                                                                                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   233
  /* class symbols needed by intrinsics */                                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   234
  VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, template, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   235
                                                                                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   236
  /* Support for reflection based on dynamic bytecode generation (JDK 1.4 and above) */           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   237
                                                                                                  \
42574
25ff9171b28b 8166304: Skipping access check for classes generated by core reflection
hseigel
parents: 41323
diff changeset
   238
  template(jdk_internal_reflect,                      "jdk/internal/reflect")                     \
37301
a936b4e01afb 8137058: Clear out all non-Critical APIs from sun.reflect
chegar
parents: 37297
diff changeset
   239
  template(reflect_MagicAccessorImpl,                 "jdk/internal/reflect/MagicAccessorImpl")       \
a936b4e01afb 8137058: Clear out all non-Critical APIs from sun.reflect
chegar
parents: 37297
diff changeset
   240
  template(reflect_MethodAccessorImpl,                "jdk/internal/reflect/MethodAccessorImpl")      \
a936b4e01afb 8137058: Clear out all non-Critical APIs from sun.reflect
chegar
parents: 37297
diff changeset
   241
  template(reflect_ConstructorAccessorImpl,           "jdk/internal/reflect/ConstructorAccessorImpl") \
a936b4e01afb 8137058: Clear out all non-Critical APIs from sun.reflect
chegar
parents: 37297
diff changeset
   242
  template(reflect_DelegatingClassLoader,             "jdk/internal/reflect/DelegatingClassLoader")   \
a936b4e01afb 8137058: Clear out all non-Critical APIs from sun.reflect
chegar
parents: 37297
diff changeset
   243
  template(reflect_Reflection,                        "jdk/internal/reflect/Reflection")              \
a936b4e01afb 8137058: Clear out all non-Critical APIs from sun.reflect
chegar
parents: 37297
diff changeset
   244
  template(reflect_CallerSensitive,                   "jdk/internal/reflect/CallerSensitive")         \
a936b4e01afb 8137058: Clear out all non-Critical APIs from sun.reflect
chegar
parents: 37297
diff changeset
   245
  template(reflect_CallerSensitive_signature,         "Ljdk/internal/reflect/CallerSensitive;")       \
58664
e3618c902d17 8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents: 58421
diff changeset
   246
  template(reflect_NativeConstructorAccessorImpl,     "jdk/internal/reflect/NativeConstructorAccessorImpl")\
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   247
  template(checkedExceptions_name,                    "checkedExceptions")                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   248
  template(clazz_name,                                "clazz")                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   249
  template(exceptionTypes_name,                       "exceptionTypes")                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   250
  template(modifiers_name,                            "modifiers")                                \
13391
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
   251
  template(invokeBasic_name,                          "invokeBasic")                              \
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
   252
  template(linkToVirtual_name,                        "linkToVirtual")                            \
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
   253
  template(linkToStatic_name,                         "linkToStatic")                             \
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
   254
  template(linkToSpecial_name,                        "linkToSpecial")                            \
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
   255
  template(linkToInterface_name,                      "linkToInterface")                          \
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
   256
  template(compiledLambdaForm_name,                   "<compiledLambdaForm>")  /*fake name*/      \
5420
586d3988e72b 6939134: JSR 292 adjustments to method handle invocation
jrose
parents: 5352
diff changeset
   257
  template(star_name,                                 "*") /*not really a name*/                  \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   258
  template(invoke_name,                               "invoke")                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   259
  template(parameterTypes_name,                       "parameterTypes")                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   260
  template(returnType_name,                           "returnType")                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   261
  template(signature_name,                            "signature")                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   262
  template(slot_name,                                 "slot")                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   263
                                                                                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   264
  /* Support for annotations (JDK 1.5 and above) */                                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   265
                                                                                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   266
  template(annotations_name,                          "annotations")                              \
15102
0a86564e5f61 8004728: Add hotspot support for parameter reflection
coleenp
parents: 15098
diff changeset
   267
  template(index_name,                                "index")                                    \
0a86564e5f61 8004728: Add hotspot support for parameter reflection
coleenp
parents: 15098
diff changeset
   268
  template(executable_name,                           "executable")                               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   269
  template(parameter_annotations_name,                "parameterAnnotations")                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   270
  template(annotation_default_name,                   "annotationDefault")                        \
37301
a936b4e01afb 8137058: Clear out all non-Critical APIs from sun.reflect
chegar
parents: 37297
diff changeset
   271
  template(reflect_ConstantPool,                      "jdk/internal/reflect/ConstantPool")        \
a936b4e01afb 8137058: Clear out all non-Critical APIs from sun.reflect
chegar
parents: 37297
diff changeset
   272
  template(reflect_UnsafeStaticFieldAccessorImpl,     "jdk/internal/reflect/UnsafeStaticFieldAccessorImpl")\
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   273
  template(base_name,                                 "base")                                     \
15097
9db149412e0e 8004823: Add VM support for type annotation reflection
stefank
parents: 14386
diff changeset
   274
  /* Type Annotations (JDK 8 and above) */                                                        \
9db149412e0e 8004823: Add VM support for type annotation reflection
stefank
parents: 14386
diff changeset
   275
  template(type_annotations_name,                     "typeAnnotations")                          \
9db149412e0e 8004823: Add VM support for type annotation reflection
stefank
parents: 14386
diff changeset
   276
                                                                                                  \
31587
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   277
  /* Intrinsic Annotation (JDK 9 and above) */                                                    \
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   278
  template(jdk_internal_HotSpotIntrinsicCandidate_signature, "Ljdk/internal/HotSpotIntrinsicCandidate;") \
53435
ea254e9fc587 8213234: Move LambdaForm.Hidden to jdk.internal.vm.annotation
vlivanov
parents: 53274
diff changeset
   279
  template(jdk_internal_vm_annotation_DontInline_signature,  "Ljdk/internal/vm/annotation/DontInline;")  \
35099
982950884444 8144223: Move j.l.invoke.{ForceInline, DontInline, Stable} to jdk.internal.vm.annotation package
psandoz
parents: 35086
diff changeset
   280
  template(jdk_internal_vm_annotation_ForceInline_signature, "Ljdk/internal/vm/annotation/ForceInline;") \
53435
ea254e9fc587 8213234: Move LambdaForm.Hidden to jdk.internal.vm.annotation
vlivanov
parents: 53274
diff changeset
   281
  template(jdk_internal_vm_annotation_Hidden_signature,      "Ljdk/internal/vm/annotation/Hidden;") \
ea254e9fc587 8213234: Move LambdaForm.Hidden to jdk.internal.vm.annotation
vlivanov
parents: 53274
diff changeset
   282
  template(jdk_internal_vm_annotation_Stable_signature,      "Ljdk/internal/vm/annotation/Stable;") \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   283
                                                                                                  \
2534
08dac9ce0cd7 6655638: dynamic languages need method handles
jrose
parents: 2348
diff changeset
   284
  /* Support for JSR 292 & invokedynamic (JDK 1.7 and above) */                                   \
8676
9098d4e927e1 7012648: move JSR 292 to package java.lang.invoke and adjust names
jrose
parents: 8675
diff changeset
   285
  template(java_lang_invoke_CallSite,                 "java/lang/invoke/CallSite")                \
10265
4c869854aebd 7071653: JSR 292: call site change notification should be pushed not pulled
twisti
parents: 9967
diff changeset
   286
  template(java_lang_invoke_ConstantCallSite,         "java/lang/invoke/ConstantCallSite")        \
19266
bb0324cbe0aa 7187554: JSR 292: JVMTI PopFrame needs to handle appendix arguments
sspitsyn
parents: 18946
diff changeset
   287
  template(java_lang_invoke_DirectMethodHandle,       "java/lang/invoke/DirectMethodHandle")      \
10265
4c869854aebd 7071653: JSR 292: call site change notification should be pushed not pulled
twisti
parents: 9967
diff changeset
   288
  template(java_lang_invoke_MutableCallSite,          "java/lang/invoke/MutableCallSite")         \
4c869854aebd 7071653: JSR 292: call site change notification should be pushed not pulled
twisti
parents: 9967
diff changeset
   289
  template(java_lang_invoke_VolatileCallSite,         "java/lang/invoke/VolatileCallSite")        \
8676
9098d4e927e1 7012648: move JSR 292 to package java.lang.invoke and adjust names
jrose
parents: 8675
diff changeset
   290
  template(java_lang_invoke_MethodHandle,             "java/lang/invoke/MethodHandle")            \
36819
bca375d368ed 8149644: Integrate VarHandles
psandoz
parents: 36559
diff changeset
   291
  template(java_lang_invoke_VarHandle,                "java/lang/invoke/VarHandle")               \
8676
9098d4e927e1 7012648: move JSR 292 to package java.lang.invoke and adjust names
jrose
parents: 8675
diff changeset
   292
  template(java_lang_invoke_MethodType,               "java/lang/invoke/MethodType")              \
9098d4e927e1 7012648: move JSR 292 to package java.lang.invoke and adjust names
jrose
parents: 8675
diff changeset
   293
  template(java_lang_invoke_MethodType_signature,     "Ljava/lang/invoke/MethodType;")            \
46505
fd4bc78630b1 8174749: Use hash table/oops for MemberName table
coleenp
parents: 45058
diff changeset
   294
  template(java_lang_invoke_ResolvedMethodName_signature, "Ljava/lang/invoke/ResolvedMethodName;")\
13391
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
   295
  template(java_lang_invoke_MemberName_signature,     "Ljava/lang/invoke/MemberName;")            \
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
   296
  template(java_lang_invoke_LambdaForm_signature,     "Ljava/lang/invoke/LambdaForm;")            \
8676
9098d4e927e1 7012648: move JSR 292 to package java.lang.invoke and adjust names
jrose
parents: 8675
diff changeset
   297
  template(java_lang_invoke_MethodHandle_signature,   "Ljava/lang/invoke/MethodHandle;")          \
2534
08dac9ce0cd7 6655638: dynamic languages need method handles
jrose
parents: 2348
diff changeset
   298
  /* internal classes known only to the JVM: */                                                   \
8676
9098d4e927e1 7012648: move JSR 292 to package java.lang.invoke and adjust names
jrose
parents: 8675
diff changeset
   299
  template(java_lang_invoke_MemberName,               "java/lang/invoke/MemberName")              \
46505
fd4bc78630b1 8174749: Use hash table/oops for MemberName table
coleenp
parents: 45058
diff changeset
   300
  template(java_lang_invoke_ResolvedMethodName,       "java/lang/invoke/ResolvedMethodName")      \
8676
9098d4e927e1 7012648: move JSR 292 to package java.lang.invoke and adjust names
jrose
parents: 8675
diff changeset
   301
  template(java_lang_invoke_MethodHandleNatives,      "java/lang/invoke/MethodHandleNatives")     \
31037
01a5c5fa5681 8079205: CallSite dependency tracking is broken after sun.misc.Cleaner became automatically cleared
vlivanov
parents: 30593
diff changeset
   302
  template(java_lang_invoke_MethodHandleNatives_CallSiteContext, "java/lang/invoke/MethodHandleNatives$CallSiteContext") \
13391
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
   303
  template(java_lang_invoke_LambdaForm,               "java/lang/invoke/LambdaForm")              \
31228
8e427370cdd1 8074551: GWT can be marked non-compilable due to deopt count pollution
vlivanov
parents: 31129
diff changeset
   304
  template(java_lang_invoke_InjectedProfile_signature, "Ljava/lang/invoke/InjectedProfile;")      \
13391
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
   305
  template(java_lang_invoke_LambdaForm_Compiled_signature, "Ljava/lang/invoke/LambdaForm$Compiled;") \
31037
01a5c5fa5681 8079205: CallSite dependency tracking is broken after sun.misc.Cleaner became automatically cleared
vlivanov
parents: 30593
diff changeset
   306
  template(java_lang_invoke_MethodHandleNatives_CallSiteContext_signature, "Ljava/lang/invoke/MethodHandleNatives$CallSiteContext;") \
8676
9098d4e927e1 7012648: move JSR 292 to package java.lang.invoke and adjust names
jrose
parents: 8675
diff changeset
   307
  /* internal up-calls made only by the JVM, via class sun.invoke.MethodHandleNatives: */         \
5420
586d3988e72b 6939134: JSR 292 adjustments to method handle invocation
jrose
parents: 5352
diff changeset
   308
  template(findMethodHandleType_name,                 "findMethodHandleType")                     \
8676
9098d4e927e1 7012648: move JSR 292 to package java.lang.invoke and adjust names
jrose
parents: 8675
diff changeset
   309
  template(findMethodHandleType_signature,       "(Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/invoke/MethodType;") \
48596
860326263d1f 8194963: SystemDictionary::link_method_handle_constant() can't link MethodHandle.invoke()/invokeExact()
vlivanov
parents: 48138
diff changeset
   310
  template(invokeExact_name,                          "invokeExact")                              \
5882
6b2aecc4f7d8 6939203: JSR 292 needs method handle constants
jrose
parents: 5547
diff changeset
   311
  template(linkMethodHandleConstant_name,             "linkMethodHandleConstant")                 \
8676
9098d4e927e1 7012648: move JSR 292 to package java.lang.invoke and adjust names
jrose
parents: 8675
diff changeset
   312
  template(linkMethodHandleConstant_signature, "(Ljava/lang/Class;ILjava/lang/Class;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/invoke/MethodHandle;") \
13391
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
   313
  template(linkMethod_name,                           "linkMethod")                               \
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
   314
  template(linkMethod_signature, "(Ljava/lang/Class;ILjava/lang/Class;Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/invoke/MemberName;") \
48826
c4d9d1b08e2e 8186209: Tool support for ConstantDynamic
psandoz
parents: 48637
diff changeset
   315
  template(linkDynamicConstant_name,                  "linkDynamicConstant")                      \
c4d9d1b08e2e 8186209: Tool support for ConstantDynamic
psandoz
parents: 48637
diff changeset
   316
  template(linkDynamicConstant_signature, "(Ljava/lang/Object;ILjava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;") \
13391
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
   317
  template(linkCallSite_name,                         "linkCallSite")                             \
48826
c4d9d1b08e2e 8186209: Tool support for ConstantDynamic
psandoz
parents: 48637
diff changeset
   318
  template(linkCallSite_signature, "(Ljava/lang/Object;ILjava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/invoke/MemberName;") \
10509
43d670e5701e 7079673: JSR 292: C1 should inline bytecoded method handle adapters
twisti
parents: 10265
diff changeset
   319
  template(setTargetNormal_name,                      "setTargetNormal")                          \
43d670e5701e 7079673: JSR 292: C1 should inline bytecoded method handle adapters
twisti
parents: 10265
diff changeset
   320
  template(setTargetVolatile_name,                    "setTargetVolatile")                        \
43d670e5701e 7079673: JSR 292: C1 should inline bytecoded method handle adapters
twisti
parents: 10265
diff changeset
   321
  template(setTarget_signature,                       "(Ljava/lang/invoke/MethodHandle;)V")       \
30296
95baefac8485 8057967: CallSite dependency tracking scales devastatingly poorly
vlivanov
parents: 30209
diff changeset
   322
  template(DEFAULT_CONTEXT_name,                      "DEFAULT_CONTEXT")                          \
10546
e79347eebbc5 7086585: make Java field injection more flexible
never
parents: 10514
diff changeset
   323
  NOT_LP64(  do_alias(intptr_signature,               int_signature)  )                           \
e79347eebbc5 7086585: make Java field injection more flexible
never
parents: 10514
diff changeset
   324
  LP64_ONLY( do_alias(intptr_signature,               long_signature) )                           \
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 32581
diff changeset
   325
                                                                                                                                      \
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 32581
diff changeset
   326
  /* Support for JVMCI */                                                                                                             \
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 32581
diff changeset
   327
  JVMCI_VM_SYMBOLS_DO(template, do_alias)                                                         \
28912
27fac2f8fdbe 8063137: Never-taken branches should be pruned when GWT LambdaForms are shared
vlivanov
parents: 28510
diff changeset
   328
                                                                                                  \
34280
72bfaaffee36 8143911: Reintegrate JEP 259: Stack-Walking API
mchung
parents: 34274
diff changeset
   329
  template(java_lang_StackWalker,                     "java/lang/StackWalker")                    \
72bfaaffee36 8143911: Reintegrate JEP 259: Stack-Walking API
mchung
parents: 34274
diff changeset
   330
  template(java_lang_StackFrameInfo,                  "java/lang/StackFrameInfo")                 \
72bfaaffee36 8143911: Reintegrate JEP 259: Stack-Walking API
mchung
parents: 34274
diff changeset
   331
  template(java_lang_LiveStackFrameInfo,              "java/lang/LiveStackFrameInfo")             \
72bfaaffee36 8143911: Reintegrate JEP 259: Stack-Walking API
mchung
parents: 34274
diff changeset
   332
  template(java_lang_StackStreamFactory_AbstractStackWalker, "java/lang/StackStreamFactory$AbstractStackWalker") \
72bfaaffee36 8143911: Reintegrate JEP 259: Stack-Walking API
mchung
parents: 34274
diff changeset
   333
  template(doStackWalk_signature,                     "(JIIII)Ljava/lang/Object;")                \
72bfaaffee36 8143911: Reintegrate JEP 259: Stack-Walking API
mchung
parents: 34274
diff changeset
   334
  template(asPrimitive_name,                          "asPrimitive")                              \
43677
5228814c1da2 8156073: 2-slot LiveStackFrame locals (long and double) are incorrect
bchristi
parents: 42647
diff changeset
   335
  template(asPrimitive_int_signature,                 "(I)Ljava/lang/LiveStackFrame$PrimitiveSlot;") \
5228814c1da2 8156073: 2-slot LiveStackFrame locals (long and double) are incorrect
bchristi
parents: 42647
diff changeset
   336
  template(asPrimitive_long_signature,                "(J)Ljava/lang/LiveStackFrame$PrimitiveSlot;") \
34280
72bfaaffee36 8143911: Reintegrate JEP 259: Stack-Walking API
mchung
parents: 34274
diff changeset
   337
                                                                                                  \
2534
08dac9ce0cd7 6655638: dynamic languages need method handles
jrose
parents: 2348
diff changeset
   338
  /* common method and field names */                                                             \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   339
  template(object_initializer_name,                   "<init>")                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   340
  template(class_initializer_name,                    "<clinit>")                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   341
  template(println_name,                              "println")                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   342
  template(printStackTrace_name,                      "printStackTrace")                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   343
  template(main_name,                                 "main")                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   344
  template(name_name,                                 "name")                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   345
  template(priority_name,                             "priority")                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   346
  template(stillborn_name,                            "stillborn")                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   347
  template(group_name,                                "group")                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   348
  template(daemon_name,                               "daemon")                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   349
  template(run_method_name,                           "run")                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   350
  template(exit_method_name,                          "exit")                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   351
  template(add_method_name,                           "add")                                      \
11760
078e0412bcb2 7131006: java/lang/management/ThreadMXBean/ThreadLists.java
minqi
parents: 11441
diff changeset
   352
  template(remove_method_name,                        "remove")                                   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   353
  template(parent_name,                               "parent")                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   354
  template(threads_name,                              "threads")                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   355
  template(groups_name,                               "groups")                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   356
  template(maxPriority_name,                          "maxPriority")                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   357
  template(destroyed_name,                            "destroyed")                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   358
  template(nthreads_name,                             "nthreads")                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   359
  template(ngroups_name,                              "ngroups")                                  \
54669
ad45b3802d4e 8220623: [JVMCI] Update JVMCI to support JVMCI based Compiler compiled into shared library
kvn
parents: 54439
diff changeset
   360
  template(shutdown_name,                             "shutdown")                                 \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   361
  template(finalize_method_name,                      "finalize")                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   362
  template(reference_lock_name,                       "lock")                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   363
  template(reference_discovered_name,                 "discovered")                               \
11441
a89f443814cd 7120511: Add diagnostic commands
fparain
parents: 10567
diff changeset
   364
  template(run_finalization_name,                     "runFinalization")                          \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   365
  template(dispatchUncaughtException_name,            "dispatchUncaughtException")                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   366
  template(loadClass_name,                            "loadClass")                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   367
  template(get_name,                                  "get")                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   368
  template(put_name,                                  "put")                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   369
  template(type_name,                                 "type")                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   370
  template(findNative_name,                           "findNative")                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   371
  template(deadChild_name,                            "deadChild")                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   372
  template(getFromClass_name,                         "getFromClass")                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   373
  template(dispatch_name,                             "dispatch")                                 \
47614
0ecfd6c951a6 8185694: Replace SystemDictionaryShared::_java_platform_loader with SystemDictionary::is_platform_class_loader()
ccheung
parents: 47587
diff changeset
   374
  template(getPlatformClassLoader_name,               "getPlatformClassLoader")                   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   375
  template(getSystemClassLoader_name,                 "getSystemClassLoader")                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   376
  template(fillInStackTrace_name,                     "fillInStackTrace")                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   377
  template(getCause_name,                             "getCause")                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   378
  template(initCause_name,                            "initCause")                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   379
  template(getProperty_name,                          "getProperty")                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   380
  template(context_name,                              "context")                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   381
  template(contextClassLoader_name,                   "contextClassLoader")                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   382
  template(inheritedAccessControlContext_name,        "inheritedAccessControlContext")            \
16617
6235d2c7549f 7198429: need checked categorization of caller-sensitive methods in the JDK
twisti
parents: 15436
diff changeset
   383
  template(getClassContext_name,                      "getClassContext")                          \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   384
  template(wait_name,                                 "wait")                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   385
  template(checkPackageAccess_name,                   "checkPackageAccess")                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   386
  template(newInstance0_name,                         "newInstance0")                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   387
  template(forName_name,                              "forName")                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   388
  template(forName0_name,                             "forName0")                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   389
  template(isJavaIdentifierStart_name,                "isJavaIdentifierStart")                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   390
  template(isJavaIdentifierPart_name,                 "isJavaIdentifierPart")                     \
190
e9a0a9dcd4f6 6395208: Elide autoboxing for calls to HashMap.get(int) and HashMap.get(long)
never
parents: 1
diff changeset
   391
  template(cache_field_name,                          "cache")                                    \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   392
  template(value_name,                                "value")                                    \
33628
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   393
  template(compact_strings_name,                      "COMPACT_STRINGS")                          \
2862
fad636edf18f 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 2570
diff changeset
   394
  template(numberOfLeadingZeros_name,                 "numberOfLeadingZeros")                     \
fad636edf18f 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 2570
diff changeset
   395
  template(numberOfTrailingZeros_name,                "numberOfTrailingZeros")                    \
2255
54abdf3e1055 6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents: 1890
diff changeset
   396
  template(bitCount_name,                             "bitCount")                                 \
2342
9a1260c3679d 6821700: tune VM flags for peak performance
kvn
parents: 2336
diff changeset
   397
  template(profile_name,                              "profile")                                  \
2348
4e71ed4c2709 6761600: Use sse 4.2 in intrinsics
cfang
parents: 2343
diff changeset
   398
  template(equals_name,                               "equals")                                   \
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 32581
diff changeset
   399
  template(length_name,                               "length")                                   \
2570
ecc7862946d4 6655646: dynamic languages need dynamically linked call sites
jrose
parents: 2534
diff changeset
   400
  template(target_name,                               "target")                                   \
2534
08dac9ce0cd7 6655638: dynamic languages need method handles
jrose
parents: 2348
diff changeset
   401
  template(toString_name,                             "toString")                                 \
08dac9ce0cd7 6655638: dynamic languages need method handles
jrose
parents: 2348
diff changeset
   402
  template(values_name,                               "values")                                   \
08dac9ce0cd7 6655638: dynamic languages need method handles
jrose
parents: 2348
diff changeset
   403
  template(receiver_name,                             "receiver")                                 \
08dac9ce0cd7 6655638: dynamic languages need method handles
jrose
parents: 2348
diff changeset
   404
  template(vmtarget_name,                             "vmtarget")                                 \
46505
fd4bc78630b1 8174749: Use hash table/oops for MemberName table
coleenp
parents: 45058
diff changeset
   405
  template(vmholder_name,                             "vmholder")                                 \
fd4bc78630b1 8174749: Use hash table/oops for MemberName table
coleenp
parents: 45058
diff changeset
   406
  template(method_name,                               "method")                                   \
13391
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
   407
  template(vmindex_name,                              "vmindex")                                  \
10514
e229a19078cf 7071307: MethodHandle bimorphic inlining should consider the frequency
never
parents: 10509
diff changeset
   408
  template(vmcount_name,                              "vmcount")                                  \
2534
08dac9ce0cd7 6655638: dynamic languages need method handles
jrose
parents: 2348
diff changeset
   409
  template(flags_name,                                "flags")                                    \
13391
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
   410
  template(basicType_name,                            "basicType")                                \
4450
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
   411
  template(append_name,                               "append")                                   \
10546
e79347eebbc5 7086585: make Java field injection more flexible
never
parents: 10514
diff changeset
   412
  template(klass_name,                                "klass")                                    \
e79347eebbc5 7086585: make Java field injection more flexible
never
parents: 10514
diff changeset
   413
  template(array_klass_name,                          "array_klass")                              \
34280
72bfaaffee36 8143911: Reintegrate JEP 259: Stack-Walking API
mchung
parents: 34274
diff changeset
   414
  template(mid_name,                                  "mid")                                      \
72bfaaffee36 8143911: Reintegrate JEP 259: Stack-Walking API
mchung
parents: 34274
diff changeset
   415
  template(cpref_name,                                "cpref")                                    \
72bfaaffee36 8143911: Reintegrate JEP 259: Stack-Walking API
mchung
parents: 34274
diff changeset
   416
  template(version_name,                              "version")                                  \
72bfaaffee36 8143911: Reintegrate JEP 259: Stack-Walking API
mchung
parents: 34274
diff changeset
   417
  template(methodName_name,                           "methodName")                               \
72bfaaffee36 8143911: Reintegrate JEP 259: Stack-Walking API
mchung
parents: 34274
diff changeset
   418
  template(fileName_name,                             "fileName")                                 \
72bfaaffee36 8143911: Reintegrate JEP 259: Stack-Walking API
mchung
parents: 34274
diff changeset
   419
  template(lineNumber_name,                           "lineNumber")                               \
10546
e79347eebbc5 7086585: make Java field injection more flexible
never
parents: 10514
diff changeset
   420
  template(oop_size_name,                             "oop_size")                                 \
e79347eebbc5 7086585: make Java field injection more flexible
never
parents: 10514
diff changeset
   421
  template(static_oop_field_count_name,               "static_oop_field_count")                   \
17826
9ad5cd464a75 8003421: NPG: Move oops out of InstanceKlass into mirror
coleenp
parents: 17385
diff changeset
   422
  template(protection_domain_name,                    "protection_domain")                        \
9ad5cd464a75 8003421: NPG: Move oops out of InstanceKlass into mirror
coleenp
parents: 17385
diff changeset
   423
  template(signers_name,                              "signers_name")                             \
53274
cf80666df79a 8216308: StackTraceElement::fill_in can use injected Class source-file
shade
parents: 53244
diff changeset
   424
  template(source_file_name,                          "source_file")                              \
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 13396
diff changeset
   425
  template(loader_data_name,                          "loader_data")                              \
31037
01a5c5fa5681 8079205: CallSite dependency tracking is broken after sun.misc.Cleaner became automatically cleared
vlivanov
parents: 30593
diff changeset
   426
  template(vmdependencies_name,                       "vmdependencies")                           \
52781
436097b038a1 8213565: Crash in DependencyContext::remove_dependent_nmethod
eosterlund
parents: 52431
diff changeset
   427
  template(last_cleanup_name,                         "last_cleanup")                             \
36508
5f9eee6b383b 8142968: Module System implementation
alanb
parents: 36405
diff changeset
   428
  template(loader_name,                               "loader")                                   \
5f9eee6b383b 8142968: Module System implementation
alanb
parents: 36405
diff changeset
   429
  template(getModule_name,                            "getModule")                                \
26135
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25465
diff changeset
   430
  template(input_stream_void_signature,               "(Ljava/io/InputStream;)V")                 \
48619
1703d83b3ffe 8058259: compute_offset() is confusing for static fields
coleenp
parents: 48356
diff changeset
   431
  template(input_stream_signature,                    "Ljava/io/InputStream;")                    \
1703d83b3ffe 8058259: compute_offset() is confusing for static fields
coleenp
parents: 48356
diff changeset
   432
  template(print_stream_signature,                    "Ljava/io/PrintStream;")                    \
1703d83b3ffe 8058259: compute_offset() is confusing for static fields
coleenp
parents: 48356
diff changeset
   433
  template(security_manager_signature,                "Ljava/lang/SecurityManager;")              \
36508
5f9eee6b383b 8142968: Module System implementation
alanb
parents: 36405
diff changeset
   434
  template(definePackage_name,                        "definePackage")                            \
44520
0553e129e0ec 8177530: Module system implementation refresh (4/2017)
alanb
parents: 44326
diff changeset
   435
  template(definePackage_signature,                   "(Ljava/lang/String;Ljava/lang/Module;)Ljava/lang/Package;") \
36508
5f9eee6b383b 8142968: Module System implementation
alanb
parents: 36405
diff changeset
   436
  template(defineOrCheckPackage_name,                 "defineOrCheckPackage")                     \
5f9eee6b383b 8142968: Module System implementation
alanb
parents: 36405
diff changeset
   437
  template(defineOrCheckPackage_signature,            "(Ljava/lang/String;Ljava/util/jar/Manifest;Ljava/net/URL;)Ljava/lang/Package;") \
5f9eee6b383b 8142968: Module System implementation
alanb
parents: 36405
diff changeset
   438
  template(fileToEncodedURL_name,                     "fileToEncodedURL")                         \
5f9eee6b383b 8142968: Module System implementation
alanb
parents: 36405
diff changeset
   439
  template(fileToEncodedURL_signature,                "(Ljava/io/File;)Ljava/net/URL;")           \
26135
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25465
diff changeset
   440
  template(getProtectionDomain_name,                  "getProtectionDomain")                      \
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25465
diff changeset
   441
  template(getProtectionDomain_signature,             "(Ljava/security/CodeSource;)Ljava/security/ProtectionDomain;") \
51388
0dcd27526967 8209120: Archive the Integer.IntegerCache
redestad
parents: 51371
diff changeset
   442
  template(java_lang_Integer_array_signature,         "[Ljava/lang/Integer;")                     \
55159
a38132298eda 8223320: [AOT] jck test api/javax_script/ScriptEngine/PutGet.html fails when test classes are AOTed
iveresov
parents: 55115
diff changeset
   443
  template(java_lang_Long_array_signature,            "[Ljava/lang/Long;")                        \
a38132298eda 8223320: [AOT] jck test api/javax_script/ScriptEngine/PutGet.html fails when test classes are AOTed
iveresov
parents: 55115
diff changeset
   444
  template(java_lang_Character_array_signature,       "[Ljava/lang/Character;")                   \
a38132298eda 8223320: [AOT] jck test api/javax_script/ScriptEngine/PutGet.html fails when test classes are AOTed
iveresov
parents: 55115
diff changeset
   445
  template(java_lang_Short_array_signature,           "[Ljava/lang/Short;")                       \
a38132298eda 8223320: [AOT] jck test api/javax_script/ScriptEngine/PutGet.html fails when test classes are AOTed
iveresov
parents: 55115
diff changeset
   446
  template(java_lang_Byte_array_signature,            "[Ljava/lang/Byte;")                        \
a38132298eda 8223320: [AOT] jck test api/javax_script/ScriptEngine/PutGet.html fails when test classes are AOTed
iveresov
parents: 55115
diff changeset
   447
  template(java_lang_Boolean_signature,               "Ljava/lang/Boolean;")                      \
26135
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25465
diff changeset
   448
  template(url_code_signer_array_void_signature,      "(Ljava/net/URL;[Ljava/security/CodeSigner;)V") \
36508
5f9eee6b383b 8142968: Module System implementation
alanb
parents: 36405
diff changeset
   449
  template(module_entry_name,                         "module_entry")                             \
47532
d8e417df3468 8081323: ConstantPool::_resolved_references is missing in heap dump
coleenp
parents: 47216
diff changeset
   450
  template(resolved_references_name,                  "<resolved_references>")                    \
d8e417df3468 8081323: ConstantPool::_resolved_references is missing in heap dump
coleenp
parents: 47216
diff changeset
   451
  template(init_lock_name,                            "<init_lock>")                              \
54439
d9b46b7de028 8221477: Inject os/cpu-specific constants into Unsafe from JVM
adinn
parents: 54347
diff changeset
   452
  template(address_size_name,                         "ADDRESS_SIZE0")                            \
d9b46b7de028 8221477: Inject os/cpu-specific constants into Unsafe from JVM
adinn
parents: 54347
diff changeset
   453
  template(page_size_name,                            "PAGE_SIZE")                                \
d9b46b7de028 8221477: Inject os/cpu-specific constants into Unsafe from JVM
adinn
parents: 54347
diff changeset
   454
  template(big_endian_name,                           "BIG_ENDIAN")                               \
d9b46b7de028 8221477: Inject os/cpu-specific constants into Unsafe from JVM
adinn
parents: 54347
diff changeset
   455
  template(use_unaligned_access_name,                 "UNALIGNED_ACCESS")                         \
57804
9b7b9f16dfd9 8224974: Implement JEP 352
adinn
parents: 57786
diff changeset
   456
  template(data_cache_line_flush_size_name,           "DATA_CACHE_LINE_FLUSH_SIZE")               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   457
                                                                                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   458
  /* name symbols needed by intrinsics */                                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   459
  VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, template, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   460
                                                                                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   461
  /* common signatures names */                                                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   462
  template(void_method_signature,                     "()V")                                      \
4562
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
   463
  template(void_boolean_signature,                    "()Z")                                      \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
   464
  template(void_byte_signature,                       "()B")                                      \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
   465
  template(void_char_signature,                       "()C")                                      \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
   466
  template(void_short_signature,                      "()S")                                      \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   467
  template(void_int_signature,                        "()I")                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   468
  template(void_long_signature,                       "()J")                                      \
4562
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
   469
  template(void_float_signature,                      "()F")                                      \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
   470
  template(void_double_signature,                     "()D")                                      \
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 32581
diff changeset
   471
  template(bool_void_signature,                       "(Z)V")                                     \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   472
  template(int_void_signature,                        "(I)V")                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   473
  template(int_int_signature,                         "(I)I")                                     \
5352
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents: 4573
diff changeset
   474
  template(char_char_signature,                       "(C)C")                                     \
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents: 4573
diff changeset
   475
  template(short_short_signature,                     "(S)S")                                     \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   476
  template(int_bool_signature,                        "(I)Z")                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   477
  template(float_int_signature,                       "(F)I")                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   478
  template(double_long_signature,                     "(D)J")                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   479
  template(double_double_signature,                   "(D)D")                                     \
54750
1851a532ddfe 8222074: Enhance auto vectorization for x86
sviswanathan
parents: 54669
diff changeset
   480
  template(float_float_signature,                     "(F)F")                                     \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   481
  template(int_float_signature,                       "(I)F")                                     \
2255
54abdf3e1055 6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents: 1890
diff changeset
   482
  template(long_int_signature,                        "(J)I")                                     \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   483
  template(long_long_signature,                       "(J)J")                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   484
  template(long_double_signature,                     "(J)D")                                     \
57804
9b7b9f16dfd9 8224974: Implement JEP 352
adinn
parents: 57786
diff changeset
   485
  template(long_void_signature,                       "(J)V")                                     \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   486
  template(byte_signature,                            "B")                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   487
  template(char_signature,                            "C")                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   488
  template(double_signature,                          "D")                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   489
  template(float_signature,                           "F")                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   490
  template(int_signature,                             "I")                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   491
  template(long_signature,                            "J")                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   492
  template(short_signature,                           "S")                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   493
  template(bool_signature,                            "Z")                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   494
  template(void_signature,                            "V")                                        \
48619
1703d83b3ffe 8058259: compute_offset() is confusing for static fields
coleenp
parents: 48356
diff changeset
   495
  template(bool_array_signature,                      "[Z")                                       \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   496
  template(byte_array_signature,                      "[B")                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   497
  template(char_array_signature,                      "[C")                                       \
9630
d6419e4395e3 6939861: JVM should handle more conversion operations
never
parents: 9187
diff changeset
   498
  template(int_array_signature,                       "[I")                                       \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   499
  template(object_void_signature,                     "(Ljava/lang/Object;)V")                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   500
  template(object_int_signature,                      "(Ljava/lang/Object;)I")                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   501
  template(object_boolean_signature,                  "(Ljava/lang/Object;)Z")                    \
27450
603dbcf4f547 8054492: Casting can result in redundant null checks in generated code
kvn
parents: 26442
diff changeset
   502
  template(object_object_signature,                   "(Ljava/lang/Object;)Ljava/lang/Object;")   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   503
  template(string_void_signature,                     "(Ljava/lang/String;)V")                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   504
  template(string_int_signature,                      "(Ljava/lang/String;)I")                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   505
  template(throwable_void_signature,                  "(Ljava/lang/Throwable;)V")                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   506
  template(void_throwable_signature,                  "()Ljava/lang/Throwable;")                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   507
  template(throwable_throwable_signature,             "(Ljava/lang/Throwable;)Ljava/lang/Throwable;")             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   508
  template(class_void_signature,                      "(Ljava/lang/Class;)V")                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   509
  template(class_int_signature,                       "(Ljava/lang/Class;)I")                     \
12377
ae6def2813e0 7160570: Intrinsification support for tracing framework
rbackman
parents: 11953
diff changeset
   510
  template(class_long_signature,                      "(Ljava/lang/Class;)J")                     \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   511
  template(class_boolean_signature,                   "(Ljava/lang/Class;)Z")                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   512
  template(throwable_string_void_signature,           "(Ljava/lang/Throwable;Ljava/lang/String;)V")               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   513
  template(string_array_void_signature,               "([Ljava/lang/String;)V")                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   514
  template(string_array_string_array_void_signature,  "([Ljava/lang/String;[Ljava/lang/String;)V")                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   515
  template(thread_throwable_void_signature,           "(Ljava/lang/Thread;Ljava/lang/Throwable;)V")               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   516
  template(thread_void_signature,                     "(Ljava/lang/Thread;)V")                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   517
  template(threadgroup_runnable_void_signature,       "(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;)V")           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   518
  template(threadgroup_string_void_signature,         "(Ljava/lang/ThreadGroup;Ljava/lang/String;)V")             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   519
  template(string_class_signature,                    "(Ljava/lang/String;)Ljava/lang/Class;")                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   520
  template(object_object_object_signature,            "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;") \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   521
  template(string_string_string_signature,            "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;") \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   522
  template(string_string_signature,                   "(Ljava/lang/String;)Ljava/lang/String;")                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   523
  template(classloader_string_long_signature,         "(Ljava/lang/ClassLoader;Ljava/lang/String;)J")             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   524
  template(byte_array_void_signature,                 "([B)V")                                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   525
  template(char_array_void_signature,                 "([C)V")                                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   526
  template(int_int_void_signature,                    "(II)V")                                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   527
  template(long_long_void_signature,                  "(JJ)V")                                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   528
  template(void_classloader_signature,                "()Ljava/lang/ClassLoader;")                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   529
  template(void_object_signature,                     "()Ljava/lang/Object;")                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   530
  template(void_class_signature,                      "()Ljava/lang/Class;")                                      \
16617
6235d2c7549f 7198429: need checked categorization of caller-sensitive methods in the JDK
twisti
parents: 15436
diff changeset
   531
  template(void_class_array_signature,                "()[Ljava/lang/Class;")                                     \
5420
586d3988e72b 6939134: JSR 292 adjustments to method handle invocation
jrose
parents: 5352
diff changeset
   532
  template(void_string_signature,                     "()Ljava/lang/String;")                                     \
44520
0553e129e0ec 8177530: Module system implementation refresh (4/2017)
alanb
parents: 44326
diff changeset
   533
  template(void_module_signature,                     "()Ljava/lang/Module;")                                     \
5420
586d3988e72b 6939134: JSR 292 adjustments to method handle invocation
jrose
parents: 5352
diff changeset
   534
  template(object_array_object_signature,             "([Ljava/lang/Object;)Ljava/lang/Object;")                  \
586d3988e72b 6939134: JSR 292 adjustments to method handle invocation
jrose
parents: 5352
diff changeset
   535
  template(object_object_array_object_signature,      "(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;")\
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   536
  template(exception_void_signature,                  "(Ljava/lang/Exception;)V")                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   537
  template(protectiondomain_signature,                "[Ljava/security/ProtectionDomain;")                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   538
  template(accesscontrolcontext_signature,            "Ljava/security/AccessControlContext;")                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   539
  template(class_protectiondomain_signature,          "(Ljava/lang/Class;Ljava/security/ProtectionDomain;)V")     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   540
  template(thread_signature,                          "Ljava/lang/Thread;")                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   541
  template(thread_array_signature,                    "[Ljava/lang/Thread;")                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   542
  template(threadgroup_signature,                     "Ljava/lang/ThreadGroup;")                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   543
  template(threadgroup_array_signature,               "[Ljava/lang/ThreadGroup;")                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   544
  template(class_array_signature,                     "[Ljava/lang/Class;")                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   545
  template(classloader_signature,                     "Ljava/lang/ClassLoader;")                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   546
  template(object_signature,                          "Ljava/lang/Object;")                                       \
34280
72bfaaffee36 8143911: Reintegrate JEP 259: Stack-Walking API
mchung
parents: 34274
diff changeset
   547
  template(object_array_signature,                    "[Ljava/lang/Object;")                                      \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   548
  template(class_signature,                           "Ljava/lang/Class;")                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   549
  template(string_signature,                          "Ljava/lang/String;")                                       \
48619
1703d83b3ffe 8058259: compute_offset() is confusing for static fields
coleenp
parents: 48356
diff changeset
   550
  template(string_array_signature,                    "[Ljava/lang/String;")                                      \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   551
  template(reference_signature,                       "Ljava/lang/ref/Reference;")                                \
15102
0a86564e5f61 8004728: Add hotspot support for parameter reflection
coleenp
parents: 15098
diff changeset
   552
  template(executable_signature,                      "Ljava/lang/reflect/Executable;")                           \
44520
0553e129e0ec 8177530: Module system implementation refresh (4/2017)
alanb
parents: 44326
diff changeset
   553
  template(module_signature,                          "Ljava/lang/Module;")                                       \
1890
9ce941df84eb 4670071: loadClassInternal is too restrictive.
acorn
parents: 670
diff changeset
   554
  template(concurrenthashmap_signature,               "Ljava/util/concurrent/ConcurrentHashMap;")                 \
4450
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
   555
  template(String_StringBuilder_signature,            "(Ljava/lang/String;)Ljava/lang/StringBuilder;")            \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
   556
  template(int_StringBuilder_signature,               "(I)Ljava/lang/StringBuilder;")                             \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
   557
  template(char_StringBuilder_signature,              "(C)Ljava/lang/StringBuilder;")                             \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
   558
  template(String_StringBuffer_signature,             "(Ljava/lang/String;)Ljava/lang/StringBuffer;")             \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
   559
  template(int_StringBuffer_signature,                "(I)Ljava/lang/StringBuffer;")                              \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
   560
  template(char_StringBuffer_signature,               "(C)Ljava/lang/StringBuffer;")                              \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
   561
  template(int_String_signature,                      "(I)Ljava/lang/String;")                                    \
44326
6c59cca7ff07 8174823: Module system implementation refresh (3/2017)
alanb
parents: 43684
diff changeset
   562
  template(boolean_boolean_int_signature,             "(ZZ)I")                                                    \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   563
  /* signature symbols needed by intrinsics */                                                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   564
  VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, template, VM_ALIAS_IGNORE)            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   565
                                                                                                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   566
  /* symbol aliases needed by intrinsics */                                                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   567
  VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, do_alias)           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   568
                                                                                                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   569
  /* returned by the C1 compiler in case there's not enough memory to allocate a new symbol*/                     \
8076
96d498ec7ae1 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 7900
diff changeset
   570
  template(dummy_symbol,                              "illegal symbol")                                           \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   571
                                                                                                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   572
  /* used by ClassFormatError when class name is not known yet */                                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   573
  template(unknown_class_name,                        "<Unknown>")                                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   574
                                                                                                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   575
  /* JVM monitoring and management support */                                                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   576
  template(java_lang_StackTraceElement_array,          "[Ljava/lang/StackTraceElement;")                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   577
  template(java_lang_management_ThreadState,           "java/lang/management/ThreadState")                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   578
  template(java_lang_management_MemoryUsage,           "java/lang/management/MemoryUsage")                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   579
  template(java_lang_management_ThreadInfo,            "java/lang/management/ThreadInfo")                         \
43400
cc18486e399f 8173608: Separate JDK management agent from java.management module
mchung
parents: 42647
diff changeset
   580
  template(jdk_internal_agent_Agent,                   "jdk/internal/agent/Agent")                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   581
  template(sun_management_Sensor,                      "sun/management/Sensor")                                   \
43400
cc18486e399f 8173608: Separate JDK management agent from java.management module
mchung
parents: 42647
diff changeset
   582
  template(sun_management_ManagementFactoryHelper,     "sun/management/ManagementFactoryHelper")                  \
30247
9925b07bba5b 8042901: Allow com.sun.management to be in a different module to java.lang.management
sjiang
parents: 30134
diff changeset
   583
  template(com_sun_management_internal_DiagnosticCommandImpl,  "com/sun/management/internal/DiagnosticCommandImpl")     \
9925b07bba5b 8042901: Allow com.sun.management to be in a different module to java.lang.management
sjiang
parents: 30134
diff changeset
   584
  template(com_sun_management_internal_GarbageCollectorExtImpl,"com/sun/management/internal/GarbageCollectorExtImpl")   \
17296
68557efd8583 8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents: 16617
diff changeset
   585
  template(getDiagnosticCommandMBean_name,             "getDiagnosticCommandMBean")                               \
68557efd8583 8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents: 16617
diff changeset
   586
  template(getDiagnosticCommandMBean_signature,        "()Lcom/sun/management/DiagnosticCommandMBean;")           \
9623
151c0b638488 7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents: 9187
diff changeset
   587
  template(getGcInfoBuilder_name,                      "getGcInfoBuilder")                                        \
30247
9925b07bba5b 8042901: Allow com.sun.management to be in a different module to java.lang.management
sjiang
parents: 30134
diff changeset
   588
  template(getGcInfoBuilder_signature,                 "()Lcom/sun/management/internal/GcInfoBuilder;")           \
9623
151c0b638488 7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents: 9187
diff changeset
   589
  template(com_sun_management_GcInfo,                  "com/sun/management/GcInfo")                               \
30247
9925b07bba5b 8042901: Allow com.sun.management to be in a different module to java.lang.management
sjiang
parents: 30134
diff changeset
   590
  template(com_sun_management_GcInfo_constructor_signature, "(Lcom/sun/management/internal/GcInfoBuilder;JJJ[Ljava/lang/management/MemoryUsage;[Ljava/lang/management/MemoryUsage;[Ljava/lang/Object;)V") \
9623
151c0b638488 7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents: 9187
diff changeset
   591
  template(createGCNotification_name,                  "createGCNotification")                                    \
151c0b638488 7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents: 9187
diff changeset
   592
  template(createGCNotification_signature,             "(JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/sun/management/GcInfo;)V") \
17296
68557efd8583 8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents: 16617
diff changeset
   593
  template(createDiagnosticFrameworkNotification_name, "createDiagnosticFrameworkNotification")                   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   594
  template(createMemoryPoolMBean_name,                 "createMemoryPoolMBean")                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   595
  template(createMemoryManagerMBean_name,              "createMemoryManagerMBean")                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   596
  template(createGarbageCollectorMBean_name,           "createGarbageCollectorMBean")                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   597
  template(createMemoryPoolMBean_signature,            "(Ljava/lang/String;ZJJ)Ljava/lang/management/MemoryPoolMBean;") \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   598
  template(createMemoryManagerMBean_signature,         "(Ljava/lang/String;)Ljava/lang/management/MemoryManagerMBean;") \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   599
  template(createGarbageCollectorMBean_signature,      "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/management/GarbageCollectorMBean;") \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   600
  template(trigger_name,                               "trigger")                                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   601
  template(clear_name,                                 "clear")                                                   \
30296
95baefac8485 8057967: CallSite dependency tracking scales devastatingly poorly
vlivanov
parents: 30209
diff changeset
   602
  template(trigger_method_signature,                   "(ILjava/lang/management/MemoryUsage;)V")                  \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   603
  template(startAgent_name,                            "startAgent")                                              \
11953
d06edd28ba62 7110104: It should be possible to stop and start JMX Agent at runtime
dsamersoff
parents: 11760
diff changeset
   604
  template(startRemoteAgent_name,                      "startRemoteManagementAgent")                              \
d06edd28ba62 7110104: It should be possible to stop and start JMX Agent at runtime
dsamersoff
parents: 11760
diff changeset
   605
  template(startLocalAgent_name,                       "startLocalManagementAgent")                               \
d06edd28ba62 7110104: It should be possible to stop and start JMX Agent at runtime
dsamersoff
parents: 11760
diff changeset
   606
  template(stopRemoteAgent_name,                       "stopRemoteManagementAgent")                               \
30134
ecd7b08105e9 8023093: Add ManagementAgent.status diagnostic command
jbachorik
parents: 28957
diff changeset
   607
  template(getAgentStatus_name,                        "getManagementAgentStatus")                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   608
  template(java_lang_management_ThreadInfo_constructor_signature, "(Ljava/lang/Thread;ILjava/lang/Object;Ljava/lang/Thread;JJJJ[Ljava/lang/StackTraceElement;)V") \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   609
  template(java_lang_management_ThreadInfo_with_locks_constructor_signature, "(Ljava/lang/Thread;ILjava/lang/Object;Ljava/lang/Thread;JJJJ[Ljava/lang/StackTraceElement;[Ljava/lang/Object;[I[Ljava/lang/Object;)V") \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   610
  template(long_long_long_long_void_signature,         "(JJJJ)V")                                                 \
32072
bc13add2c295 8059036: Implement Diagnostic Commands for heap and finalizerinfo
dsamersoff
parents: 31867
diff changeset
   611
  template(finalizer_histogram_klass,                  "java/lang/ref/FinalizerHistogram")                        \
bc13add2c295 8059036: Implement Diagnostic Commands for heap and finalizerinfo
dsamersoff
parents: 31867
diff changeset
   612
  template(void_finalizer_histogram_entry_array_signature,  "()[Ljava/lang/ref/FinalizerHistogram$Entry;")                        \
bc13add2c295 8059036: Implement Diagnostic Commands for heap and finalizerinfo
dsamersoff
parents: 31867
diff changeset
   613
  template(get_finalizer_histogram_name,               "getFinalizerHistogram")                                   \
bc13add2c295 8059036: Implement Diagnostic Commands for heap and finalizerinfo
dsamersoff
parents: 31867
diff changeset
   614
  template(finalizer_histogram_entry_name_field,       "className")                                               \
bc13add2c295 8059036: Implement Diagnostic Commands for heap and finalizerinfo
dsamersoff
parents: 31867
diff changeset
   615
  template(finalizer_histogram_entry_count_field,      "instanceCount")                                           \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   616
                                                                                                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   617
  template(java_lang_management_MemoryPoolMXBean,      "java/lang/management/MemoryPoolMXBean")                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   618
  template(java_lang_management_MemoryManagerMXBean,   "java/lang/management/MemoryManagerMXBean")                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   619
  template(java_lang_management_GarbageCollectorMXBean,"java/lang/management/GarbageCollectorMXBean")             \
9623
151c0b638488 7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents: 9187
diff changeset
   620
  template(gcInfoBuilder_name,                         "gcInfoBuilder")                                           \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   621
  template(createMemoryPool_name,                      "createMemoryPool")                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   622
  template(createMemoryManager_name,                   "createMemoryManager")                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   623
  template(createGarbageCollector_name,                "createGarbageCollector")                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   624
  template(createMemoryPool_signature,                 "(Ljava/lang/String;ZJJ)Ljava/lang/management/MemoryPoolMXBean;") \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   625
  template(createMemoryManager_signature,              "(Ljava/lang/String;)Ljava/lang/management/MemoryManagerMXBean;") \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   626
  template(createGarbageCollector_signature,           "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/management/GarbageCollectorMXBean;") \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   627
  template(addThreadDumpForMonitors_name,              "addThreadDumpForMonitors")                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   628
  template(addThreadDumpForSynchronizers_name,         "addThreadDumpForSynchronizers")                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   629
  template(addThreadDumpForMonitors_signature,         "(Ljava/lang/management/ThreadInfo;[Ljava/lang/Object;[I)V") \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   630
  template(addThreadDumpForSynchronizers_signature,    "(Ljava/lang/management/ThreadInfo;[Ljava/lang/Object;)V")   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   631
                                                                                                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   632
  /* JVMTI/java.lang.instrument support and VM Attach mechanism */                                                \
36508
5f9eee6b383b 8142968: Module System implementation
alanb
parents: 36405
diff changeset
   633
  template(jdk_internal_module_Modules,                "jdk/internal/module/Modules")                             \
36795
bfd8c074c8ec 8153181: Move sun.misc.VMSupport to an internal package
chegar
parents: 36615
diff changeset
   634
  template(jdk_internal_vm_VMSupport,                  "jdk/internal/vm/VMSupport")                               \
42307
cefc81dc1d52 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41323
diff changeset
   635
  template(addReads_name,                              "addReads")                                                \
44520
0553e129e0ec 8177530: Module system implementation refresh (4/2017)
alanb
parents: 44326
diff changeset
   636
  template(addReads_signature,                         "(Ljava/lang/Module;Ljava/lang/Module;)V")                 \
42307
cefc81dc1d52 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41323
diff changeset
   637
  template(addExports_name,                            "addExports")                                              \
cefc81dc1d52 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41323
diff changeset
   638
  template(addOpens_name,                              "addOpens")                                                \
44520
0553e129e0ec 8177530: Module system implementation refresh (4/2017)
alanb
parents: 44326
diff changeset
   639
  template(addExports_signature,                       "(Ljava/lang/Module;Ljava/lang/String;Ljava/lang/Module;)V") \
42307
cefc81dc1d52 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41323
diff changeset
   640
  template(addUses_name,                               "addUses")                                                 \
44520
0553e129e0ec 8177530: Module system implementation refresh (4/2017)
alanb
parents: 44326
diff changeset
   641
  template(addUses_signature,                          "(Ljava/lang/Module;Ljava/lang/Class;)V")                  \
42307
cefc81dc1d52 8169069: Module system implementation refresh (11/2016)
alanb
parents: 41323
diff changeset
   642
  template(addProvides_name,                           "addProvides")                                             \
44520
0553e129e0ec 8177530: Module system implementation refresh (4/2017)
alanb
parents: 44326
diff changeset
   643
  template(addProvides_signature,                      "(Ljava/lang/Module;Ljava/lang/Class;Ljava/lang/Class;)V") \
44993
f61bcd80ec1f 8178380: Module system implementation refresh (5/2017)
alanb
parents: 44520
diff changeset
   644
  template(loadModule_name,                            "loadModule")                                              \
f61bcd80ec1f 8178380: Module system implementation refresh (5/2017)
alanb
parents: 44520
diff changeset
   645
  template(loadModule_signature,                       "(Ljava/lang/String;)Ljava/lang/Module;")                  \
36508
5f9eee6b383b 8142968: Module System implementation
alanb
parents: 36405
diff changeset
   646
  template(transformedByAgent_name,                    "transformedByAgent")                                      \
44520
0553e129e0ec 8177530: Module system implementation refresh (4/2017)
alanb
parents: 44326
diff changeset
   647
  template(transformedByAgent_signature,               "(Ljava/lang/Module;)V")                                   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   648
  template(appendToClassPathForInstrumentation_name,   "appendToClassPathForInstrumentation")                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   649
  do_alias(appendToClassPathForInstrumentation_signature, string_void_signature)                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   650
  template(serializePropertiesToByteArray_name,        "serializePropertiesToByteArray")                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   651
  template(serializePropertiesToByteArray_signature,   "()[B")                                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   652
  template(serializeAgentPropertiesToByteArray_name,   "serializeAgentPropertiesToByteArray")                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   653
  template(classRedefinedCount_name,                   "classRedefinedCount")                                     \
25326
85b2f2e63e3e 6642881: Improve performance of Class.getClassLoader()
coleenp
parents: 25063
diff changeset
   654
  template(classLoader_name,                           "classLoader")                                             \
25465
17a6bddcfa5d 8047737: Move array component mirror to instance of java/lang/Class
coleenp
parents: 25326
diff changeset
   655
  template(componentType_name,                         "componentType")                                           \
12377
ae6def2813e0 7160570: Intrinsification support for tracing framework
rbackman
parents: 11953
diff changeset
   656
                                                                                                                  \
30593
69f942690128 8076284: Improve vectorization of parallel streams
kvn
parents: 30310
diff changeset
   657
  /* forEachRemaining support */                                                                                  \
69f942690128 8076284: Improve vectorization of parallel streams
kvn
parents: 30310
diff changeset
   658
  template(java_util_stream_StreamsRangeIntSpliterator,          "java/util/stream/Streams$RangeIntSpliterator")  \
69f942690128 8076284: Improve vectorization of parallel streams
kvn
parents: 30310
diff changeset
   659
                                                                                                                  \
50113
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50063
diff changeset
   660
  /* jfr signatures */                                                                                            \
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50063
diff changeset
   661
  JFR_TEMPLATES(template)                                                                                         \
12377
ae6def2813e0 7160570: Intrinsification support for tracing framework
rbackman
parents: 11953
diff changeset
   662
                                                                                                                  \
48138
78b2ecdd3c4b 8188791: Move AppCDS from closed repo to open repo
iklam
parents: 47818
diff changeset
   663
  /* cds */                                                                                                       \
78b2ecdd3c4b 8188791: Move AppCDS from closed repo to open repo
iklam
parents: 47818
diff changeset
   664
  template(jdk_internal_loader_ClassLoaders,       "jdk/internal/loader/ClassLoaders")                            \
78b2ecdd3c4b 8188791: Move AppCDS from closed repo to open repo
iklam
parents: 47818
diff changeset
   665
  template(toFileURL_name,                         "toFileURL")                                                   \
78b2ecdd3c4b 8188791: Move AppCDS from closed repo to open repo
iklam
parents: 47818
diff changeset
   666
  template(toFileURL_signature,                    "(Ljava/lang/String;)Ljava/net/URL;")                          \
51371
3ab8b84e93cd 8207263: Store the Configuration for system modules into CDS archive.
jiangli
parents: 50951
diff changeset
   667
  template(url_void_signature,                     "(Ljava/net/URL;)V")                                           \
34257
4be3504cc03b 8140802: Clean up and refactor of class loading code for CDS
iklam
parents: 33638
diff changeset
   668
                                                                                                                  \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   669
  /*end*/
489c9b5090e2 Initial load
duke
parents:
diff changeset
   670
489c9b5090e2 Initial load
duke
parents:
diff changeset
   671
// Here are all the intrinsics known to the runtime and the CI.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   672
// Each intrinsic consists of a public enum name (like _hashCode),
489c9b5090e2 Initial load
duke
parents:
diff changeset
   673
// followed by a specification of its klass, name, and signature:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   674
//    template(<id>,  <klass>,  <name>, <sig>, <FCODE>)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   675
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   676
// If you add an intrinsic here, you must also define its name
489c9b5090e2 Initial load
duke
parents:
diff changeset
   677
// and signature as members of the VM symbols.  The VM symbols for
489c9b5090e2 Initial load
duke
parents:
diff changeset
   678
// the intrinsic name and signature may be defined above.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   679
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   680
// Because the VM_SYMBOLS_DO macro makes reference to VM_INTRINSICS_DO,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   681
// you can also define an intrinsic's name and/or signature locally to the
489c9b5090e2 Initial load
duke
parents:
diff changeset
   682
// intrinsic, if this makes sense.  (It often does make sense.)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   683
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   684
// For example:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   685
//    do_intrinsic(_foo,  java_lang_Object,  foo_name, foo_signature, F_xx)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   686
//     do_name(     foo_name, "foo")
489c9b5090e2 Initial load
duke
parents:
diff changeset
   687
//     do_signature(foo_signature, "()F")
489c9b5090e2 Initial load
duke
parents:
diff changeset
   688
// klass      = vmSymbols::java_lang_Object()
489c9b5090e2 Initial load
duke
parents:
diff changeset
   689
// name       = vmSymbols::foo_name()
489c9b5090e2 Initial load
duke
parents:
diff changeset
   690
// signature  = vmSymbols::foo_signature()
489c9b5090e2 Initial load
duke
parents:
diff changeset
   691
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   692
// The name and/or signature might be a "well known" symbol
489c9b5090e2 Initial load
duke
parents:
diff changeset
   693
// like "equal" or "()I", in which case there will be no local
489c9b5090e2 Initial load
duke
parents:
diff changeset
   694
// re-definition of the symbol.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   695
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   696
// The do_class, do_name, and do_signature calls are all used for the
489c9b5090e2 Initial load
duke
parents:
diff changeset
   697
// same purpose:  Define yet another VM symbol.  They could all be merged
489c9b5090e2 Initial load
duke
parents:
diff changeset
   698
// into a common 'do_symbol' call, but it seems useful to record our
489c9b5090e2 Initial load
duke
parents:
diff changeset
   699
// intentions here about kinds of symbols (class vs. name vs. signature).
489c9b5090e2 Initial load
duke
parents:
diff changeset
   700
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   701
// The F_xx is one of the Flags enum; see below.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   702
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   703
// for Emacs: (let ((c-backslash-column 120) (c-backslash-max-column 120)) (c-backslash-region (point) (point-max) nil t))
31587
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   704
//
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   705
//
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   706
// There are two types of intrinsic methods: (1) Library intrinsics and (2) bytecode intrinsics.
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   707
//
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   708
// (1) A library intrinsic method may be replaced with hand-crafted assembly code,
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   709
// with hand-crafted compiler IR, or with a combination of the two. The semantics
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   710
// of the replacement code may differ from the semantics of the replaced code.
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   711
//
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   712
// (2) Bytecode intrinsic methods are not replaced by special code, but they are
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   713
// treated in some other special way by the compiler. For example, the compiler
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   714
// may delay inlining for some String-related intrinsic methods (e.g., some methods
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   715
// defined in the StringBuilder and StringBuffer classes, see
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   716
// Compile::should_delay_string_inlining() for more details).
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   717
//
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   718
// Due to the difference between the semantics of an intrinsic method as defined
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   719
// in the (Java) source code and the semantics of the method as defined
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   720
// by the code in the VM, intrinsic methods must be explicitly marked.
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   721
//
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   722
// Intrinsic methods are marked by the jdk.internal.HotSpotIntrinsicCandidate
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   723
// annotation. If CheckIntrinsics is enabled, the VM performs the following
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   724
// checks when a class C is loaded: (1) all intrinsics defined by the VM for
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   725
// class C are present in the loaded class file and are marked;
31862
8673bd4db4b1 8131326: Enable CheckIntrinsics in all types of builds
zmajo
parents: 31587
diff changeset
   726
// (2) an intrinsic is defined by the VM for all marked methods of class C;
8673bd4db4b1 8131326: Enable CheckIntrinsics in all types of builds
zmajo
parents: 31587
diff changeset
   727
// (3) check for orphan methods in class C (i.e., methods for which the VM
8673bd4db4b1 8131326: Enable CheckIntrinsics in all types of builds
zmajo
parents: 31587
diff changeset
   728
// declares an intrinsic but that are not declared for the loaded class C.
8673bd4db4b1 8131326: Enable CheckIntrinsics in all types of builds
zmajo
parents: 31587
diff changeset
   729
// Check (3) is available only in debug builds.
31587
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   730
//
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   731
// If a mismatch is detected for a method, the VM behaves differently depending
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   732
// on the type of build. A fastdebug build exits and reports an error on a mismatch.
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   733
// A product build will not replace an unmarked library intrinsic method with
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   734
// hand-crafted code, that is, unmarked library intrinsics are treated as ordinary
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   735
// methods in a product build. The special treatment of a bytecode intrinsic method
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   736
// persists even if the method not marked.
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   737
//
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   738
// When adding an intrinsic for a method, please make sure to appropriately
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   739
// annotate the method in the source code. The list below contains all
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   740
// library intrinsics followed by bytecode intrinsics. Please also make sure to
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   741
// add the declaration of the intrinsic to the approriate section of the list.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   742
#define VM_INTRINSICS_DO(do_intrinsic, do_class, do_name, do_signature, do_alias)                                       \
31587
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   743
  /* (1) Library intrinsics                                                                        */                   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   744
  do_intrinsic(_hashCode,                 java_lang_Object,       hashCode_name, void_int_signature,             F_R)   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   745
   do_name(     hashCode_name,                                   "hashCode")                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   746
  do_intrinsic(_getClass,                 java_lang_Object,       getClass_name, void_class_signature,           F_R)   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   747
   do_name(     getClass_name,                                   "getClass")                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   748
  do_intrinsic(_clone,                    java_lang_Object,       clone_name, void_object_signature,             F_R)   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   749
   do_name(     clone_name,                                      "clone")                                               \
31856
614d6786ba55 8075171: Contended Locking fast notify bucket
dcubed
parents: 31587
diff changeset
   750
  do_intrinsic(_notify,                   java_lang_Object,       notify_name, void_method_signature,            F_R)   \
614d6786ba55 8075171: Contended Locking fast notify bucket
dcubed
parents: 31587
diff changeset
   751
   do_name(     notify_name,                                     "notify")                                              \
614d6786ba55 8075171: Contended Locking fast notify bucket
dcubed
parents: 31587
diff changeset
   752
  do_intrinsic(_notifyAll,                java_lang_Object,       notifyAll_name, void_method_signature,         F_R)   \
614d6786ba55 8075171: Contended Locking fast notify bucket
dcubed
parents: 31587
diff changeset
   753
   do_name(     notifyAll_name,                                  "notifyAll")                                           \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   754
                                                                                                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   755
  /* Math & StrictMath intrinsics are defined in terms of just a few signatures: */                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   756
  do_class(java_lang_Math,                "java/lang/Math")                                                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   757
  do_class(java_lang_StrictMath,          "java/lang/StrictMath")                                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   758
  do_signature(double2_double_signature,  "(DD)D")                                                                      \
41323
ddd5600d4762 8154122: Intrinsify fused mac operations
vdeshpande
parents: 39450
diff changeset
   759
  do_signature(double3_double_signature,  "(DDD)D")                                                                     \
53041
f15af1e2c683 8212043: Add floating-point Math.min/max intrinsics
pli
parents: 52979
diff changeset
   760
  do_signature(float2_float_signature,    "(FF)F")                                                                      \
41323
ddd5600d4762 8154122: Intrinsify fused mac operations
vdeshpande
parents: 39450
diff changeset
   761
  do_signature(float3_float_signature,    "(FFF)F")                                                                     \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   762
  do_signature(int2_int_signature,        "(II)I")                                                                      \
41323
ddd5600d4762 8154122: Intrinsify fused mac operations
vdeshpande
parents: 39450
diff changeset
   763
  do_signature(long2_long_signature,      "(JJ)J")                                                                      \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   764
                                                                                                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   765
  /* here are the math names, all together: */                                                                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   766
  do_name(abs_name,"abs")       do_name(sin_name,"sin")         do_name(cos_name,"cos")                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   767
  do_name(tan_name,"tan")       do_name(atan2_name,"atan2")     do_name(sqrt_name,"sqrt")                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   768
  do_name(log_name,"log")       do_name(log10_name,"log10")     do_name(pow_name,"pow")                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   769
  do_name(exp_name,"exp")       do_name(min_name,"min")         do_name(max_name,"max")                                 \
58421
6fc57e391539 8226721: Missing intrinsics for Math.ceil, floor, rint
neliasso
parents: 57804
diff changeset
   770
  do_name(floor_name, "floor")  do_name(ceil_name, "ceil")      do_name(rint_name, "rint")                              \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   771
                                                                                                                        \
20289
35d78de0c547 8024924: Intrinsify java.lang.Math.addExact
rbackman
parents: 19770
diff changeset
   772
  do_name(addExact_name,"addExact")                                                                                     \
21105
47618ee96ed5 8026844: Various Math functions needs intrinsification
rbackman
parents: 20299
diff changeset
   773
  do_name(decrementExact_name,"decrementExact")                                                                         \
47618ee96ed5 8026844: Various Math functions needs intrinsification
rbackman
parents: 20299
diff changeset
   774
  do_name(incrementExact_name,"incrementExact")                                                                         \
47618ee96ed5 8026844: Various Math functions needs intrinsification
rbackman
parents: 20299
diff changeset
   775
  do_name(multiplyExact_name,"multiplyExact")                                                                           \
47587
bf73ca31add9 8187684: Intrinsify Math.multiplyHigh(long, long)
dpochepk
parents: 47532
diff changeset
   776
  do_name(multiplyHigh_name,"multiplyHigh")                                                                             \
21105
47618ee96ed5 8026844: Various Math functions needs intrinsification
rbackman
parents: 20299
diff changeset
   777
  do_name(negateExact_name,"negateExact")                                                                               \
20289
35d78de0c547 8024924: Intrinsify java.lang.Math.addExact
rbackman
parents: 19770
diff changeset
   778
  do_name(subtractExact_name,"subtractExact")                                                                           \
41323
ddd5600d4762 8154122: Intrinsify fused mac operations
vdeshpande
parents: 39450
diff changeset
   779
  do_name(fma_name, "fma")                                                                                              \
20289
35d78de0c547 8024924: Intrinsify java.lang.Math.addExact
rbackman
parents: 19770
diff changeset
   780
                                                                                                                        \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   781
  do_intrinsic(_dabs,                     java_lang_Math,         abs_name,   double_double_signature,           F_S)   \
54750
1851a532ddfe 8222074: Enhance auto vectorization for x86
sviswanathan
parents: 54669
diff changeset
   782
  do_intrinsic(_fabs,                     java_lang_Math,         abs_name,   float_float_signature,           F_S)   \
1851a532ddfe 8222074: Enhance auto vectorization for x86
sviswanathan
parents: 54669
diff changeset
   783
  do_intrinsic(_iabs,                     java_lang_Math,         abs_name,   int_int_signature,           F_S)   \
1851a532ddfe 8222074: Enhance auto vectorization for x86
sviswanathan
parents: 54669
diff changeset
   784
  do_intrinsic(_labs,                     java_lang_Math,         abs_name,   long_long_signature,           F_S)   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   785
  do_intrinsic(_dsin,                     java_lang_Math,         sin_name,   double_double_signature,           F_S)   \
58421
6fc57e391539 8226721: Missing intrinsics for Math.ceil, floor, rint
neliasso
parents: 57804
diff changeset
   786
  do_intrinsic(_floor,                    java_lang_Math,         floor_name, double_double_signature,           F_S)   \
6fc57e391539 8226721: Missing intrinsics for Math.ceil, floor, rint
neliasso
parents: 57804
diff changeset
   787
  do_intrinsic(_ceil,                     java_lang_Math,         ceil_name,  double_double_signature,           F_S)   \
6fc57e391539 8226721: Missing intrinsics for Math.ceil, floor, rint
neliasso
parents: 57804
diff changeset
   788
  do_intrinsic(_rint,                     java_lang_Math,         rint_name,  double_double_signature,           F_S)   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   789
  do_intrinsic(_dcos,                     java_lang_Math,         cos_name,   double_double_signature,           F_S)   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   790
  do_intrinsic(_dtan,                     java_lang_Math,         tan_name,   double_double_signature,           F_S)   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   791
  do_intrinsic(_datan2,                   java_lang_Math,         atan2_name, double2_double_signature,          F_S)   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   792
  do_intrinsic(_dsqrt,                    java_lang_Math,         sqrt_name,  double_double_signature,           F_S)   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   793
  do_intrinsic(_dlog,                     java_lang_Math,         log_name,   double_double_signature,           F_S)   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   794
  do_intrinsic(_dlog10,                   java_lang_Math,         log10_name, double_double_signature,           F_S)   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   795
  do_intrinsic(_dpow,                     java_lang_Math,         pow_name,   double2_double_signature,          F_S)   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   796
  do_intrinsic(_dexp,                     java_lang_Math,         exp_name,   double_double_signature,           F_S)   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   797
  do_intrinsic(_min,                      java_lang_Math,         min_name,   int2_int_signature,                F_S)   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   798
  do_intrinsic(_max,                      java_lang_Math,         max_name,   int2_int_signature,                F_S)   \
21105
47618ee96ed5 8026844: Various Math functions needs intrinsification
rbackman
parents: 20299
diff changeset
   799
  do_intrinsic(_addExactI,                java_lang_Math,         addExact_name, int2_int_signature,             F_S)   \
47618ee96ed5 8026844: Various Math functions needs intrinsification
rbackman
parents: 20299
diff changeset
   800
  do_intrinsic(_addExactL,                java_lang_Math,         addExact_name, long2_long_signature,           F_S)   \
47618ee96ed5 8026844: Various Math functions needs intrinsification
rbackman
parents: 20299
diff changeset
   801
  do_intrinsic(_decrementExactI,          java_lang_Math,         decrementExact_name, int_int_signature,        F_S)   \
22245
b73506fc6a31 8031115: intrinsics for Math.decrementExact(J) and incrementExact(J) don't work
iignatyev
parents: 21770
diff changeset
   802
  do_intrinsic(_decrementExactL,          java_lang_Math,         decrementExact_name, long_long_signature,      F_S)   \
21105
47618ee96ed5 8026844: Various Math functions needs intrinsification
rbackman
parents: 20299
diff changeset
   803
  do_intrinsic(_incrementExactI,          java_lang_Math,         incrementExact_name, int_int_signature,        F_S)   \
22245
b73506fc6a31 8031115: intrinsics for Math.decrementExact(J) and incrementExact(J) don't work
iignatyev
parents: 21770
diff changeset
   804
  do_intrinsic(_incrementExactL,          java_lang_Math,         incrementExact_name, long_long_signature,      F_S)   \
21105
47618ee96ed5 8026844: Various Math functions needs intrinsification
rbackman
parents: 20299
diff changeset
   805
  do_intrinsic(_multiplyExactI,           java_lang_Math,         multiplyExact_name, int2_int_signature,        F_S)   \
47618ee96ed5 8026844: Various Math functions needs intrinsification
rbackman
parents: 20299
diff changeset
   806
  do_intrinsic(_multiplyExactL,           java_lang_Math,         multiplyExact_name, long2_long_signature,      F_S)   \
47587
bf73ca31add9 8187684: Intrinsify Math.multiplyHigh(long, long)
dpochepk
parents: 47532
diff changeset
   807
  do_intrinsic(_multiplyHigh,             java_lang_Math,         multiplyHigh_name, long2_long_signature,       F_S)   \
21105
47618ee96ed5 8026844: Various Math functions needs intrinsification
rbackman
parents: 20299
diff changeset
   808
  do_intrinsic(_negateExactI,             java_lang_Math,         negateExact_name, int_int_signature,           F_S)   \
47618ee96ed5 8026844: Various Math functions needs intrinsification
rbackman
parents: 20299
diff changeset
   809
  do_intrinsic(_negateExactL,             java_lang_Math,         negateExact_name, long_long_signature,         F_S)   \
47618ee96ed5 8026844: Various Math functions needs intrinsification
rbackman
parents: 20299
diff changeset
   810
  do_intrinsic(_subtractExactI,           java_lang_Math,         subtractExact_name, int2_int_signature,        F_S)   \
47618ee96ed5 8026844: Various Math functions needs intrinsification
rbackman
parents: 20299
diff changeset
   811
  do_intrinsic(_subtractExactL,           java_lang_Math,         subtractExact_name, long2_long_signature,      F_S)   \
41323
ddd5600d4762 8154122: Intrinsify fused mac operations
vdeshpande
parents: 39450
diff changeset
   812
  do_intrinsic(_fmaD,                     java_lang_Math,         fma_name,           double3_double_signature,  F_S)   \
ddd5600d4762 8154122: Intrinsify fused mac operations
vdeshpande
parents: 39450
diff changeset
   813
  do_intrinsic(_fmaF,                     java_lang_Math,         fma_name,           float3_float_signature,    F_S)   \
53041
f15af1e2c683 8212043: Add floating-point Math.min/max intrinsics
pli
parents: 52979
diff changeset
   814
  do_intrinsic(_maxF,                     java_lang_Math,         max_name,           float2_float_signature,    F_S)   \
f15af1e2c683 8212043: Add floating-point Math.min/max intrinsics
pli
parents: 52979
diff changeset
   815
  do_intrinsic(_minF,                     java_lang_Math,         min_name,           float2_float_signature,    F_S)   \
f15af1e2c683 8212043: Add floating-point Math.min/max intrinsics
pli
parents: 52979
diff changeset
   816
  do_intrinsic(_maxD,                     java_lang_Math,         max_name,           double2_double_signature,  F_S)   \
f15af1e2c683 8212043: Add floating-point Math.min/max intrinsics
pli
parents: 52979
diff changeset
   817
  do_intrinsic(_minD,                     java_lang_Math,         min_name,           double2_double_signature,  F_S)   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   818
                                                                                                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   819
  do_intrinsic(_floatToRawIntBits,        java_lang_Float,        floatToRawIntBits_name,   float_int_signature, F_S)   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   820
   do_name(     floatToRawIntBits_name,                          "floatToRawIntBits")                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   821
  do_intrinsic(_floatToIntBits,           java_lang_Float,        floatToIntBits_name,      float_int_signature, F_S)   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   822
   do_name(     floatToIntBits_name,                             "floatToIntBits")                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   823
  do_intrinsic(_intBitsToFloat,           java_lang_Float,        intBitsToFloat_name,      int_float_signature, F_S)   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   824
   do_name(     intBitsToFloat_name,                             "intBitsToFloat")                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   825
  do_intrinsic(_doubleToRawLongBits,      java_lang_Double,       doubleToRawLongBits_name, double_long_signature, F_S) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   826
   do_name(     doubleToRawLongBits_name,                        "doubleToRawLongBits")                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   827
  do_intrinsic(_doubleToLongBits,         java_lang_Double,       doubleToLongBits_name,    double_long_signature, F_S) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   828
   do_name(     doubleToLongBits_name,                           "doubleToLongBits")                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   829
  do_intrinsic(_longBitsToDouble,         java_lang_Double,       longBitsToDouble_name,    long_double_signature, F_S) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   830
   do_name(     longBitsToDouble_name,                           "longBitsToDouble")                                    \
2255
54abdf3e1055 6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents: 1890
diff changeset
   831
                                                                                                                        \
2862
fad636edf18f 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 2570
diff changeset
   832
  do_intrinsic(_numberOfLeadingZeros_i,   java_lang_Integer,      numberOfLeadingZeros_name,int_int_signature,   F_S)   \
fad636edf18f 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 2570
diff changeset
   833
  do_intrinsic(_numberOfLeadingZeros_l,   java_lang_Long,         numberOfLeadingZeros_name,long_int_signature,  F_S)   \
fad636edf18f 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 2570
diff changeset
   834
                                                                                                                        \
fad636edf18f 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 2570
diff changeset
   835
  do_intrinsic(_numberOfTrailingZeros_i,  java_lang_Integer,      numberOfTrailingZeros_name,int_int_signature,  F_S)   \
fad636edf18f 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 2570
diff changeset
   836
  do_intrinsic(_numberOfTrailingZeros_l,  java_lang_Long,         numberOfTrailingZeros_name,long_int_signature, F_S)   \
fad636edf18f 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 2570
diff changeset
   837
                                                                                                                        \
2255
54abdf3e1055 6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents: 1890
diff changeset
   838
  do_intrinsic(_bitCount_i,               java_lang_Integer,      bitCount_name,            int_int_signature,   F_S)   \
54abdf3e1055 6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents: 1890
diff changeset
   839
  do_intrinsic(_bitCount_l,               java_lang_Long,         bitCount_name,            long_int_signature,  F_S)   \
54abdf3e1055 6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents: 1890
diff changeset
   840
                                                                                                                        \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   841
  do_intrinsic(_reverseBytes_i,           java_lang_Integer,      reverseBytes_name,        int_int_signature,   F_S)   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   842
   do_name(     reverseBytes_name,                               "reverseBytes")                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   843
  do_intrinsic(_reverseBytes_l,           java_lang_Long,         reverseBytes_name,        long_long_signature, F_S)   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   844
    /*  (symbol reverseBytes_name defined above) */                                                                     \
5352
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents: 4573
diff changeset
   845
  do_intrinsic(_reverseBytes_c,           java_lang_Character,    reverseBytes_name,        char_char_signature, F_S)   \
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents: 4573
diff changeset
   846
    /*  (symbol reverseBytes_name defined above) */                                                                     \
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents: 4573
diff changeset
   847
  do_intrinsic(_reverseBytes_s,           java_lang_Short,        reverseBytes_name,        short_short_signature, F_S) \
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents: 4573
diff changeset
   848
    /*  (symbol reverseBytes_name defined above) */                                                                     \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   849
                                                                                                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   850
  do_intrinsic(_identityHashCode,         java_lang_System,       identityHashCode_name, object_int_signature,   F_S)   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   851
   do_name(     identityHashCode_name,                           "identityHashCode")                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   852
  do_intrinsic(_currentTimeMillis,        java_lang_System,       currentTimeMillis_name, void_long_signature,   F_S)   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   853
                                                                                                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   854
   do_name(     currentTimeMillis_name,                          "currentTimeMillis")                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   855
  do_intrinsic(_nanoTime,                 java_lang_System,       nanoTime_name,          void_long_signature,   F_S)   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   856
   do_name(     nanoTime_name,                                   "nanoTime")                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   857
                                                                                                                        \
50113
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50063
diff changeset
   858
  JFR_INTRINSICS(do_intrinsic, do_class, do_name, do_signature, do_alias)                                               \
12377
ae6def2813e0 7160570: Intrinsification support for tracing framework
rbackman
parents: 11953
diff changeset
   859
                                                                                                                        \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   860
  do_intrinsic(_arraycopy,                java_lang_System,       arraycopy_name, arraycopy_signature,           F_S)   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   861
   do_name(     arraycopy_name,                                  "arraycopy")                                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   862
   do_signature(arraycopy_signature,                             "(Ljava/lang/Object;ILjava/lang/Object;II)V")          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   863
  do_intrinsic(_isInterrupted,            java_lang_Thread,       isInterrupted_name, isInterrupted_signature,   F_R)   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   864
   do_name(     isInterrupted_name,                              "isInterrupted")                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   865
   do_signature(isInterrupted_signature,                         "(Z)Z")                                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   866
  do_intrinsic(_currentThread,            java_lang_Thread,       currentThread_name, currentThread_signature,   F_S)   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   867
   do_name(     currentThread_name,                              "currentThread")                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   868
   do_signature(currentThread_signature,                         "()Ljava/lang/Thread;")                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   869
                                                                                                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   870
  /* reflective intrinsics, for java/lang/Class, etc. */                                                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   871
  do_intrinsic(_isAssignableFrom,         java_lang_Class,        isAssignableFrom_name, class_boolean_signature, F_RN) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   872
   do_name(     isAssignableFrom_name,                           "isAssignableFrom")                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   873
  do_intrinsic(_isInstance,               java_lang_Class,        isInstance_name, object_boolean_signature,     F_RN)  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   874
   do_name(     isInstance_name,                                 "isInstance")                                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   875
  do_intrinsic(_getModifiers,             java_lang_Class,        getModifiers_name, void_int_signature,         F_RN)  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   876
   do_name(     getModifiers_name,                               "getModifiers")                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   877
  do_intrinsic(_isInterface,              java_lang_Class,        isInterface_name, void_boolean_signature,      F_RN)  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   878
   do_name(     isInterface_name,                                "isInterface")                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   879
  do_intrinsic(_isArray,                  java_lang_Class,        isArray_name, void_boolean_signature,          F_RN)  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   880
   do_name(     isArray_name,                                    "isArray")                                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   881
  do_intrinsic(_isPrimitive,              java_lang_Class,        isPrimitive_name, void_boolean_signature,      F_RN)  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   882
   do_name(     isPrimitive_name,                                "isPrimitive")                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   883
  do_intrinsic(_getSuperclass,            java_lang_Class,        getSuperclass_name, void_class_signature,      F_RN)  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   884
   do_name(     getSuperclass_name,                              "getSuperclass")                                       \
27450
603dbcf4f547 8054492: Casting can result in redundant null checks in generated code
kvn
parents: 26442
diff changeset
   885
  do_intrinsic(_Class_cast,               java_lang_Class,        Class_cast_name, object_object_signature,      F_R)   \
603dbcf4f547 8054492: Casting can result in redundant null checks in generated code
kvn
parents: 26442
diff changeset
   886
   do_name(     Class_cast_name,                                 "cast")                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   887
                                                                                                                        \
37301
a936b4e01afb 8137058: Clear out all non-Critical APIs from sun.reflect
chegar
parents: 37297
diff changeset
   888
  do_intrinsic(_getClassAccessFlags,      reflect_Reflection,     getClassAccessFlags_name, class_int_signature, F_SN)  \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   889
   do_name(     getClassAccessFlags_name,                        "getClassAccessFlags")                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   890
  do_intrinsic(_getLength,                java_lang_reflect_Array, getLength_name, object_int_signature,         F_SN)  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   891
   do_name(     getLength_name,                                   "getLength")                                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   892
                                                                                                                        \
37301
a936b4e01afb 8137058: Clear out all non-Critical APIs from sun.reflect
chegar
parents: 37297
diff changeset
   893
  do_intrinsic(_getCallerClass,           reflect_Reflection,     getCallerClass_name, void_class_signature,     F_SN)  \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   894
   do_name(     getCallerClass_name,                             "getCallerClass")                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   895
                                                                                                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   896
  do_intrinsic(_newArray,                 java_lang_reflect_Array, newArray_name, newArray_signature,            F_SN)  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   897
   do_name(     newArray_name,                                    "newArray")                                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   898
   do_signature(newArray_signature,                               "(Ljava/lang/Class;I)Ljava/lang/Object;")             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   899
                                                                                                                        \
38017
55047d16f141 8147844: new method j.l.Runtime.onSpinWait() and the corresponding x86 hotspot instrinsic
ikrylov
parents: 36848
diff changeset
   900
  do_intrinsic(_onSpinWait,               java_lang_Thread,       onSpinWait_name, onSpinWait_signature,         F_S)   \
55047d16f141 8147844: new method j.l.Runtime.onSpinWait() and the corresponding x86 hotspot instrinsic
ikrylov
parents: 36848
diff changeset
   901
   do_name(     onSpinWait_name,                                  "onSpinWait")                                         \
55047d16f141 8147844: new method j.l.Runtime.onSpinWait() and the corresponding x86 hotspot instrinsic
ikrylov
parents: 36848
diff changeset
   902
   do_alias(    onSpinWait_signature,                             void_method_signature)                                \
55047d16f141 8147844: new method j.l.Runtime.onSpinWait() and the corresponding x86 hotspot instrinsic
ikrylov
parents: 36848
diff changeset
   903
                                                                                                                        \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   904
  do_intrinsic(_copyOf,                   java_util_Arrays,       copyOf_name, copyOf_signature,                 F_S)   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   905
   do_name(     copyOf_name,                                     "copyOf")                                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   906
   do_signature(copyOf_signature,             "([Ljava/lang/Object;ILjava/lang/Class;)[Ljava/lang/Object;")             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   907
                                                                                                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   908
  do_intrinsic(_copyOfRange,              java_util_Arrays,       copyOfRange_name, copyOfRange_signature,       F_S)   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   909
   do_name(     copyOfRange_name,                                "copyOfRange")                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   910
   do_signature(copyOfRange_signature,        "([Ljava/lang/Object;IILjava/lang/Class;)[Ljava/lang/Object;")            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   911
                                                                                                                        \
595
a2be4c89de81 6695049: (coll) Create an x86 intrinsic for Arrays.equals
rasbold
parents: 218
diff changeset
   912
  do_intrinsic(_equalsC,                  java_util_Arrays,       equals_name,    equalsC_signature,             F_S)   \
a2be4c89de81 6695049: (coll) Create an x86 intrinsic for Arrays.equals
rasbold
parents: 218
diff changeset
   913
   do_signature(equalsC_signature,                               "([C[C)Z")                                             \
33628
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   914
  do_intrinsic(_equalsB,                  java_util_Arrays,       equals_name,    equalsB_signature,             F_S)   \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   915
   do_signature(equalsB_signature,                               "([B[B)Z")                                             \
595
a2be4c89de81 6695049: (coll) Create an x86 intrinsic for Arrays.equals
rasbold
parents: 218
diff changeset
   916
                                                                                                                        \
33628
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   917
  do_intrinsic(_compressStringC,          java_lang_StringUTF16,  compress_name, encodeISOArray_signature,       F_S)   \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   918
   do_name(     compress_name,                                   "compress")                                            \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   919
  do_intrinsic(_compressStringB,          java_lang_StringUTF16,  compress_name, indexOfI_signature,             F_S)   \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   920
  do_intrinsic(_inflateStringC,           java_lang_StringLatin1, inflate_name, inflateC_signature,              F_S)   \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   921
   do_name(     inflate_name,                                    "inflate")                                             \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   922
   do_signature(inflateC_signature,                              "([BI[CII)V")                                          \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   923
  do_intrinsic(_inflateStringB,           java_lang_StringLatin1, inflate_name, inflateB_signature,              F_S)   \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   924
   do_signature(inflateB_signature,                              "([BI[BII)V")                                          \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   925
  do_intrinsic(_toBytesStringU,           java_lang_StringUTF16, toBytes_name, toBytesU_signature,               F_S)   \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   926
   do_name(     toBytes_name,                                    "toBytes")                                             \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   927
   do_signature(toBytesU_signature,                              "([CII)[B")                                            \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   928
  do_intrinsic(_getCharsStringU,          java_lang_StringUTF16, getCharsU_name, getCharsU_signature,            F_S)   \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   929
   do_name(     getCharsU_name,                                  "getChars")                                            \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   930
   do_signature(getCharsU_signature,                             "([BII[CI)V")                                          \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   931
  do_intrinsic(_getCharStringU,           java_lang_StringUTF16, getChar_name, getCharStringU_signature,         F_S)   \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   932
   do_signature(getCharStringU_signature,                        "([BI)C")                                              \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   933
  do_intrinsic(_putCharStringU,           java_lang_StringUTF16, putChar_name, putCharStringU_signature,         F_S)   \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   934
   do_signature(putCharStringU_signature,                        "([BII)V")                                             \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   935
  do_intrinsic(_compareToL,               java_lang_StringLatin1,compareTo_name, compareTo_indexOf_signature,    F_S)   \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   936
  do_intrinsic(_compareToU,               java_lang_StringUTF16, compareTo_name, compareTo_indexOf_signature,    F_S)   \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   937
  do_intrinsic(_compareToLU,              java_lang_StringLatin1,compareToLU_name, compareTo_indexOf_signature,  F_S)   \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   938
  do_intrinsic(_compareToUL,              java_lang_StringUTF16, compareToUL_name, compareTo_indexOf_signature,  F_S)   \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   939
   do_signature(compareTo_indexOf_signature,                     "([B[B)I")                                             \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   940
   do_name(     compareTo_name,                                  "compareTo")                                           \
33628
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   941
   do_name(     compareToLU_name,                                "compareToUTF16")                                      \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   942
   do_name(     compareToUL_name,                                "compareToLatin1")                                     \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   943
  do_intrinsic(_indexOfL,                 java_lang_StringLatin1,indexOf_name, compareTo_indexOf_signature,      F_S)   \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   944
  do_intrinsic(_indexOfU,                 java_lang_StringUTF16, indexOf_name, compareTo_indexOf_signature,      F_S)   \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   945
  do_intrinsic(_indexOfUL,                java_lang_StringUTF16, indexOfUL_name, compareTo_indexOf_signature,    F_S)   \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   946
  do_intrinsic(_indexOfIL,                java_lang_StringLatin1,indexOf_name, indexOfI_signature,               F_S)   \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   947
  do_intrinsic(_indexOfIU,                java_lang_StringUTF16, indexOf_name, indexOfI_signature,               F_S)   \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   948
  do_intrinsic(_indexOfIUL,               java_lang_StringUTF16, indexOfUL_name, indexOfI_signature,             F_S)   \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   949
  do_intrinsic(_indexOfU_char,            java_lang_StringUTF16, indexOfChar_name, indexOfChar_signature,        F_S)   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   950
   do_name(     indexOf_name,                                    "indexOf")                                             \
33628
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   951
   do_name(     indexOfChar_name,                                "indexOfChar")                                         \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   952
   do_name(     indexOfUL_name,                                  "indexOfLatin1")                                       \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   953
   do_signature(indexOfI_signature,                              "([BI[BII)I")                                          \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   954
   do_signature(indexOfChar_signature,                           "([BIII)I")                                            \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   955
  do_intrinsic(_equalsL,                  java_lang_StringLatin1,equals_name, equalsB_signature,                 F_S)   \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   956
  do_intrinsic(_equalsU,                  java_lang_StringUTF16, equals_name, equalsB_signature,                 F_S)   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   957
                                                                                                                        \
52979
7384e00d5860 8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents: 52781
diff changeset
   958
  do_intrinsic(_isDigit,                  java_lang_CharacterDataLatin1, isDigit_name,      int_bool_signature,  F_R)   \
7384e00d5860 8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents: 52781
diff changeset
   959
   do_name(     isDigit_name,                                           "isDigit")                                      \
7384e00d5860 8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents: 52781
diff changeset
   960
  do_intrinsic(_isLowerCase,              java_lang_CharacterDataLatin1, isLowerCase_name,  int_bool_signature,  F_R)   \
7384e00d5860 8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents: 52781
diff changeset
   961
   do_name(     isLowerCase_name,                                       "isLowerCase")                                  \
7384e00d5860 8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents: 52781
diff changeset
   962
  do_intrinsic(_isUpperCase,              java_lang_CharacterDataLatin1, isUpperCase_name,  int_bool_signature,  F_R)   \
7384e00d5860 8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents: 52781
diff changeset
   963
   do_name(     isUpperCase_name,                                       "isUpperCase")                                  \
7384e00d5860 8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents: 52781
diff changeset
   964
  do_intrinsic(_isWhitespace,             java_lang_CharacterDataLatin1, isWhitespace_name, int_bool_signature,  F_R)   \
7384e00d5860 8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents: 52781
diff changeset
   965
   do_name(     isWhitespace_name,                                      "isWhitespace")                                 \
7384e00d5860 8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents: 52781
diff changeset
   966
                                                                                                                        \
38240
28e0cafd5222 8155794: Move Objects.checkIndex BiFunction accepting methods to an internal package
psandoz
parents: 38033
diff changeset
   967
  do_intrinsic(_Preconditions_checkIndex, jdk_internal_util_Preconditions, checkIndex_name, Preconditions_checkIndex_signature, F_S)   \
28e0cafd5222 8155794: Move Objects.checkIndex BiFunction accepting methods to an internal package
psandoz
parents: 38033
diff changeset
   968
   do_signature(Preconditions_checkIndex_signature,              "(IILjava/util/function/BiFunction;)I")                \
34180
f0ec91019db2 8042997: Make intrinsic some or all check index/range methods
roland
parents: 33628
diff changeset
   969
                                                                                                                        \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   970
  do_class(java_nio_Buffer,               "java/nio/Buffer")                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   971
  do_intrinsic(_checkIndex,               java_nio_Buffer,        checkIndex_name, int_int_signature,            F_R)   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   972
   do_name(     checkIndex_name,                                 "checkIndex")                                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   973
                                                                                                                        \
33628
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   974
  do_class(java_lang_StringCoding,        "java/lang/StringCoding")                                                     \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   975
  do_intrinsic(_hasNegatives,             java_lang_StringCoding, hasNegatives_name, hasNegatives_signature,     F_S)   \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   976
   do_name(     hasNegatives_name,                               "hasNegatives")                                        \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   977
   do_signature(hasNegatives_signature,                          "([BII)Z")                                             \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   978
                                                                                                                        \
15242
695bb216be99 6896617: Optimize sun.nio.cs.ISO_8859_1$Encode.encodeArrayLoop() on x86
kvn
parents: 15221
diff changeset
   979
  do_class(sun_nio_cs_iso8859_1_Encoder,  "sun/nio/cs/ISO_8859_1$Encoder")                                              \
695bb216be99 6896617: Optimize sun.nio.cs.ISO_8859_1$Encode.encodeArrayLoop() on x86
kvn
parents: 15221
diff changeset
   980
  do_intrinsic(_encodeISOArray,     sun_nio_cs_iso8859_1_Encoder, encodeISOArray_name, encodeISOArray_signature, F_S)   \
31587
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   981
   do_name(     encodeISOArray_name,                             "implEncodeISOArray")                                  \
15242
695bb216be99 6896617: Optimize sun.nio.cs.ISO_8859_1$Encode.encodeArrayLoop() on x86
kvn
parents: 15221
diff changeset
   982
   do_signature(encodeISOArray_signature,                        "([CI[BII)I")                                          \
695bb216be99 6896617: Optimize sun.nio.cs.ISO_8859_1$Encode.encodeArrayLoop() on x86
kvn
parents: 15221
diff changeset
   983
                                                                                                                        \
33628
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   984
  do_intrinsic(_encodeByteISOArray,     java_lang_StringCoding, encodeISOArray_name, indexOfI_signature,         F_S)   \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33483
diff changeset
   985
                                                                                                                        \
26434
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 26135
diff changeset
   986
  do_class(java_math_BigInteger,                      "java/math/BigInteger")                                           \
31583
eb5bea7b4835 8130150: Implement BigInteger.montgomeryMultiply intrinsic
aph
parents: 31228
diff changeset
   987
  do_intrinsic(_multiplyToLen,      java_math_BigInteger, multiplyToLen_name, multiplyToLen_signature, F_S)             \
31587
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
   988
   do_name(     multiplyToLen_name,                             "implMultiplyToLen")                                    \
26434
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 26135
diff changeset
   989
   do_signature(multiplyToLen_signature,                        "([II[II[I)[I")                                         \
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 26135
diff changeset
   990
                                                                                                                        \
31129
02ee7609f0e1 8081778: Use Intel x64 CPU instructions for RSA acceleration
kvn
parents: 31037
diff changeset
   991
  do_intrinsic(_squareToLen, java_math_BigInteger, squareToLen_name, squareToLen_signature, F_S)                        \
02ee7609f0e1 8081778: Use Intel x64 CPU instructions for RSA acceleration
kvn
parents: 31037
diff changeset
   992
   do_name(     squareToLen_name,                             "implSquareToLen")                                        \
02ee7609f0e1 8081778: Use Intel x64 CPU instructions for RSA acceleration
kvn
parents: 31037
diff changeset
   993
   do_signature(squareToLen_signature,                        "([II[II)[I")                                             \
02ee7609f0e1 8081778: Use Intel x64 CPU instructions for RSA acceleration
kvn
parents: 31037
diff changeset
   994
                                                                                                                        \
02ee7609f0e1 8081778: Use Intel x64 CPU instructions for RSA acceleration
kvn
parents: 31037
diff changeset
   995
  do_intrinsic(_mulAdd, java_math_BigInteger, mulAdd_name, mulAdd_signature, F_S)                                       \
02ee7609f0e1 8081778: Use Intel x64 CPU instructions for RSA acceleration
kvn
parents: 31037
diff changeset
   996
   do_name(     mulAdd_name,                                  "implMulAdd")                                             \
02ee7609f0e1 8081778: Use Intel x64 CPU instructions for RSA acceleration
kvn
parents: 31037
diff changeset
   997
   do_signature(mulAdd_signature,                             "([I[IIII)I")                                             \
02ee7609f0e1 8081778: Use Intel x64 CPU instructions for RSA acceleration
kvn
parents: 31037
diff changeset
   998
                                                                                                                        \
31583
eb5bea7b4835 8130150: Implement BigInteger.montgomeryMultiply intrinsic
aph
parents: 31228
diff changeset
   999
  do_intrinsic(_montgomeryMultiply,      java_math_BigInteger, montgomeryMultiply_name, montgomeryMultiply_signature, F_S) \
eb5bea7b4835 8130150: Implement BigInteger.montgomeryMultiply intrinsic
aph
parents: 31228
diff changeset
  1000
   do_name(     montgomeryMultiply_name,                             "implMontgomeryMultiply")                          \
eb5bea7b4835 8130150: Implement BigInteger.montgomeryMultiply intrinsic
aph
parents: 31228
diff changeset
  1001
   do_signature(montgomeryMultiply_signature,                        "([I[I[IIJ[I)[I")                                  \
eb5bea7b4835 8130150: Implement BigInteger.montgomeryMultiply intrinsic
aph
parents: 31228
diff changeset
  1002
                                                                                                                        \
eb5bea7b4835 8130150: Implement BigInteger.montgomeryMultiply intrinsic
aph
parents: 31228
diff changeset
  1003
  do_intrinsic(_montgomerySquare,      java_math_BigInteger, montgomerySquare_name, montgomerySquare_signature, F_S)    \
eb5bea7b4835 8130150: Implement BigInteger.montgomeryMultiply intrinsic
aph
parents: 31228
diff changeset
  1004
   do_name(     montgomerySquare_name,                             "implMontgomerySquare")                              \
eb5bea7b4835 8130150: Implement BigInteger.montgomeryMultiply intrinsic
aph
parents: 31228
diff changeset
  1005
   do_signature(montgomerySquare_signature,                        "([I[IIJ[I)[I")                                      \
eb5bea7b4835 8130150: Implement BigInteger.montgomeryMultiply intrinsic
aph
parents: 31228
diff changeset
  1006
                                                                                                                        \
48356
29e165bdf669 8193085: Vectorize the nio Buffer equals and compareTo implementations
psandoz
parents: 48138
diff changeset
  1007
  do_class(jdk_internal_util_ArraysSupport, "jdk/internal/util/ArraysSupport")                                                          \
29e165bdf669 8193085: Vectorize the nio Buffer equals and compareTo implementations
psandoz
parents: 48138
diff changeset
  1008
  do_intrinsic(_vectorizedMismatch, jdk_internal_util_ArraysSupport, vectorizedMismatch_name, vectorizedMismatch_signature, F_S)\
35110
f19bcdf40799 8143355: Update for addition of vectorizedMismatch intrinsic for x86
kvn
parents: 35086
diff changeset
  1009
   do_name(vectorizedMismatch_name, "vectorizedMismatch")                                                               \
f19bcdf40799 8143355: Update for addition of vectorizedMismatch intrinsic for x86
kvn
parents: 35086
diff changeset
  1010
   do_signature(vectorizedMismatch_signature, "(Ljava/lang/Object;JLjava/lang/Object;JII)I")                            \
f19bcdf40799 8143355: Update for addition of vectorizedMismatch intrinsic for x86
kvn
parents: 35086
diff changeset
  1011
                                                                                                                        \
9176
42d9d1010f38 7009266: G1: assert(obj->is_oop_or_null(true )) failed: Error
johnc
parents: 8676
diff changeset
  1012
  /* java/lang/ref/Reference */                                                                                         \
42d9d1010f38 7009266: G1: assert(obj->is_oop_or_null(true )) failed: Error
johnc
parents: 8676
diff changeset
  1013
  do_intrinsic(_Reference_get,            java_lang_ref_Reference, get_name,    void_object_signature, F_R)             \
42d9d1010f38 7009266: G1: assert(obj->is_oop_or_null(true )) failed: Error
johnc
parents: 8676
diff changeset
  1014
                                                                                                                        \
24328
bddefb356fba 8035936: SIGBUS in StubRoutines::aesencryptBlock, solaris-sparc
kvn
parents: 23448
diff changeset
  1015
  /* support for com.sun.crypto.provider.AESCrypt and some of its callers */                                            \
14132
3c1437abcefd 7184394: add intrinsics to use AES instructions
kvn
parents: 13968
diff changeset
  1016
  do_class(com_sun_crypto_provider_aescrypt,      "com/sun/crypto/provider/AESCrypt")                                   \
3c1437abcefd 7184394: add intrinsics to use AES instructions
kvn
parents: 13968
diff changeset
  1017
  do_intrinsic(_aescrypt_encryptBlock, com_sun_crypto_provider_aescrypt, encryptBlock_name, byteArray_int_byteArray_int_signature, F_R)   \
3c1437abcefd 7184394: add intrinsics to use AES instructions
kvn
parents: 13968
diff changeset
  1018
  do_intrinsic(_aescrypt_decryptBlock, com_sun_crypto_provider_aescrypt, decryptBlock_name, byteArray_int_byteArray_int_signature, F_R)   \
31587
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
  1019
   do_name(     encryptBlock_name,                                 "implEncryptBlock")                                  \
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
  1020
   do_name(     decryptBlock_name,                                 "implDecryptBlock")                                  \
14132
3c1437abcefd 7184394: add intrinsics to use AES instructions
kvn
parents: 13968
diff changeset
  1021
   do_signature(byteArray_int_byteArray_int_signature,             "([BI[BI)V")                                         \
3c1437abcefd 7184394: add intrinsics to use AES instructions
kvn
parents: 13968
diff changeset
  1022
                                                                                                                        \
3c1437abcefd 7184394: add intrinsics to use AES instructions
kvn
parents: 13968
diff changeset
  1023
  do_class(com_sun_crypto_provider_cipherBlockChaining,            "com/sun/crypto/provider/CipherBlockChaining")       \
3c1437abcefd 7184394: add intrinsics to use AES instructions
kvn
parents: 13968
diff changeset
  1024
   do_intrinsic(_cipherBlockChaining_encryptAESCrypt, com_sun_crypto_provider_cipherBlockChaining, encrypt_name, byteArray_int_int_byteArray_int_signature, F_R)   \
3c1437abcefd 7184394: add intrinsics to use AES instructions
kvn
parents: 13968
diff changeset
  1025
   do_intrinsic(_cipherBlockChaining_decryptAESCrypt, com_sun_crypto_provider_cipherBlockChaining, decrypt_name, byteArray_int_int_byteArray_int_signature, F_R)   \
31587
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
  1026
   do_name(     encrypt_name,                                      "implEncrypt")                                       \
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
  1027
   do_name(     decrypt_name,                                      "implDecrypt")                                       \
22505
4523090c9674 8002074: Support for AES on SPARC
kvn
parents: 22245
diff changeset
  1028
   do_signature(byteArray_int_int_byteArray_int_signature,         "([BII[BI)I")                                        \
14132
3c1437abcefd 7184394: add intrinsics to use AES instructions
kvn
parents: 13968
diff changeset
  1029
                                                                                                                        \
57786
948ac3112da8 8225625: AES Electronic Codebook (ECB) encryption and decryption optimization using AVX512 + VAES instructions
srukmannagar
parents: 57503
diff changeset
  1030
  do_class(com_sun_crypto_provider_electronicCodeBook, "com/sun/crypto/provider/ElectronicCodeBook")                    \
948ac3112da8 8225625: AES Electronic Codebook (ECB) encryption and decryption optimization using AVX512 + VAES instructions
srukmannagar
parents: 57503
diff changeset
  1031
   do_intrinsic(_electronicCodeBook_encryptAESCrypt, com_sun_crypto_provider_electronicCodeBook, ecb_encrypt_name, byteArray_int_int_byteArray_int_signature, F_R)  \
948ac3112da8 8225625: AES Electronic Codebook (ECB) encryption and decryption optimization using AVX512 + VAES instructions
srukmannagar
parents: 57503
diff changeset
  1032
   do_intrinsic(_electronicCodeBook_decryptAESCrypt, com_sun_crypto_provider_electronicCodeBook, ecb_decrypt_name, byteArray_int_int_byteArray_int_signature, F_R)  \
948ac3112da8 8225625: AES Electronic Codebook (ECB) encryption and decryption optimization using AVX512 + VAES instructions
srukmannagar
parents: 57503
diff changeset
  1033
   do_name(ecb_encrypt_name, "implECBEncrypt")                                                                          \
948ac3112da8 8225625: AES Electronic Codebook (ECB) encryption and decryption optimization using AVX512 + VAES instructions
srukmannagar
parents: 57503
diff changeset
  1034
   do_name(ecb_decrypt_name, "implECBDecrypt")                                                                          \
948ac3112da8 8225625: AES Electronic Codebook (ECB) encryption and decryption optimization using AVX512 + VAES instructions
srukmannagar
parents: 57503
diff changeset
  1035
                                                                                                                        \
35154
a9b3c1984a01 8143925: Enhancing CounterMode.crypt() for AES
kvn
parents: 35135
diff changeset
  1036
  do_class(com_sun_crypto_provider_counterMode,      "com/sun/crypto/provider/CounterMode")                             \
a9b3c1984a01 8143925: Enhancing CounterMode.crypt() for AES
kvn
parents: 35135
diff changeset
  1037
   do_intrinsic(_counterMode_AESCrypt, com_sun_crypto_provider_counterMode, crypt_name, byteArray_int_int_byteArray_int_signature, F_R)   \
a9b3c1984a01 8143925: Enhancing CounterMode.crypt() for AES
kvn
parents: 35135
diff changeset
  1038
   do_name(     crypt_name,                                 "implCrypt")                                                    \
a9b3c1984a01 8143925: Enhancing CounterMode.crypt() for AES
kvn
parents: 35135
diff changeset
  1039
                                                                                                                        \
24953
9680119572be 8035968: Leverage CPU Instructions to Improve SHA Performance on SPARC
kvn
parents: 24328
diff changeset
  1040
  /* support for sun.security.provider.SHA */                                                                           \
9680119572be 8035968: Leverage CPU Instructions to Improve SHA Performance on SPARC
kvn
parents: 24328
diff changeset
  1041
  do_class(sun_security_provider_sha,                              "sun/security/provider/SHA")                         \
9680119572be 8035968: Leverage CPU Instructions to Improve SHA Performance on SPARC
kvn
parents: 24328
diff changeset
  1042
  do_intrinsic(_sha_implCompress, sun_security_provider_sha, implCompress_name, implCompress_signature, F_R)            \
31587
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
  1043
   do_name(     implCompress_name,                                 "implCompress0")                                     \
24953
9680119572be 8035968: Leverage CPU Instructions to Improve SHA Performance on SPARC
kvn
parents: 24328
diff changeset
  1044
   do_signature(implCompress_signature,                            "([BI)V")                                            \
9680119572be 8035968: Leverage CPU Instructions to Improve SHA Performance on SPARC
kvn
parents: 24328
diff changeset
  1045
                                                                                                                        \
9680119572be 8035968: Leverage CPU Instructions to Improve SHA Performance on SPARC
kvn
parents: 24328
diff changeset
  1046
  /* support for sun.security.provider.SHA2 */                                                                          \
9680119572be 8035968: Leverage CPU Instructions to Improve SHA Performance on SPARC
kvn
parents: 24328
diff changeset
  1047
  do_class(sun_security_provider_sha2,                             "sun/security/provider/SHA2")                        \
9680119572be 8035968: Leverage CPU Instructions to Improve SHA Performance on SPARC
kvn
parents: 24328
diff changeset
  1048
  do_intrinsic(_sha2_implCompress, sun_security_provider_sha2, implCompress_name, implCompress_signature, F_R)          \
9680119572be 8035968: Leverage CPU Instructions to Improve SHA Performance on SPARC
kvn
parents: 24328
diff changeset
  1049
                                                                                                                        \
9680119572be 8035968: Leverage CPU Instructions to Improve SHA Performance on SPARC
kvn
parents: 24328
diff changeset
  1050
  /* support for sun.security.provider.SHA5 */                                                                          \
9680119572be 8035968: Leverage CPU Instructions to Improve SHA Performance on SPARC
kvn
parents: 24328
diff changeset
  1051
  do_class(sun_security_provider_sha5,                             "sun/security/provider/SHA5")                        \
9680119572be 8035968: Leverage CPU Instructions to Improve SHA Performance on SPARC
kvn
parents: 24328
diff changeset
  1052
  do_intrinsic(_sha5_implCompress, sun_security_provider_sha5, implCompress_name, implCompress_signature, F_R)          \
9680119572be 8035968: Leverage CPU Instructions to Improve SHA Performance on SPARC
kvn
parents: 24328
diff changeset
  1053
                                                                                                                        \
9680119572be 8035968: Leverage CPU Instructions to Improve SHA Performance on SPARC
kvn
parents: 24328
diff changeset
  1054
  /* support for sun.security.provider.DigestBase */                                                                    \
9680119572be 8035968: Leverage CPU Instructions to Improve SHA Performance on SPARC
kvn
parents: 24328
diff changeset
  1055
  do_class(sun_security_provider_digestbase,                       "sun/security/provider/DigestBase")                  \
9680119572be 8035968: Leverage CPU Instructions to Improve SHA Performance on SPARC
kvn
parents: 24328
diff changeset
  1056
  do_intrinsic(_digestBase_implCompressMB, sun_security_provider_digestbase, implCompressMB_name, implCompressMB_signature, F_R)   \
31587
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
  1057
   do_name(     implCompressMB_name,                               "implCompressMultiBlock0")                           \
24953
9680119572be 8035968: Leverage CPU Instructions to Improve SHA Performance on SPARC
kvn
parents: 24328
diff changeset
  1058
   do_signature(implCompressMB_signature,                          "([BII)I")                                           \
9680119572be 8035968: Leverage CPU Instructions to Improve SHA Performance on SPARC
kvn
parents: 24328
diff changeset
  1059
                                                                                                                        \
50860
480a96a43b62 8205528: Base64 encoding algorithm using AVX512 instructions
kvn
parents: 50735
diff changeset
  1060
   /* support for java.util.Base64.Encoder*/                                                                            \
480a96a43b62 8205528: Base64 encoding algorithm using AVX512 instructions
kvn
parents: 50735
diff changeset
  1061
  do_class(java_util_Base64_Encoder, "java/util/Base64$Encoder")                                                        \
480a96a43b62 8205528: Base64 encoding algorithm using AVX512 instructions
kvn
parents: 50735
diff changeset
  1062
  do_intrinsic(_base64_encodeBlock, java_util_Base64_Encoder, encodeBlock_name, encodeBlock_signature, F_R)             \
480a96a43b62 8205528: Base64 encoding algorithm using AVX512 instructions
kvn
parents: 50735
diff changeset
  1063
  do_name(encodeBlock_name, "encodeBlock")                                                                              \
480a96a43b62 8205528: Base64 encoding algorithm using AVX512 instructions
kvn
parents: 50735
diff changeset
  1064
  do_signature(encodeBlock_signature, "([BII[BIZ)V")                                                                    \
480a96a43b62 8205528: Base64 encoding algorithm using AVX512 instructions
kvn
parents: 50735
diff changeset
  1065
                                                                                                                        \
31404
63e8fcd70bfc 8073108: Use x86 and SPARC CPU instructions for GHASH acceleration
ascarpino
parents: 31228
diff changeset
  1066
  /* support for com.sun.crypto.provider.GHASH */                                                                       \
63e8fcd70bfc 8073108: Use x86 and SPARC CPU instructions for GHASH acceleration
ascarpino
parents: 31228
diff changeset
  1067
  do_class(com_sun_crypto_provider_ghash, "com/sun/crypto/provider/GHASH")                                              \
63e8fcd70bfc 8073108: Use x86 and SPARC CPU instructions for GHASH acceleration
ascarpino
parents: 31228
diff changeset
  1068
  do_intrinsic(_ghash_processBlocks, com_sun_crypto_provider_ghash, processBlocks_name, ghash_processBlocks_signature, F_S) \
63e8fcd70bfc 8073108: Use x86 and SPARC CPU instructions for GHASH acceleration
ascarpino
parents: 31228
diff changeset
  1069
   do_name(processBlocks_name, "processBlocks")                                                                         \
63e8fcd70bfc 8073108: Use x86 and SPARC CPU instructions for GHASH acceleration
ascarpino
parents: 31228
diff changeset
  1070
   do_signature(ghash_processBlocks_signature, "([BII[J[J)V")                                                           \
63e8fcd70bfc 8073108: Use x86 and SPARC CPU instructions for GHASH acceleration
ascarpino
parents: 31228
diff changeset
  1071
                                                                                                                        \
18507
61bfc8995bb3 7088419: Use x86 Hardware CRC32 Instruction with java.util.zip.CRC32
drchase
parents: 18065
diff changeset
  1072
  /* support for java.util.zip */                                                                                       \
61bfc8995bb3 7088419: Use x86 Hardware CRC32 Instruction with java.util.zip.CRC32
drchase
parents: 18065
diff changeset
  1073
  do_class(java_util_zip_CRC32,           "java/util/zip/CRC32")                                                        \
61bfc8995bb3 7088419: Use x86 Hardware CRC32 Instruction with java.util.zip.CRC32
drchase
parents: 18065
diff changeset
  1074
  do_intrinsic(_updateCRC32,               java_util_zip_CRC32,   update_name, int2_int_signature,               F_SN)  \
61bfc8995bb3 7088419: Use x86 Hardware CRC32 Instruction with java.util.zip.CRC32
drchase
parents: 18065
diff changeset
  1075
   do_name(     update_name,                                      "update")                                             \
61bfc8995bb3 7088419: Use x86 Hardware CRC32 Instruction with java.util.zip.CRC32
drchase
parents: 18065
diff changeset
  1076
  do_intrinsic(_updateBytesCRC32,          java_util_zip_CRC32,   updateBytes_name, updateBytes_signature,       F_SN)  \
31587
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
  1077
   do_name(     updateBytes_name,                                "updateBytes0")                                        \
18507
61bfc8995bb3 7088419: Use x86 Hardware CRC32 Instruction with java.util.zip.CRC32
drchase
parents: 18065
diff changeset
  1078
   do_signature(updateBytes_signature,                           "(I[BII)I")                                            \
61bfc8995bb3 7088419: Use x86 Hardware CRC32 Instruction with java.util.zip.CRC32
drchase
parents: 18065
diff changeset
  1079
  do_intrinsic(_updateByteBufferCRC32,     java_util_zip_CRC32,   updateByteBuffer_name, updateByteBuffer_signature, F_SN) \
31587
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
  1080
   do_name(     updateByteBuffer_name,                           "updateByteBuffer0")                                   \
18507
61bfc8995bb3 7088419: Use x86 Hardware CRC32 Instruction with java.util.zip.CRC32
drchase
parents: 18065
diff changeset
  1081
   do_signature(updateByteBuffer_signature,                      "(IJII)I")                                             \
61bfc8995bb3 7088419: Use x86 Hardware CRC32 Instruction with java.util.zip.CRC32
drchase
parents: 18065
diff changeset
  1082
                                                                                                                        \
31515
6aed85dadbe6 8073583: C2 support for CRC32C on SPARC
kvn
parents: 31404
diff changeset
  1083
  /* support for java.util.zip.CRC32C */                                                                                \
6aed85dadbe6 8073583: C2 support for CRC32C on SPARC
kvn
parents: 31404
diff changeset
  1084
  do_class(java_util_zip_CRC32C,          "java/util/zip/CRC32C")                                                       \
31587
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
  1085
  do_intrinsic(_updateBytesCRC32C,         java_util_zip_CRC32C,  updateBytes_C_name, updateBytes_signature,       F_S) \
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
  1086
   do_name(     updateBytes_C_name,                               "updateBytes")                                        \
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
  1087
  do_intrinsic(_updateDirectByteBufferCRC32C, java_util_zip_CRC32C, updateDirectByteBuffer_C_name, updateByteBuffer_signature, F_S) \
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31584
diff changeset
  1088
   do_name(    updateDirectByteBuffer_C_name,                     "updateDirectByteBuffer")                             \
31515
6aed85dadbe6 8073583: C2 support for CRC32C on SPARC
kvn
parents: 31404
diff changeset
  1089
                                                                                                                        \
32581
632402f18fe6 8132081: C2 support for Adler32 on SPARC
kvn
parents: 32088
diff changeset
  1090
   /* support for java.util.zip.Adler32 */                                                                              \
632402f18fe6 8132081: C2 support for Adler32 on SPARC
kvn
parents: 32088
diff changeset
  1091
  do_class(java_util_zip_Adler32,        "java/util/zip/Adler32")                                                       \
632402f18fe6 8132081: C2 support for Adler32 on SPARC
kvn
parents: 32088
diff changeset
  1092
  do_intrinsic(_updateBytesAdler32,       java_util_zip_Adler32,  updateBytes_C_name,  updateBytes_signature,  F_SN)    \
632402f18fe6 8132081: C2 support for Adler32 on SPARC
kvn
parents: 32088
diff changeset
  1093
  do_intrinsic(_updateByteBufferAdler32,  java_util_zip_Adler32,  updateByteBuffer_A_name,  updateByteBuffer_signature,  F_SN) \
632402f18fe6 8132081: C2 support for Adler32 on SPARC
kvn
parents: 32088
diff changeset
  1094
   do_name(     updateByteBuffer_A_name,                          "updateByteBuffer")                                   \
632402f18fe6 8132081: C2 support for Adler32 on SPARC
kvn
parents: 32088
diff changeset
  1095
                                                                                                                        \
54439
d9b46b7de028 8221477: Inject os/cpu-specific constants into Unsafe from JVM
adinn
parents: 54347
diff changeset
  1096
  /* support for UnsafeConstants */                                                                                     \
d9b46b7de028 8221477: Inject os/cpu-specific constants into Unsafe from JVM
adinn
parents: 54347
diff changeset
  1097
  do_class(jdk_internal_misc_UnsafeConstants,      "jdk/internal/misc/UnsafeConstants")                                 \
d9b46b7de028 8221477: Inject os/cpu-specific constants into Unsafe from JVM
adinn
parents: 54347
diff changeset
  1098
                                                                                                                        \
33606
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1099
  /* support for Unsafe */                                                                                              \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1100
  do_class(jdk_internal_misc_Unsafe,               "jdk/internal/misc/Unsafe")                                          \
55595
cf5a438b3c41 8226409: Enable argument profiling for sun.misc.Unsafe.put*/get*
vlivanov
parents: 55159
diff changeset
  1101
  do_class(sun_misc_Unsafe,                        "sun/misc/Unsafe")                                                   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1102
                                                                                                                        \
57804
9b7b9f16dfd9 8224974: Implement JEP 352
adinn
parents: 57786
diff changeset
  1103
  do_intrinsic(_writeback0,               jdk_internal_misc_Unsafe,     writeback0_name, long_void_signature , F_RN)             \
9b7b9f16dfd9 8224974: Implement JEP 352
adinn
parents: 57786
diff changeset
  1104
   do_name(     writeback0_name,                                        "writeback0")                                            \
9b7b9f16dfd9 8224974: Implement JEP 352
adinn
parents: 57786
diff changeset
  1105
  do_intrinsic(_writebackPreSync0,        jdk_internal_misc_Unsafe,     writebackPreSync0_name, void_method_signature , F_RN)    \
9b7b9f16dfd9 8224974: Implement JEP 352
adinn
parents: 57786
diff changeset
  1106
   do_name(     writebackPreSync0_name,                                 "writebackPreSync0")                                     \
9b7b9f16dfd9 8224974: Implement JEP 352
adinn
parents: 57786
diff changeset
  1107
  do_intrinsic(_writebackPostSync0,       jdk_internal_misc_Unsafe,    writebackPostSync0_name, void_method_signature , F_RN)    \
9b7b9f16dfd9 8224974: Implement JEP 352
adinn
parents: 57786
diff changeset
  1108
   do_name(     writebackPostSync0_name,                                "writebackPostSync0")                                    \
33606
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1109
  do_intrinsic(_allocateInstance,         jdk_internal_misc_Unsafe,     allocateInstance_name, allocateInstance_signature, F_RN) \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1110
   do_name(     allocateInstance_name,                                  "allocateInstance")                                      \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1111
   do_signature(allocateInstance_signature,                             "(Ljava/lang/Class;)Ljava/lang/Object;")                 \
36553
203b2b5d149b 8150465: Unsafe methods to produce uninitialized arrays
shade
parents: 36551
diff changeset
  1112
  do_intrinsic(_allocateUninitializedArray, jdk_internal_misc_Unsafe,   allocateUninitializedArray_name, newArray_signature,  F_R) \
203b2b5d149b 8150465: Unsafe methods to produce uninitialized arrays
shade
parents: 36551
diff changeset
  1113
   do_name(     allocateUninitializedArray_name,                        "allocateUninitializedArray0")                           \
33606
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1114
  do_intrinsic(_copyMemory,               jdk_internal_misc_Unsafe,     copyMemory_name, copyMemory_signature,         F_RN)     \
36551
77f29c57ed2e 8149159: Clean up Unsafe
mikael
parents: 36316
diff changeset
  1115
   do_name(     copyMemory_name,                                        "copyMemory0")                                           \
33606
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1116
   do_signature(copyMemory_signature,                                   "(Ljava/lang/Object;JLjava/lang/Object;JJ)V")            \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1117
  do_intrinsic(_loadFence,                jdk_internal_misc_Unsafe,     loadFence_name, loadFence_signature,           F_RN)     \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1118
   do_name(     loadFence_name,                                         "loadFence")                                             \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1119
   do_alias(    loadFence_signature,                                    void_method_signature)                                   \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1120
  do_intrinsic(_storeFence,               jdk_internal_misc_Unsafe,     storeFence_name, storeFence_signature,         F_RN)     \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1121
   do_name(     storeFence_name,                                        "storeFence")                                            \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1122
   do_alias(    storeFence_signature,                                   void_method_signature)                                   \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1123
  do_intrinsic(_fullFence,                jdk_internal_misc_Unsafe,     fullFence_name, fullFence_signature,           F_RN)     \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1124
   do_name(     fullFence_name,                                         "fullFence")                                             \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1125
   do_alias(    fullFence_signature,                                    void_method_signature)                                   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1126
                                                                                                                        \
28912
27fac2f8fdbe 8063137: Never-taken branches should be pruned when GWT LambdaForms are shared
vlivanov
parents: 28510
diff changeset
  1127
  /* Custom branch frequencies profiling support for JSR292 */                                                          \
27fac2f8fdbe 8063137: Never-taken branches should be pruned when GWT LambdaForms are shared
vlivanov
parents: 28510
diff changeset
  1128
  do_class(java_lang_invoke_MethodHandleImpl,               "java/lang/invoke/MethodHandleImpl")                        \
30189
0dce8215957a 8075263: MHI::checkCustomized isn't eliminated for inlined MethodHandles
vlivanov
parents: 28957
diff changeset
  1129
  do_intrinsic(_profileBoolean, java_lang_invoke_MethodHandleImpl, profileBoolean_name, profileBoolean_signature, F_S)  \
0dce8215957a 8075263: MHI::checkCustomized isn't eliminated for inlined MethodHandles
vlivanov
parents: 28957
diff changeset
  1130
   do_name(     profileBoolean_name,                             "profileBoolean")                                      \
0dce8215957a 8075263: MHI::checkCustomized isn't eliminated for inlined MethodHandles
vlivanov
parents: 28957
diff changeset
  1131
   do_signature(profileBoolean_signature,                        "(Z[I)Z")                                              \
0dce8215957a 8075263: MHI::checkCustomized isn't eliminated for inlined MethodHandles
vlivanov
parents: 28957
diff changeset
  1132
  do_intrinsic(_isCompileConstant, java_lang_invoke_MethodHandleImpl, isCompileConstant_name, isCompileConstant_signature, F_S) \
0dce8215957a 8075263: MHI::checkCustomized isn't eliminated for inlined MethodHandles
vlivanov
parents: 28957
diff changeset
  1133
   do_name(     isCompileConstant_name,                          "isCompileConstant")                                   \
0dce8215957a 8075263: MHI::checkCustomized isn't eliminated for inlined MethodHandles
vlivanov
parents: 28957
diff changeset
  1134
   do_alias(    isCompileConstant_signature,                      object_boolean_signature)                             \
28912
27fac2f8fdbe 8063137: Never-taken branches should be pruned when GWT LambdaForms are shared
vlivanov
parents: 28510
diff changeset
  1135
                                                                                                                        \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1136
  /* unsafe memory references (there are a lot of them...) */                                                           \
52220
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1137
  do_signature(getReference_signature,    "(Ljava/lang/Object;J)Ljava/lang/Object;")                                    \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1138
  do_signature(putReference_signature,    "(Ljava/lang/Object;JLjava/lang/Object;)V")                                   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1139
  do_signature(getBoolean_signature,      "(Ljava/lang/Object;J)Z")                                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1140
  do_signature(putBoolean_signature,      "(Ljava/lang/Object;JZ)V")                                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1141
  do_signature(getByte_signature,         "(Ljava/lang/Object;J)B")                                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1142
  do_signature(putByte_signature,         "(Ljava/lang/Object;JB)V")                                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1143
  do_signature(getShort_signature,        "(Ljava/lang/Object;J)S")                                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1144
  do_signature(putShort_signature,        "(Ljava/lang/Object;JS)V")                                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1145
  do_signature(getChar_signature,         "(Ljava/lang/Object;J)C")                                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1146
  do_signature(putChar_signature,         "(Ljava/lang/Object;JC)V")                                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1147
  do_signature(getInt_signature,          "(Ljava/lang/Object;J)I")                                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1148
  do_signature(putInt_signature,          "(Ljava/lang/Object;JI)V")                                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1149
  do_signature(getLong_signature,         "(Ljava/lang/Object;J)J")                                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1150
  do_signature(putLong_signature,         "(Ljava/lang/Object;JJ)V")                                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1151
  do_signature(getFloat_signature,        "(Ljava/lang/Object;J)F")                                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1152
  do_signature(putFloat_signature,        "(Ljava/lang/Object;JF)V")                                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1153
  do_signature(getDouble_signature,       "(Ljava/lang/Object;J)D")                                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1154
  do_signature(putDouble_signature,       "(Ljava/lang/Object;JD)V")                                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1155
                                                                                                                        \
52220
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1156
  do_name(getReference_name,"getReference")     do_name(putReference_name,"putReference")                               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1157
  do_name(getBoolean_name,"getBoolean")         do_name(putBoolean_name,"putBoolean")                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1158
  do_name(getByte_name,"getByte")               do_name(putByte_name,"putByte")                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1159
  do_name(getShort_name,"getShort")             do_name(putShort_name,"putShort")                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1160
  do_name(getChar_name,"getChar")               do_name(putChar_name,"putChar")                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1161
  do_name(getInt_name,"getInt")                 do_name(putInt_name,"putInt")                                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1162
  do_name(getLong_name,"getLong")               do_name(putLong_name,"putLong")                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1163
  do_name(getFloat_name,"getFloat")             do_name(putFloat_name,"putFloat")                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1164
  do_name(getDouble_name,"getDouble")           do_name(putDouble_name,"putDouble")                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1165
                                                                                                                        \
52220
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1166
  do_intrinsic(_getReference,       jdk_internal_misc_Unsafe,     getReference_name, getReference_signature,     F_RN)  \
33606
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1167
  do_intrinsic(_getBoolean,         jdk_internal_misc_Unsafe,     getBoolean_name, getBoolean_signature,         F_RN)  \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1168
  do_intrinsic(_getByte,            jdk_internal_misc_Unsafe,     getByte_name, getByte_signature,               F_RN)  \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1169
  do_intrinsic(_getShort,           jdk_internal_misc_Unsafe,     getShort_name, getShort_signature,             F_RN)  \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1170
  do_intrinsic(_getChar,            jdk_internal_misc_Unsafe,     getChar_name, getChar_signature,               F_RN)  \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1171
  do_intrinsic(_getInt,             jdk_internal_misc_Unsafe,     getInt_name, getInt_signature,                 F_RN)  \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1172
  do_intrinsic(_getLong,            jdk_internal_misc_Unsafe,     getLong_name, getLong_signature,               F_RN)  \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1173
  do_intrinsic(_getFloat,           jdk_internal_misc_Unsafe,     getFloat_name, getFloat_signature,             F_RN)  \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1174
  do_intrinsic(_getDouble,          jdk_internal_misc_Unsafe,     getDouble_name, getDouble_signature,           F_RN)  \
52220
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1175
  do_intrinsic(_putReference,       jdk_internal_misc_Unsafe,     putReference_name, putReference_signature,     F_RN)  \
33606
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1176
  do_intrinsic(_putBoolean,         jdk_internal_misc_Unsafe,     putBoolean_name, putBoolean_signature,         F_RN)  \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1177
  do_intrinsic(_putByte,            jdk_internal_misc_Unsafe,     putByte_name, putByte_signature,               F_RN)  \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1178
  do_intrinsic(_putShort,           jdk_internal_misc_Unsafe,     putShort_name, putShort_signature,             F_RN)  \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1179
  do_intrinsic(_putChar,            jdk_internal_misc_Unsafe,     putChar_name, putChar_signature,               F_RN)  \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1180
  do_intrinsic(_putInt,             jdk_internal_misc_Unsafe,     putInt_name, putInt_signature,                 F_RN)  \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1181
  do_intrinsic(_putLong,            jdk_internal_misc_Unsafe,     putLong_name, putLong_signature,               F_RN)  \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1182
  do_intrinsic(_putFloat,           jdk_internal_misc_Unsafe,     putFloat_name, putFloat_signature,             F_RN)  \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1183
  do_intrinsic(_putDouble,          jdk_internal_misc_Unsafe,     putDouble_name, putDouble_signature,           F_RN)  \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1184
                                                                                                                        \
52220
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1185
  do_name(getReferenceVolatile_name,"getReferenceVolatile")   do_name(putReferenceVolatile_name,"putReferenceVolatile") \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1186
  do_name(getBooleanVolatile_name,"getBooleanVolatile")       do_name(putBooleanVolatile_name,"putBooleanVolatile")     \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1187
  do_name(getByteVolatile_name,"getByteVolatile")             do_name(putByteVolatile_name,"putByteVolatile")           \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1188
  do_name(getShortVolatile_name,"getShortVolatile")           do_name(putShortVolatile_name,"putShortVolatile")         \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1189
  do_name(getCharVolatile_name,"getCharVolatile")             do_name(putCharVolatile_name,"putCharVolatile")           \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1190
  do_name(getIntVolatile_name,"getIntVolatile")               do_name(putIntVolatile_name,"putIntVolatile")             \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1191
  do_name(getLongVolatile_name,"getLongVolatile")             do_name(putLongVolatile_name,"putLongVolatile")           \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1192
  do_name(getFloatVolatile_name,"getFloatVolatile")           do_name(putFloatVolatile_name,"putFloatVolatile")         \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1193
  do_name(getDoubleVolatile_name,"getDoubleVolatile")         do_name(putDoubleVolatile_name,"putDoubleVolatile")       \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1194
                                                                                                                        \
52220
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1195
  do_intrinsic(_getReferenceVolatile,     jdk_internal_misc_Unsafe,     getReferenceVolatile_name, getReference_signature, F_RN)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1196
  do_intrinsic(_getBooleanVolatile,       jdk_internal_misc_Unsafe,     getBooleanVolatile_name, getBoolean_signature,     F_RN)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1197
  do_intrinsic(_getByteVolatile,          jdk_internal_misc_Unsafe,     getByteVolatile_name, getByte_signature,           F_RN)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1198
  do_intrinsic(_getShortVolatile,         jdk_internal_misc_Unsafe,     getShortVolatile_name, getShort_signature,         F_RN)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1199
  do_intrinsic(_getCharVolatile,          jdk_internal_misc_Unsafe,     getCharVolatile_name, getChar_signature,           F_RN)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1200
  do_intrinsic(_getIntVolatile,           jdk_internal_misc_Unsafe,     getIntVolatile_name, getInt_signature,             F_RN)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1201
  do_intrinsic(_getLongVolatile,          jdk_internal_misc_Unsafe,     getLongVolatile_name, getLong_signature,           F_RN)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1202
  do_intrinsic(_getFloatVolatile,         jdk_internal_misc_Unsafe,     getFloatVolatile_name, getFloat_signature,         F_RN)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1203
  do_intrinsic(_getDoubleVolatile,        jdk_internal_misc_Unsafe,     getDoubleVolatile_name, getDouble_signature,       F_RN)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1204
  do_intrinsic(_putReferenceVolatile,     jdk_internal_misc_Unsafe,     putReferenceVolatile_name, putReference_signature, F_RN)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1205
  do_intrinsic(_putBooleanVolatile,       jdk_internal_misc_Unsafe,     putBooleanVolatile_name, putBoolean_signature,     F_RN)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1206
  do_intrinsic(_putByteVolatile,          jdk_internal_misc_Unsafe,     putByteVolatile_name, putByte_signature,           F_RN)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1207
  do_intrinsic(_putShortVolatile,         jdk_internal_misc_Unsafe,     putShortVolatile_name, putShort_signature,         F_RN)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1208
  do_intrinsic(_putCharVolatile,          jdk_internal_misc_Unsafe,     putCharVolatile_name, putChar_signature,           F_RN)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1209
  do_intrinsic(_putIntVolatile,           jdk_internal_misc_Unsafe,     putIntVolatile_name, putInt_signature,             F_RN)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1210
  do_intrinsic(_putLongVolatile,          jdk_internal_misc_Unsafe,     putLongVolatile_name, putLong_signature,           F_RN)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1211
  do_intrinsic(_putFloatVolatile,         jdk_internal_misc_Unsafe,     putFloatVolatile_name, putFloat_signature,         F_RN)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1212
  do_intrinsic(_putDoubleVolatile,        jdk_internal_misc_Unsafe,     putDoubleVolatile_name, putDouble_signature,       F_RN)  \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1213
                                                                                                                        \
52220
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1214
  do_name(getReferenceOpaque_name,"getReferenceOpaque") do_name(putReferenceOpaque_name,"putReferenceOpaque")           \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1215
  do_name(getBooleanOpaque_name,"getBooleanOpaque")     do_name(putBooleanOpaque_name,"putBooleanOpaque")               \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1216
  do_name(getByteOpaque_name,"getByteOpaque")           do_name(putByteOpaque_name,"putByteOpaque")                     \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1217
  do_name(getShortOpaque_name,"getShortOpaque")         do_name(putShortOpaque_name,"putShortOpaque")                   \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1218
  do_name(getCharOpaque_name,"getCharOpaque")           do_name(putCharOpaque_name,"putCharOpaque")                     \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1219
  do_name(getIntOpaque_name,"getIntOpaque")             do_name(putIntOpaque_name,"putIntOpaque")                       \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1220
  do_name(getLongOpaque_name,"getLongOpaque")           do_name(putLongOpaque_name,"putLongOpaque")                     \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1221
  do_name(getFloatOpaque_name,"getFloatOpaque")         do_name(putFloatOpaque_name,"putFloatOpaque")                   \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1222
  do_name(getDoubleOpaque_name,"getDoubleOpaque")       do_name(putDoubleOpaque_name,"putDoubleOpaque")                 \
36316
7a83de7aabca 8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents: 35954
diff changeset
  1223
                                                                                                                        \
52220
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1224
  do_intrinsic(_getReferenceOpaque,       jdk_internal_misc_Unsafe,        getReferenceOpaque_name, getReference_signature, F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1225
  do_intrinsic(_getBooleanOpaque,         jdk_internal_misc_Unsafe,        getBooleanOpaque_name, getBoolean_signature,     F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1226
  do_intrinsic(_getByteOpaque,            jdk_internal_misc_Unsafe,        getByteOpaque_name, getByte_signature,           F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1227
  do_intrinsic(_getShortOpaque,           jdk_internal_misc_Unsafe,        getShortOpaque_name, getShort_signature,         F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1228
  do_intrinsic(_getCharOpaque,            jdk_internal_misc_Unsafe,        getCharOpaque_name, getChar_signature,           F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1229
  do_intrinsic(_getIntOpaque,             jdk_internal_misc_Unsafe,        getIntOpaque_name, getInt_signature,             F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1230
  do_intrinsic(_getLongOpaque,            jdk_internal_misc_Unsafe,        getLongOpaque_name, getLong_signature,           F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1231
  do_intrinsic(_getFloatOpaque,           jdk_internal_misc_Unsafe,        getFloatOpaque_name, getFloat_signature,         F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1232
  do_intrinsic(_getDoubleOpaque,          jdk_internal_misc_Unsafe,        getDoubleOpaque_name, getDouble_signature,       F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1233
  do_intrinsic(_putReferenceOpaque,       jdk_internal_misc_Unsafe,        putReferenceOpaque_name, putReference_signature, F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1234
  do_intrinsic(_putBooleanOpaque,         jdk_internal_misc_Unsafe,        putBooleanOpaque_name, putBoolean_signature,     F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1235
  do_intrinsic(_putByteOpaque,            jdk_internal_misc_Unsafe,        putByteOpaque_name, putByte_signature,           F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1236
  do_intrinsic(_putShortOpaque,           jdk_internal_misc_Unsafe,        putShortOpaque_name, putShort_signature,         F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1237
  do_intrinsic(_putCharOpaque,            jdk_internal_misc_Unsafe,        putCharOpaque_name, putChar_signature,           F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1238
  do_intrinsic(_putIntOpaque,             jdk_internal_misc_Unsafe,        putIntOpaque_name, putInt_signature,             F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1239
  do_intrinsic(_putLongOpaque,            jdk_internal_misc_Unsafe,        putLongOpaque_name, putLong_signature,           F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1240
  do_intrinsic(_putFloatOpaque,           jdk_internal_misc_Unsafe,        putFloatOpaque_name, putFloat_signature,         F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1241
  do_intrinsic(_putDoubleOpaque,          jdk_internal_misc_Unsafe,        putDoubleOpaque_name, putDouble_signature,       F_R)  \
36316
7a83de7aabca 8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents: 35954
diff changeset
  1242
                                                                                                                        \
52220
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1243
  do_name(getReferenceAcquire_name,  "getReferenceAcquire") do_name(putReferenceRelease_name,  "putReferenceRelease")   \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1244
  do_name(getBooleanAcquire_name, "getBooleanAcquire")      do_name(putBooleanRelease_name, "putBooleanRelease")        \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1245
  do_name(getByteAcquire_name,    "getByteAcquire")         do_name(putByteRelease_name,    "putByteRelease")           \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1246
  do_name(getShortAcquire_name,   "getShortAcquire")        do_name(putShortRelease_name,   "putShortRelease")          \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1247
  do_name(getCharAcquire_name,    "getCharAcquire")         do_name(putCharRelease_name,    "putCharRelease")           \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1248
  do_name(getIntAcquire_name,     "getIntAcquire")          do_name(putIntRelease_name,     "putIntRelease")            \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1249
  do_name(getLongAcquire_name,    "getLongAcquire")         do_name(putLongRelease_name,    "putLongRelease")           \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1250
  do_name(getFloatAcquire_name,   "getFloatAcquire")        do_name(putFloatRelease_name,   "putFloatRelease")          \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1251
  do_name(getDoubleAcquire_name,  "getDoubleAcquire")       do_name(putDoubleRelease_name,  "putDoubleRelease")         \
36316
7a83de7aabca 8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents: 35954
diff changeset
  1252
                                                                                                                        \
52220
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1253
  do_intrinsic(_getReferenceAcquire,     jdk_internal_misc_Unsafe,        getReferenceAcquire_name, getReference_signature, F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1254
  do_intrinsic(_getBooleanAcquire,       jdk_internal_misc_Unsafe,        getBooleanAcquire_name, getBoolean_signature,     F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1255
  do_intrinsic(_getByteAcquire,          jdk_internal_misc_Unsafe,        getByteAcquire_name, getByte_signature,           F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1256
  do_intrinsic(_getShortAcquire,         jdk_internal_misc_Unsafe,        getShortAcquire_name, getShort_signature,         F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1257
  do_intrinsic(_getCharAcquire,          jdk_internal_misc_Unsafe,        getCharAcquire_name, getChar_signature,           F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1258
  do_intrinsic(_getIntAcquire,           jdk_internal_misc_Unsafe,        getIntAcquire_name, getInt_signature,             F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1259
  do_intrinsic(_getLongAcquire,          jdk_internal_misc_Unsafe,        getLongAcquire_name, getLong_signature,           F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1260
  do_intrinsic(_getFloatAcquire,         jdk_internal_misc_Unsafe,        getFloatAcquire_name, getFloat_signature,         F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1261
  do_intrinsic(_getDoubleAcquire,        jdk_internal_misc_Unsafe,        getDoubleAcquire_name, getDouble_signature,       F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1262
  do_intrinsic(_putReferenceRelease,     jdk_internal_misc_Unsafe,        putReferenceRelease_name, putReference_signature, F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1263
  do_intrinsic(_putBooleanRelease,       jdk_internal_misc_Unsafe,        putBooleanRelease_name, putBoolean_signature,     F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1264
  do_intrinsic(_putByteRelease,          jdk_internal_misc_Unsafe,        putByteRelease_name, putByte_signature,           F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1265
  do_intrinsic(_putShortRelease,         jdk_internal_misc_Unsafe,        putShortRelease_name, putShort_signature,         F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1266
  do_intrinsic(_putCharRelease,          jdk_internal_misc_Unsafe,        putCharRelease_name, putChar_signature,           F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1267
  do_intrinsic(_putIntRelease,           jdk_internal_misc_Unsafe,        putIntRelease_name, putInt_signature,             F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1268
  do_intrinsic(_putLongRelease,          jdk_internal_misc_Unsafe,        putLongRelease_name, putLong_signature,           F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1269
  do_intrinsic(_putFloatRelease,         jdk_internal_misc_Unsafe,        putFloatRelease_name, putFloat_signature,         F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1270
  do_intrinsic(_putDoubleRelease,        jdk_internal_misc_Unsafe,        putDoubleRelease_name, putDouble_signature,       F_R)  \
36316
7a83de7aabca 8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents: 35954
diff changeset
  1271
                                                                                                                        \
30209
8ea30dc99369 8026049: (bf) Intrinsify ByteBuffer.put{Int, Double, Float, ...} methods
aph
parents: 30189
diff changeset
  1272
  do_name(getShortUnaligned_name,"getShortUnaligned")     do_name(putShortUnaligned_name,"putShortUnaligned")           \
8ea30dc99369 8026049: (bf) Intrinsify ByteBuffer.put{Int, Double, Float, ...} methods
aph
parents: 30189
diff changeset
  1273
  do_name(getCharUnaligned_name,"getCharUnaligned")       do_name(putCharUnaligned_name,"putCharUnaligned")             \
8ea30dc99369 8026049: (bf) Intrinsify ByteBuffer.put{Int, Double, Float, ...} methods
aph
parents: 30189
diff changeset
  1274
  do_name(getIntUnaligned_name,"getIntUnaligned")         do_name(putIntUnaligned_name,"putIntUnaligned")               \
8ea30dc99369 8026049: (bf) Intrinsify ByteBuffer.put{Int, Double, Float, ...} methods
aph
parents: 30189
diff changeset
  1275
  do_name(getLongUnaligned_name,"getLongUnaligned")       do_name(putLongUnaligned_name,"putLongUnaligned")             \
8ea30dc99369 8026049: (bf) Intrinsify ByteBuffer.put{Int, Double, Float, ...} methods
aph
parents: 30189
diff changeset
  1276
                                                                                                                        \
33606
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1277
  do_intrinsic(_getShortUnaligned,         jdk_internal_misc_Unsafe,    getShortUnaligned_name, getShort_signature,     F_R)  \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1278
  do_intrinsic(_getCharUnaligned,          jdk_internal_misc_Unsafe,    getCharUnaligned_name, getChar_signature,       F_R)  \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1279
  do_intrinsic(_getIntUnaligned,           jdk_internal_misc_Unsafe,    getIntUnaligned_name, getInt_signature,         F_R)  \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1280
  do_intrinsic(_getLongUnaligned,          jdk_internal_misc_Unsafe,    getLongUnaligned_name, getLong_signature,       F_R)  \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1281
  do_intrinsic(_putShortUnaligned,         jdk_internal_misc_Unsafe,    putShortUnaligned_name, putShort_signature,     F_R)  \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1282
  do_intrinsic(_putCharUnaligned,          jdk_internal_misc_Unsafe,    putCharUnaligned_name, putChar_signature,       F_R)  \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1283
  do_intrinsic(_putIntUnaligned,           jdk_internal_misc_Unsafe,    putIntUnaligned_name, putInt_signature,         F_R)  \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1284
  do_intrinsic(_putLongUnaligned,          jdk_internal_misc_Unsafe,    putLongUnaligned_name, putLong_signature,       F_R)  \
30209
8ea30dc99369 8026049: (bf) Intrinsify ByteBuffer.put{Int, Double, Float, ...} methods
aph
parents: 30189
diff changeset
  1285
                                                                                                                        \
52220
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1286
  do_signature(compareAndSetReference_signature,      "(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Z")        \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1287
  do_signature(compareAndExchangeReference_signature, "(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;") \
45055
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1288
  do_signature(compareAndSetLong_signature,        "(Ljava/lang/Object;JJJ)Z")                                          \
36316
7a83de7aabca 8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents: 35954
diff changeset
  1289
  do_signature(compareAndExchangeLong_signature,   "(Ljava/lang/Object;JJJ)J")                                          \
45055
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1290
  do_signature(compareAndSetInt_signature,         "(Ljava/lang/Object;JII)Z")                                          \
36316
7a83de7aabca 8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents: 35954
diff changeset
  1291
  do_signature(compareAndExchangeInt_signature,    "(Ljava/lang/Object;JII)I")                                          \
45055
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1292
  do_signature(compareAndSetByte_signature,        "(Ljava/lang/Object;JBB)Z")                                          \
39419
cc993a4ab581 8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents: 38699
diff changeset
  1293
  do_signature(compareAndExchangeByte_signature,   "(Ljava/lang/Object;JBB)B")                                          \
45055
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1294
  do_signature(compareAndSetShort_signature,       "(Ljava/lang/Object;JSS)Z")                                          \
39419
cc993a4ab581 8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents: 38699
diff changeset
  1295
  do_signature(compareAndExchangeShort_signature,  "(Ljava/lang/Object;JSS)S")                                          \
36316
7a83de7aabca 8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents: 35954
diff changeset
  1296
                                                                                                                        \
52220
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1297
  do_name(compareAndSetReference_name,              "compareAndSetReference")                                           \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1298
  do_name(compareAndExchangeReference_name,         "compareAndExchangeReference")                                      \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1299
  do_name(compareAndExchangeReferenceAcquire_name,  "compareAndExchangeReferenceAcquire")                               \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1300
  do_name(compareAndExchangeReferenceRelease_name,  "compareAndExchangeReferenceRelease")                               \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1301
  do_name(compareAndSetLong_name,                   "compareAndSetLong")                                                \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1302
  do_name(compareAndExchangeLong_name,              "compareAndExchangeLong")                                           \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1303
  do_name(compareAndExchangeLongAcquire_name,       "compareAndExchangeLongAcquire")                                    \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1304
  do_name(compareAndExchangeLongRelease_name,       "compareAndExchangeLongRelease")                                    \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1305
  do_name(compareAndSetInt_name,                    "compareAndSetInt")                                                 \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1306
  do_name(compareAndExchangeInt_name,               "compareAndExchangeInt")                                            \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1307
  do_name(compareAndExchangeIntAcquire_name,        "compareAndExchangeIntAcquire")                                     \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1308
  do_name(compareAndExchangeIntRelease_name,        "compareAndExchangeIntRelease")                                     \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1309
  do_name(compareAndSetByte_name,                   "compareAndSetByte")                                                \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1310
  do_name(compareAndExchangeByte_name,              "compareAndExchangeByte")                                           \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1311
  do_name(compareAndExchangeByteAcquire_name,       "compareAndExchangeByteAcquire")                                    \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1312
  do_name(compareAndExchangeByteRelease_name,       "compareAndExchangeByteRelease")                                    \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1313
  do_name(compareAndSetShort_name,                  "compareAndSetShort")                                               \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1314
  do_name(compareAndExchangeShort_name,             "compareAndExchangeShort")                                          \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1315
  do_name(compareAndExchangeShortAcquire_name,      "compareAndExchangeShortAcquire")                                   \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1316
  do_name(compareAndExchangeShortRelease_name,      "compareAndExchangeShortRelease")                                   \
36316
7a83de7aabca 8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents: 35954
diff changeset
  1317
                                                                                                                        \
52220
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1318
  do_name(weakCompareAndSetReferencePlain_name,     "weakCompareAndSetReferencePlain")                                  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1319
  do_name(weakCompareAndSetReferenceAcquire_name,   "weakCompareAndSetReferenceAcquire")                                \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1320
  do_name(weakCompareAndSetReferenceRelease_name,   "weakCompareAndSetReferenceRelease")                                \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1321
  do_name(weakCompareAndSetReference_name,          "weakCompareAndSetReference")                                       \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1322
  do_name(weakCompareAndSetLongPlain_name,          "weakCompareAndSetLongPlain")                                       \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1323
  do_name(weakCompareAndSetLongAcquire_name,        "weakCompareAndSetLongAcquire")                                     \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1324
  do_name(weakCompareAndSetLongRelease_name,        "weakCompareAndSetLongRelease")                                     \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1325
  do_name(weakCompareAndSetLong_name,               "weakCompareAndSetLong")                                            \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1326
  do_name(weakCompareAndSetIntPlain_name,           "weakCompareAndSetIntPlain")                                        \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1327
  do_name(weakCompareAndSetIntAcquire_name,         "weakCompareAndSetIntAcquire")                                      \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1328
  do_name(weakCompareAndSetIntRelease_name,         "weakCompareAndSetIntRelease")                                      \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1329
  do_name(weakCompareAndSetInt_name,                "weakCompareAndSetInt")                                             \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1330
  do_name(weakCompareAndSetBytePlain_name,          "weakCompareAndSetBytePlain")                                       \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1331
  do_name(weakCompareAndSetByteAcquire_name,        "weakCompareAndSetByteAcquire")                                     \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1332
  do_name(weakCompareAndSetByteRelease_name,        "weakCompareAndSetByteRelease")                                     \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1333
  do_name(weakCompareAndSetByte_name,               "weakCompareAndSetByte")                                            \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1334
  do_name(weakCompareAndSetShortPlain_name,         "weakCompareAndSetShortPlain")                                      \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1335
  do_name(weakCompareAndSetShortAcquire_name,       "weakCompareAndSetShortAcquire")                                    \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1336
  do_name(weakCompareAndSetShortRelease_name,       "weakCompareAndSetShortRelease")                                    \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1337
  do_name(weakCompareAndSetShort_name,              "weakCompareAndSetShort")                                           \
36316
7a83de7aabca 8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents: 35954
diff changeset
  1338
                                                                                                                        \
52220
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1339
  do_intrinsic(_compareAndSetReference,              jdk_internal_misc_Unsafe,  compareAndSetReference_name,              compareAndSetReference_signature,      F_RN) \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1340
  do_intrinsic(_compareAndExchangeReference,         jdk_internal_misc_Unsafe,  compareAndExchangeReference_name,         compareAndExchangeReference_signature, F_RN) \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1341
  do_intrinsic(_compareAndExchangeReferenceAcquire,  jdk_internal_misc_Unsafe,  compareAndExchangeReferenceAcquire_name,  compareAndExchangeReference_signature, F_R)  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1342
  do_intrinsic(_compareAndExchangeReferenceRelease,  jdk_internal_misc_Unsafe,  compareAndExchangeReferenceRelease_name,  compareAndExchangeReference_signature, F_R)  \
45055
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1343
  do_intrinsic(_compareAndSetLong,                jdk_internal_misc_Unsafe,  compareAndSetLong_name,                compareAndSetLong_signature,        F_RN) \
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1344
  do_intrinsic(_compareAndExchangeLong,           jdk_internal_misc_Unsafe,  compareAndExchangeLong_name,           compareAndExchangeLong_signature,   F_RN) \
36316
7a83de7aabca 8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents: 35954
diff changeset
  1345
  do_intrinsic(_compareAndExchangeLongAcquire,    jdk_internal_misc_Unsafe,  compareAndExchangeLongAcquire_name,    compareAndExchangeLong_signature,   F_R)  \
7a83de7aabca 8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents: 35954
diff changeset
  1346
  do_intrinsic(_compareAndExchangeLongRelease,    jdk_internal_misc_Unsafe,  compareAndExchangeLongRelease_name,    compareAndExchangeLong_signature,   F_R)  \
45055
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1347
  do_intrinsic(_compareAndSetInt,                 jdk_internal_misc_Unsafe,  compareAndSetInt_name,                 compareAndSetInt_signature,         F_RN) \
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1348
  do_intrinsic(_compareAndExchangeInt,            jdk_internal_misc_Unsafe,  compareAndExchangeInt_name,            compareAndExchangeInt_signature,    F_RN) \
36316
7a83de7aabca 8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents: 35954
diff changeset
  1349
  do_intrinsic(_compareAndExchangeIntAcquire,     jdk_internal_misc_Unsafe,  compareAndExchangeIntAcquire_name,     compareAndExchangeInt_signature,    F_R)  \
7a83de7aabca 8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents: 35954
diff changeset
  1350
  do_intrinsic(_compareAndExchangeIntRelease,     jdk_internal_misc_Unsafe,  compareAndExchangeIntRelease_name,     compareAndExchangeInt_signature,    F_R)  \
45055
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1351
  do_intrinsic(_compareAndSetByte,                jdk_internal_misc_Unsafe,  compareAndSetByte_name,                compareAndSetByte_signature,        F_R)  \
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1352
  do_intrinsic(_compareAndExchangeByte,           jdk_internal_misc_Unsafe,  compareAndExchangeByte_name,           compareAndExchangeByte_signature,   F_R)  \
39419
cc993a4ab581 8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents: 38699
diff changeset
  1353
  do_intrinsic(_compareAndExchangeByteAcquire,    jdk_internal_misc_Unsafe,  compareAndExchangeByteAcquire_name,    compareAndExchangeByte_signature,   F_R)  \
cc993a4ab581 8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents: 38699
diff changeset
  1354
  do_intrinsic(_compareAndExchangeByteRelease,    jdk_internal_misc_Unsafe,  compareAndExchangeByteRelease_name,    compareAndExchangeByte_signature,   F_R)  \
45055
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1355
  do_intrinsic(_compareAndSetShort,               jdk_internal_misc_Unsafe,  compareAndSetShort_name,               compareAndSetShort_signature,       F_R)  \
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1356
  do_intrinsic(_compareAndExchangeShort,          jdk_internal_misc_Unsafe,  compareAndExchangeShort_name,          compareAndExchangeShort_signature,  F_R)  \
39419
cc993a4ab581 8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents: 38699
diff changeset
  1357
  do_intrinsic(_compareAndExchangeShortAcquire,   jdk_internal_misc_Unsafe,  compareAndExchangeShortAcquire_name,   compareAndExchangeShort_signature,  F_R)  \
cc993a4ab581 8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents: 38699
diff changeset
  1358
  do_intrinsic(_compareAndExchangeShortRelease,   jdk_internal_misc_Unsafe,  compareAndExchangeShortRelease_name,   compareAndExchangeShort_signature,  F_R)  \
cc993a4ab581 8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents: 38699
diff changeset
  1359
                                                                                                                                                             \
52220
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1360
  do_intrinsic(_weakCompareAndSetReferencePlain,  jdk_internal_misc_Unsafe,  weakCompareAndSetReferencePlain_name,     compareAndSetReference_signature,      F_R) \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1361
  do_intrinsic(_weakCompareAndSetReferenceAcquire,jdk_internal_misc_Unsafe,  weakCompareAndSetReferenceAcquire_name,   compareAndSetReference_signature,      F_R) \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1362
  do_intrinsic(_weakCompareAndSetReferenceRelease,jdk_internal_misc_Unsafe,  weakCompareAndSetReferenceRelease_name,   compareAndSetReference_signature,      F_R) \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1363
  do_intrinsic(_weakCompareAndSetReference,       jdk_internal_misc_Unsafe,  weakCompareAndSetReference_name,          compareAndSetReference_signature,      F_R) \
45055
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1364
  do_intrinsic(_weakCompareAndSetLongPlain,       jdk_internal_misc_Unsafe,  weakCompareAndSetLongPlain_name,       compareAndSetLong_signature,        F_R) \
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1365
  do_intrinsic(_weakCompareAndSetLongAcquire,     jdk_internal_misc_Unsafe,  weakCompareAndSetLongAcquire_name,     compareAndSetLong_signature,        F_R) \
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1366
  do_intrinsic(_weakCompareAndSetLongRelease,     jdk_internal_misc_Unsafe,  weakCompareAndSetLongRelease_name,     compareAndSetLong_signature,        F_R) \
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1367
  do_intrinsic(_weakCompareAndSetLong,            jdk_internal_misc_Unsafe,  weakCompareAndSetLong_name,            compareAndSetLong_signature,        F_R) \
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1368
  do_intrinsic(_weakCompareAndSetIntPlain,        jdk_internal_misc_Unsafe,  weakCompareAndSetIntPlain_name,        compareAndSetInt_signature,         F_R) \
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1369
  do_intrinsic(_weakCompareAndSetIntAcquire,      jdk_internal_misc_Unsafe,  weakCompareAndSetIntAcquire_name,      compareAndSetInt_signature,         F_R) \
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1370
  do_intrinsic(_weakCompareAndSetIntRelease,      jdk_internal_misc_Unsafe,  weakCompareAndSetIntRelease_name,      compareAndSetInt_signature,         F_R) \
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1371
  do_intrinsic(_weakCompareAndSetInt,             jdk_internal_misc_Unsafe,  weakCompareAndSetInt_name,             compareAndSetInt_signature,         F_R) \
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1372
  do_intrinsic(_weakCompareAndSetBytePlain,       jdk_internal_misc_Unsafe,  weakCompareAndSetBytePlain_name,       compareAndSetByte_signature,        F_R) \
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1373
  do_intrinsic(_weakCompareAndSetByteAcquire,     jdk_internal_misc_Unsafe,  weakCompareAndSetByteAcquire_name,     compareAndSetByte_signature,        F_R) \
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1374
  do_intrinsic(_weakCompareAndSetByteRelease,     jdk_internal_misc_Unsafe,  weakCompareAndSetByteRelease_name,     compareAndSetByte_signature,        F_R) \
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1375
  do_intrinsic(_weakCompareAndSetByte,            jdk_internal_misc_Unsafe,  weakCompareAndSetByte_name,            compareAndSetByte_signature,        F_R) \
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1376
  do_intrinsic(_weakCompareAndSetShortPlain,      jdk_internal_misc_Unsafe,  weakCompareAndSetShortPlain_name,      compareAndSetShort_signature,       F_R) \
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1377
  do_intrinsic(_weakCompareAndSetShortAcquire,    jdk_internal_misc_Unsafe,  weakCompareAndSetShortAcquire_name,    compareAndSetShort_signature,       F_R) \
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1378
  do_intrinsic(_weakCompareAndSetShortRelease,    jdk_internal_misc_Unsafe,  weakCompareAndSetShortRelease_name,    compareAndSetShort_signature,       F_R) \
1c7bbc426b1e 8159995: Rename internal Unsafe.compare methods
psandoz
parents: 44520
diff changeset
  1379
  do_intrinsic(_weakCompareAndSetShort,           jdk_internal_misc_Unsafe,  weakCompareAndSetShort_name,           compareAndSetShort_signature,       F_R) \
39419
cc993a4ab581 8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents: 38699
diff changeset
  1380
                           \
33606
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1381
  do_intrinsic(_getAndAddInt,             jdk_internal_misc_Unsafe,     getAndAddInt_name, getAndAddInt_signature, F_R)       \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1382
   do_name(     getAndAddInt_name,                                      "getAndAddInt")                                       \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1383
   do_signature(getAndAddInt_signature,                                 "(Ljava/lang/Object;JI)I" )                           \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1384
  do_intrinsic(_getAndAddLong,            jdk_internal_misc_Unsafe,     getAndAddLong_name, getAndAddLong_signature, F_R)     \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1385
   do_name(     getAndAddLong_name,                                     "getAndAddLong")                                      \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1386
   do_signature(getAndAddLong_signature,                                "(Ljava/lang/Object;JJ)J" )                           \
39419
cc993a4ab581 8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents: 38699
diff changeset
  1387
  do_intrinsic(_getAndAddByte,            jdk_internal_misc_Unsafe,     getAndAddByte_name, getAndAddByte_signature, F_R)     \
cc993a4ab581 8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents: 38699
diff changeset
  1388
   do_name(     getAndAddByte_name,                                     "getAndAddByte")                                      \
cc993a4ab581 8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents: 38699
diff changeset
  1389
   do_signature(getAndAddByte_signature,                                "(Ljava/lang/Object;JB)B" )                           \
cc993a4ab581 8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents: 38699
diff changeset
  1390
  do_intrinsic(_getAndAddShort,           jdk_internal_misc_Unsafe,     getAndAddShort_name, getAndAddShort_signature, F_R)   \
cc993a4ab581 8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents: 38699
diff changeset
  1391
   do_name(     getAndAddShort_name,                                    "getAndAddShort")                                     \
cc993a4ab581 8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents: 38699
diff changeset
  1392
   do_signature(getAndAddShort_signature,                               "(Ljava/lang/Object;JS)S" )                           \
33606
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1393
  do_intrinsic(_getAndSetInt,             jdk_internal_misc_Unsafe,     getAndSetInt_name, getAndSetInt_signature, F_R)       \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1394
   do_name(     getAndSetInt_name,                                      "getAndSetInt")                                       \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1395
   do_alias(    getAndSetInt_signature,                                 /*"(Ljava/lang/Object;JI)I"*/ getAndAddInt_signature)   \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1396
  do_intrinsic(_getAndSetLong,            jdk_internal_misc_Unsafe,     getAndSetLong_name, getAndSetLong_signature, F_R)     \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1397
   do_name(     getAndSetLong_name,                                     "getAndSetLong")                                      \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1398
   do_alias(    getAndSetLong_signature,                                /*"(Ljava/lang/Object;JJ)J"*/ getAndAddLong_signature)  \
39419
cc993a4ab581 8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents: 38699
diff changeset
  1399
  do_intrinsic(_getAndSetByte,            jdk_internal_misc_Unsafe,     getAndSetByte_name, getAndSetByte_signature, F_R)     \
cc993a4ab581 8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents: 38699
diff changeset
  1400
   do_name(     getAndSetByte_name,                                     "getAndSetByte")                                      \
cc993a4ab581 8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents: 38699
diff changeset
  1401
   do_alias(    getAndSetByte_signature,                                /*"(Ljava/lang/Object;JB)B"*/ getAndAddByte_signature)  \
cc993a4ab581 8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents: 38699
diff changeset
  1402
  do_intrinsic(_getAndSetShort,           jdk_internal_misc_Unsafe,     getAndSetShort_name, getAndSetShort_signature, F_R)   \
cc993a4ab581 8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents: 38699
diff changeset
  1403
   do_name(     getAndSetShort_name,                                    "getAndSetShort")                                     \
cc993a4ab581 8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents: 38699
diff changeset
  1404
   do_alias(    getAndSetShort_signature,                               /*"(Ljava/lang/Object;JS)S"*/ getAndAddShort_signature) \
52220
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1405
  do_intrinsic(_getAndSetReference,       jdk_internal_misc_Unsafe,     getAndSetReference_name, getAndSetReference_signature, F_R) \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1406
   do_name(     getAndSetReference_name,                                "getAndSetReference")                                  \
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1407
   do_signature(getAndSetReference_signature,                           "(Ljava/lang/Object;JLjava/lang/Object;)Ljava/lang/Object;" ) \
33606
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1408
                                                                                                                               \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1409
   /* (2) Bytecode intrinsics                                                                        */                        \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1410
                                                                                                                               \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1411
  do_intrinsic(_park,                     jdk_internal_misc_Unsafe,     park_name, park_signature,                     F_R)    \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1412
   do_name(     park_name,                                              "park")                                                \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1413
   do_signature(park_signature,                                         "(ZJ)V")                                               \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1414
  do_intrinsic(_unpark,                   jdk_internal_misc_Unsafe,     unpark_name, unpark_signature,                 F_R)    \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1415
   do_name(     unpark_name,                                            "unpark")                                              \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1416
   do_alias(    unpark_signature,                                       /*(LObject;)V*/ object_void_signature)                 \
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33593
diff changeset
  1417
                                                                                                                               \
4450
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1418
  do_intrinsic(_StringBuilder_void,   java_lang_StringBuilder, object_initializer_name, void_method_signature,     F_R)   \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1419
  do_intrinsic(_StringBuilder_int,    java_lang_StringBuilder, object_initializer_name, int_void_signature,        F_R)   \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1420
  do_intrinsic(_StringBuilder_String, java_lang_StringBuilder, object_initializer_name, string_void_signature,     F_R)   \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1421
                                                                                                                          \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1422
  do_intrinsic(_StringBuilder_append_char,   java_lang_StringBuilder, append_name, char_StringBuilder_signature,   F_R)   \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1423
  do_intrinsic(_StringBuilder_append_int,    java_lang_StringBuilder, append_name, int_StringBuilder_signature,    F_R)   \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1424
  do_intrinsic(_StringBuilder_append_String, java_lang_StringBuilder, append_name, String_StringBuilder_signature, F_R)   \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1425
                                                                                                                          \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1426
  do_intrinsic(_StringBuilder_toString, java_lang_StringBuilder, toString_name, void_string_signature,             F_R)   \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1427
                                                                                                                          \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1428
  do_intrinsic(_StringBuffer_void,   java_lang_StringBuffer, object_initializer_name, void_method_signature,       F_R)   \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1429
  do_intrinsic(_StringBuffer_int,    java_lang_StringBuffer, object_initializer_name, int_void_signature,          F_R)   \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1430
  do_intrinsic(_StringBuffer_String, java_lang_StringBuffer, object_initializer_name, string_void_signature,       F_R)   \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1431
                                                                                                                          \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1432
  do_intrinsic(_StringBuffer_append_char,   java_lang_StringBuffer, append_name, char_StringBuffer_signature,      F_Y)   \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1433
  do_intrinsic(_StringBuffer_append_int,    java_lang_StringBuffer, append_name, int_StringBuffer_signature,       F_Y)   \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1434
  do_intrinsic(_StringBuffer_append_String, java_lang_StringBuffer, append_name, String_StringBuffer_signature,    F_Y)   \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1435
                                                                                                                          \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1436
  do_intrinsic(_StringBuffer_toString,  java_lang_StringBuffer, toString_name, void_string_signature,              F_Y)   \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1437
                                                                                                                          \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1438
  do_intrinsic(_Integer_toString,      java_lang_Integer, toString_name, int_String_signature,                     F_S)   \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1439
                                                                                                                          \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1440
  do_intrinsic(_String_String, java_lang_String, object_initializer_name, string_void_signature,                   F_R)   \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1441
                                                                                                                          \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1442
  do_intrinsic(_Object_init,              java_lang_Object, object_initializer_name, void_method_signature,        F_R)   \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1443
  /*    (symbol object_initializer_name defined above) */                                                                 \
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1444
                                                                                                                          \
5420
586d3988e72b 6939134: JSR 292 adjustments to method handle invocation
jrose
parents: 5352
diff changeset
  1445
  do_intrinsic(_invoke,                   java_lang_reflect_Method, invoke_name, object_object_array_object_signature, F_R) \
3273
6acf7084b1d3 6862576: vmIntrinsics needs cleanup in order to support JSR 292 intrinsics
jrose
parents: 2862
diff changeset
  1446
  /*   (symbols invoke_name and invoke_signature defined above) */                                                      \
13391
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
  1447
  /* the polymorphic MH intrinsics must be in compact order, with _invokeGeneric first and _linkToInterface last */     \
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
  1448
  do_intrinsic(_invokeGeneric,            java_lang_invoke_MethodHandle, invoke_name,           star_name, F_RN)        \
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
  1449
  do_intrinsic(_invokeBasic,              java_lang_invoke_MethodHandle, invokeBasic_name,      star_name, F_RN)        \
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
  1450
  do_intrinsic(_linkToVirtual,            java_lang_invoke_MethodHandle, linkToVirtual_name,    star_name, F_SN)        \
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
  1451
  do_intrinsic(_linkToStatic,             java_lang_invoke_MethodHandle, linkToStatic_name,     star_name, F_SN)        \
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
  1452
  do_intrinsic(_linkToSpecial,            java_lang_invoke_MethodHandle, linkToSpecial_name,    star_name, F_SN)        \
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
  1453
  do_intrinsic(_linkToInterface,          java_lang_invoke_MethodHandle, linkToInterface_name,  star_name, F_SN)        \
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
  1454
  /* special marker for bytecode generated for the JVM from a LambdaForm: */                                            \
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
  1455
  do_intrinsic(_compiledLambdaForm,       java_lang_invoke_MethodHandle, compiledLambdaForm_name, star_name, F_RN)      \
10514
e229a19078cf 7071307: MethodHandle bimorphic inlining should consider the frequency
never
parents: 10509
diff changeset
  1456
                                                                                                                        \
4562
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1457
  /* unboxing methods: */                                                                                               \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1458
  do_intrinsic(_booleanValue,             java_lang_Boolean,      booleanValue_name, void_boolean_signature, F_R)       \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1459
   do_name(     booleanValue_name,       "booleanValue")                                                                \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1460
  do_intrinsic(_byteValue,                java_lang_Byte,         byteValue_name, void_byte_signature, F_R)             \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1461
   do_name(     byteValue_name,          "byteValue")                                                                   \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1462
  do_intrinsic(_charValue,                java_lang_Character,    charValue_name, void_char_signature, F_R)             \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1463
   do_name(     charValue_name,          "charValue")                                                                   \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1464
  do_intrinsic(_shortValue,               java_lang_Short,        shortValue_name, void_short_signature, F_R)           \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1465
   do_name(     shortValue_name,         "shortValue")                                                                  \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1466
  do_intrinsic(_intValue,                 java_lang_Integer,      intValue_name, void_int_signature, F_R)               \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1467
   do_name(     intValue_name,           "intValue")                                                                    \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1468
  do_intrinsic(_longValue,                java_lang_Long,         longValue_name, void_long_signature, F_R)             \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1469
   do_name(     longValue_name,          "longValue")                                                                   \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1470
  do_intrinsic(_floatValue,               java_lang_Float,        floatValue_name, void_float_signature, F_R)           \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1471
   do_name(     floatValue_name,         "floatValue")                                                                  \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1472
  do_intrinsic(_doubleValue,              java_lang_Double,       doubleValue_name, void_double_signature, F_R)         \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1473
   do_name(     doubleValue_name,        "doubleValue")                                                                 \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1474
                                                                                                                        \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1475
  /* boxing methods: */                                                                                                 \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1476
   do_name(    valueOf_name,              "valueOf")                                                                    \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1477
  do_intrinsic(_Boolean_valueOf,          java_lang_Boolean,      valueOf_name, Boolean_valueOf_signature, F_S)         \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1478
   do_name(     Boolean_valueOf_signature,                       "(Z)Ljava/lang/Boolean;")                              \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1479
  do_intrinsic(_Byte_valueOf,             java_lang_Byte,         valueOf_name, Byte_valueOf_signature, F_S)            \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1480
   do_name(     Byte_valueOf_signature,                          "(B)Ljava/lang/Byte;")                                 \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1481
  do_intrinsic(_Character_valueOf,        java_lang_Character,    valueOf_name, Character_valueOf_signature, F_S)       \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1482
   do_name(     Character_valueOf_signature,                     "(C)Ljava/lang/Character;")                            \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1483
  do_intrinsic(_Short_valueOf,            java_lang_Short,        valueOf_name, Short_valueOf_signature, F_S)           \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1484
   do_name(     Short_valueOf_signature,                         "(S)Ljava/lang/Short;")                                \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1485
  do_intrinsic(_Integer_valueOf,          java_lang_Integer,      valueOf_name, Integer_valueOf_signature, F_S)         \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1486
   do_name(     Integer_valueOf_signature,                       "(I)Ljava/lang/Integer;")                              \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1487
  do_intrinsic(_Long_valueOf,             java_lang_Long,         valueOf_name, Long_valueOf_signature, F_S)            \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1488
   do_name(     Long_valueOf_signature,                          "(J)Ljava/lang/Long;")                                 \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1489
  do_intrinsic(_Float_valueOf,            java_lang_Float,        valueOf_name, Float_valueOf_signature, F_S)           \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1490
   do_name(     Float_valueOf_signature,                         "(F)Ljava/lang/Float;")                                \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1491
  do_intrinsic(_Double_valueOf,           java_lang_Double,       valueOf_name, Double_valueOf_signature, F_S)          \
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1492
   do_name(     Double_valueOf_signature,                        "(D)Ljava/lang/Double;")                               \
3273
6acf7084b1d3 6862576: vmIntrinsics needs cleanup in order to support JSR 292 intrinsics
jrose
parents: 2862
diff changeset
  1493
                                                                                                                        \
30593
69f942690128 8076284: Improve vectorization of parallel streams
kvn
parents: 30310
diff changeset
  1494
  /* forEachRemaining */                                                                             \
69f942690128 8076284: Improve vectorization of parallel streams
kvn
parents: 30310
diff changeset
  1495
  do_intrinsic(_forEachRemaining, java_util_stream_StreamsRangeIntSpliterator, forEachRemaining_name, forEachRemaining_signature, F_R) \
69f942690128 8076284: Improve vectorization of parallel streams
kvn
parents: 30310
diff changeset
  1496
   do_name(     forEachRemaining_name,    "forEachRemaining")                                                           \
69f942690128 8076284: Improve vectorization of parallel streams
kvn
parents: 30310
diff changeset
  1497
   do_name(     forEachRemaining_signature,                      "(Ljava/util/function/IntConsumer;)V")                 \
69f942690128 8076284: Improve vectorization of parallel streams
kvn
parents: 30310
diff changeset
  1498
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1499
    /*end*/
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1500
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1501
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1502
3273
6acf7084b1d3 6862576: vmIntrinsics needs cleanup in order to support JSR 292 intrinsics
jrose
parents: 2862
diff changeset
  1503
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1504
// Class vmSymbols
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1505
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1506
class vmSymbols: AllStatic {
10567
149651837c4a 7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents: 10546
diff changeset
  1507
  friend class vmIntrinsics;
149651837c4a 7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents: 10546
diff changeset
  1508
  friend class VMStructs;
35123
b0b89d83bcf5 8134994: use separate VMStructs databases for SA and JVMCI
twisti
parents: 35111
diff changeset
  1509
  friend class JVMCIVMStructs;
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1510
 public:
8076
96d498ec7ae1 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 7900
diff changeset
  1511
  // enum for figuring positions and size of array holding Symbol*s
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1512
  enum SID {
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1513
    NO_SID = 0,
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1514
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1515
    #define VM_SYMBOL_ENUM(name, string) VM_SYMBOL_ENUM_NAME(name),
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1516
    VM_SYMBOLS_DO(VM_SYMBOL_ENUM, VM_ALIAS_IGNORE)
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1517
    #undef VM_SYMBOL_ENUM
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1518
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1519
    SID_LIMIT,
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1520
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1521
    #define VM_ALIAS_ENUM(name, def) VM_SYMBOL_ENUM_NAME(name) = VM_SYMBOL_ENUM_NAME(def),
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1522
    VM_SYMBOLS_DO(VM_SYMBOL_IGNORE, VM_ALIAS_ENUM)
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1523
    #undef VM_ALIAS_ENUM
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1524
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1525
    FIRST_SID = NO_SID + 1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1526
  };
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1527
  enum {
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1528
    log2_SID_LIMIT = 10         // checked by an assert at start-up
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1529
  };
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1530
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1531
 private:
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1532
  // The symbol array
8076
96d498ec7ae1 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 7900
diff changeset
  1533
  static Symbol* _symbols[];
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1534
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1535
  // Field signatures indexed by BasicType.
8076
96d498ec7ae1 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 7900
diff changeset
  1536
  static Symbol* _type_signatures[T_VOID+1];
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1537
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1538
 public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1539
  // Initialization
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1540
  static void initialize(TRAPS);
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1541
  // Accessing
8076
96d498ec7ae1 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 7900
diff changeset
  1542
  #define VM_SYMBOL_DECLARE(name, ignore)                 \
96d498ec7ae1 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 7900
diff changeset
  1543
    static Symbol* name() {                               \
96d498ec7ae1 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 7900
diff changeset
  1544
      return _symbols[VM_SYMBOL_ENUM_NAME(name)];         \
96d498ec7ae1 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 7900
diff changeset
  1545
    }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1546
  VM_SYMBOLS_DO(VM_SYMBOL_DECLARE, VM_SYMBOL_DECLARE)
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1547
  #undef VM_SYMBOL_DECLARE
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1548
8076
96d498ec7ae1 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 7900
diff changeset
  1549
  // Sharing support
96d498ec7ae1 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 7900
diff changeset
  1550
  static void symbols_do(SymbolClosure* f);
46746
ea379ebb9447 8072061: Automatically determine optimal sizes for the CDS regions
iklam
parents: 46663
diff changeset
  1551
  static void metaspace_pointers_do(MetaspaceClosure *it);
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 13396
diff changeset
  1552
  static void serialize(SerializeClosure* soc);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1553
8076
96d498ec7ae1 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 7900
diff changeset
  1554
  static Symbol* type_signature(BasicType t) {
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1555
    assert((uint)t < T_VOID+1, "range check");
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1556
    assert(_type_signatures[t] != NULL, "domain check");
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1557
    return _type_signatures[t];
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1558
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1559
  // inverse of type_signature; returns T_OBJECT if s is not recognized
34666
1c7168ea0034 8140485: Class load and creation cleanup
mgronlun
parents: 34317
diff changeset
  1560
  static BasicType signature_type(const Symbol* s);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1561
8076
96d498ec7ae1 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 7900
diff changeset
  1562
  static Symbol* symbol_at(SID id) {
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1563
    assert(id >= FIRST_SID && id < SID_LIMIT, "oob");
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1564
    assert(_symbols[id] != NULL, "init");
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1565
    return _symbols[id];
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1566
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1567
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1568
  // Returns symbol's SID if one is assigned, else NO_SID.
34666
1c7168ea0034 8140485: Class load and creation cleanup
mgronlun
parents: 34317
diff changeset
  1569
  static SID find_sid(const Symbol* symbol);
8675
e9fef2a9bef7 6839872: remove implementation inheritance from JSR 292 APIs
jrose
parents: 8117
diff changeset
  1570
  static SID find_sid(const char* symbol_name);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1571
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1572
#ifndef PRODUCT
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1573
  // No need for this in the product:
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1574
  static const char* name_for(SID sid);
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1575
#endif //PRODUCT
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1576
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1577
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1578
// VM Intrinsic ID's uniquely identify some very special methods
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1579
class vmIntrinsics: AllStatic {
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1580
  friend class vmSymbols;
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1581
  friend class ciObjectFactory;
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1582
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1583
 public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1584
  // Accessing
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1585
  enum ID {
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1586
    _none = 0,                      // not an intrinsic (default answer)
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1587
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1588
    #define VM_INTRINSIC_ENUM(id, klass, name, sig, flags)  id,
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1589
    VM_INTRINSICS_DO(VM_INTRINSIC_ENUM,
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1590
                     VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE)
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1591
    #undef VM_INTRINSIC_ENUM
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1592
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1593
    ID_LIMIT,
52220
9c260a6b6471 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents: 51429
diff changeset
  1594
    LAST_COMPILER_INLINE = _getAndSetReference,
13391
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
  1595
    FIRST_MH_SIG_POLY    = _invokeGeneric,
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
  1596
    FIRST_MH_STATIC      = _linkToVirtual,
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
  1597
    LAST_MH_SIG_POLY     = _linkToInterface,
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13291
diff changeset
  1598
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1599
    FIRST_ID = _none + 1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1600
  };
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1601
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1602
  enum Flags {
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1603
    // AccessFlags syndromes relevant to intrinsics.
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1604
    F_none = 0,
4450
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1605
    F_R,                        // !static ?native !synchronized (R="regular")
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1606
    F_S,                        //  static ?native !synchronized
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1607
    F_Y,                        // !static ?native  synchronized
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1608
    F_RN,                       // !static  native !synchronized
6d700b859b3e 6892658: C2 should optimize some stringbuilder patterns
never
parents: 4429
diff changeset
  1609
    F_SN,                       //  static  native !synchronized
4562
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1610
    F_RNY,                      // !static  native  synchronized
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1611
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1612
    FLAG_LIMIT
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1613
  };
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1614
  enum {
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1615
    log2_FLAG_LIMIT = 4         // checked by an assert at start-up
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1616
  };
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1617
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1618
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1619
  static ID ID_from(int raw_id) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1620
    assert(raw_id >= (int)_none && raw_id < (int)ID_LIMIT,
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1621
           "must be a valid intrinsic ID");
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1622
    return (ID)raw_id;
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1623
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1624
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1625
  static const char* name_at(ID id);
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1626
4562
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1627
private:
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1628
  static ID find_id_impl(vmSymbols::SID holder,
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1629
                         vmSymbols::SID name,
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1630
                         vmSymbols::SID sig,
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1631
                         jshort flags);
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1632
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1633
public:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1634
  // Given a method's class, name, signature, and access flags, report its ID.
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1635
  static ID find_id(vmSymbols::SID holder,
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1636
                    vmSymbols::SID name,
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1637
                    vmSymbols::SID sig,
4562
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1638
                    jshort flags) {
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1639
    ID id = find_id_impl(holder, name, sig, flags);
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1640
#ifdef ASSERT
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1641
    // ID _none does not hold the following asserts.
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1642
    if (id == _none)  return id;
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1643
#endif
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1644
    assert(    class_for(id) == holder, "correct id");
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1645
    assert(     name_for(id) == name,   "correct id");
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1646
    assert(signature_for(id) == sig,    "correct id");
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1647
    return id;
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1648
  }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1649
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 13396
diff changeset
  1650
  static void verify_method(ID actual_id, Method* m) PRODUCT_RETURN;
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1651
4562
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1652
  // Find out the symbols behind an intrinsic:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1653
  static vmSymbols::SID     class_for(ID id);
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1654
  static vmSymbols::SID      name_for(ID id);
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1655
  static vmSymbols::SID signature_for(ID id);
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1656
  static Flags              flags_for(ID id);
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1657
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1658
  static const char* short_name_as_C_string(ID id, char* buf, int size);
3273
6acf7084b1d3 6862576: vmIntrinsics needs cleanup in order to support JSR 292 intrinsics
jrose
parents: 2862
diff changeset
  1659
4562
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1660
  // Wrapper object methods:
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1661
  static ID for_boxing(BasicType type);
5d93cb2d2090 6894206: JVM needs a way to traverse method handle structures
twisti
parents: 4450
diff changeset
  1662
  static ID for_unboxing(BasicType type);
4567
7fc02fbe5c7a 6893268: additional dynamic language related optimizations in C2
twisti
parents: 4564
diff changeset
  1663
7fc02fbe5c7a 6893268: additional dynamic language related optimizations in C2
twisti
parents: 4564
diff changeset
  1664
  // Raw conversion:
7fc02fbe5c7a 6893268: additional dynamic language related optimizations in C2
twisti
parents: 4564
diff changeset
  1665
  static ID for_raw_conversion(BasicType src, BasicType dest);
31962
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 31867
diff changeset
  1666
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 31867
diff changeset
  1667
  // The methods below provide information related to compiling intrinsics.
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 31867
diff changeset
  1668
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 31867
diff changeset
  1669
  // (1) Information needed by the C1 compiler.
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 31867
diff changeset
  1670
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 31867
diff changeset
  1671
  static bool preserves_state(vmIntrinsics::ID id);
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 31867
diff changeset
  1672
  static bool can_trap(vmIntrinsics::ID id);
46663
715d5f268f62 8184271: Time related C1 intrinsics produce inconsistent results when floating around
thartmann
parents: 46554
diff changeset
  1673
  static bool should_be_pinned(vmIntrinsics::ID id);
31962
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 31867
diff changeset
  1674
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 31867
diff changeset
  1675
  // (2) Information needed by the C2 compiler.
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 31867
diff changeset
  1676
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 31867
diff changeset
  1677
  // Returns true if the intrinsic for method 'method' will perform a virtual dispatch.
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 31867
diff changeset
  1678
  static bool does_virtual_dispatch(vmIntrinsics::ID id);
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 31867
diff changeset
  1679
  // A return value larger than 0 indicates that the intrinsic for method
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 31867
diff changeset
  1680
  // 'method' requires predicated logic.
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 31867
diff changeset
  1681
  static int predicates_needed(vmIntrinsics::ID id);
d05e0a4d1b43 8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents: 31867
diff changeset
  1682
32085
d869c505b624 8132457: Unify command-line flags controlling the usage of compiler intrinsics
zmajo
parents: 31962
diff changeset
  1683
  // Returns true if a compiler intrinsic is disabled by command-line flags
d869c505b624 8132457: Unify command-line flags controlling the usage of compiler intrinsics
zmajo
parents: 31962
diff changeset
  1684
  // and false otherwise.
33626
jwilhelm
parents: 33606 33483
diff changeset
  1685
  static bool is_disabled_by_flags(const methodHandle& method);
38699
f8bec5f6b09c 8154473: Update for CompilerDirectives to control stub generation and intrinsics
vdeshpande
parents: 38674
diff changeset
  1686
  static bool is_disabled_by_flags(vmIntrinsics::ID id);
f8bec5f6b09c 8154473: Update for CompilerDirectives to control stub generation and intrinsics
vdeshpande
parents: 38674
diff changeset
  1687
  static bool is_intrinsic_disabled(vmIntrinsics::ID id);
f8bec5f6b09c 8154473: Update for CompilerDirectives to control stub generation and intrinsics
vdeshpande
parents: 38674
diff changeset
  1688
  static bool is_intrinsic_available(vmIntrinsics::ID id);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1689
};
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6463
diff changeset
  1690
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 53041
diff changeset
  1691
#endif // SHARE_CLASSFILE_VMSYMBOLS_HPP