author | ehelin |
Tue, 25 Feb 2014 11:02:11 +0100 | |
changeset 22905 | 4b1549d69106 |
parent 22505 | 4523090c9674 |
child 23448 | 0bd799a983a8 |
permissions | -rw-r--r-- |
1 | 1 |
/* |
15432 | 2 |
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
1 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. |
|
8 |
* |
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
* accompanied this code). |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License version |
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
* |
|
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 | 22 |
* |
23 |
*/ |
|
24 |
||
7397 | 25 |
#ifndef SHARE_VM_CLASSFILE_VMSYMBOLS_HPP |
26 |
#define SHARE_VM_CLASSFILE_VMSYMBOLS_HPP |
|
27 |
||
8076
96d498ec7ae1
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
7900
diff
changeset
|
28 |
#include "oops/symbol.hpp" |
96d498ec7ae1
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
7900
diff
changeset
|
29 |
#include "memory/iterator.hpp" |
12377
ae6def2813e0
7160570: Intrinsification support for tracing framework
rbackman
parents:
11953
diff
changeset
|
30 |
#include "trace/traceMacros.hpp" |
7397 | 31 |
|
8076
96d498ec7ae1
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
7900
diff
changeset
|
32 |
// 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
|
33 |
// symbols commonly used in the VM. |
1 | 34 |
// |
35 |
// Sample usage: |
|
36 |
// |
|
8076
96d498ec7ae1
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
7900
diff
changeset
|
37 |
// Symbol* obj = vmSymbols::java_lang_Object(); |
1 | 38 |
|
39 |
||
40 |
// Useful sub-macros exported by this header file: |
|
41 |
||
42 |
#define VM_SYMBOL_ENUM_NAME(name) name##_enum |
|
43 |
#define VM_INTRINSIC_IGNORE(id, class, name, sig, flags) /*ignored*/ |
|
44 |
#define VM_SYMBOL_IGNORE(id, name) /*ignored*/ |
|
45 |
#define VM_ALIAS_IGNORE(id, id2) /*ignored*/ |
|
46 |
||
47 |
||
48 |
// Mapping function names to values. New entries should be added below. |
|
49 |
||
50 |
#define VM_SYMBOLS_DO(template, do_alias) \ |
|
51 |
/* commonly used class names */ \ |
|
52 |
template(java_lang_System, "java/lang/System") \ |
|
53 |
template(java_lang_Object, "java/lang/Object") \ |
|
54 |
template(java_lang_Class, "java/lang/Class") \ |
|
55 |
template(java_lang_String, "java/lang/String") \ |
|
56 |
template(java_lang_Thread, "java/lang/Thread") \ |
|
57 |
template(java_lang_ThreadGroup, "java/lang/ThreadGroup") \ |
|
58 |
template(java_lang_Cloneable, "java/lang/Cloneable") \ |
|
59 |
template(java_lang_Throwable, "java/lang/Throwable") \ |
|
60 |
template(java_lang_ClassLoader, "java/lang/ClassLoader") \ |
|
61 |
template(java_lang_ClassLoader_NativeLibrary, "java/lang/ClassLoader\x024NativeLibrary") \ |
|
62 |
template(java_lang_ThreadDeath, "java/lang/ThreadDeath") \ |
|
63 |
template(java_lang_Boolean, "java/lang/Boolean") \ |
|
64 |
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
|
65 |
template(java_lang_Character_CharacterCache, "java/lang/Character$CharacterCache") \ |
1 | 66 |
template(java_lang_Float, "java/lang/Float") \ |
67 |
template(java_lang_Double, "java/lang/Double") \ |
|
68 |
template(java_lang_Byte, "java/lang/Byte") \ |
|
17383 | 69 |
template(java_lang_Byte_ByteCache, "java/lang/Byte$ByteCache") \ |
1 | 70 |
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
|
71 |
template(java_lang_Short_ShortCache, "java/lang/Short$ShortCache") \ |
1 | 72 |
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
|
73 |
template(java_lang_Integer_IntegerCache, "java/lang/Integer$IntegerCache") \ |
1 | 74 |
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
|
75 |
template(java_lang_Long_LongCache, "java/lang/Long$LongCache") \ |
1 | 76 |
template(java_lang_Shutdown, "java/lang/Shutdown") \ |
77 |
template(java_lang_ref_Reference, "java/lang/ref/Reference") \ |
|
78 |
template(java_lang_ref_SoftReference, "java/lang/ref/SoftReference") \ |
|
79 |
template(java_lang_ref_WeakReference, "java/lang/ref/WeakReference") \ |
|
80 |
template(java_lang_ref_FinalReference, "java/lang/ref/FinalReference") \ |
|
81 |
template(java_lang_ref_PhantomReference, "java/lang/ref/PhantomReference") \ |
|
82 |
template(java_lang_ref_Finalizer, "java/lang/ref/Finalizer") \ |
|
83 |
template(java_lang_reflect_AccessibleObject, "java/lang/reflect/AccessibleObject") \ |
|
84 |
template(java_lang_reflect_Method, "java/lang/reflect/Method") \ |
|
85 |
template(java_lang_reflect_Constructor, "java/lang/reflect/Constructor") \ |
|
86 |
template(java_lang_reflect_Field, "java/lang/reflect/Field") \ |
|
15102
0a86564e5f61
8004728: Add hotspot support for parameter reflection
coleenp
parents:
15098
diff
changeset
|
87 |
template(java_lang_reflect_Parameter, "java/lang/reflect/Parameter") \ |
1 | 88 |
template(java_lang_reflect_Array, "java/lang/reflect/Array") \ |
89 |
template(java_lang_StringBuffer, "java/lang/StringBuffer") \ |
|
4450
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4429
diff
changeset
|
90 |
template(java_lang_StringBuilder, "java/lang/StringBuilder") \ |
1 | 91 |
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
|
92 |
template(java_lang_SecurityManager, "java/lang/SecurityManager") \ |
1 | 93 |
template(java_security_AccessControlContext, "java/security/AccessControlContext") \ |
94 |
template(java_security_ProtectionDomain, "java/security/ProtectionDomain") \ |
|
18056 | 95 |
template(impliesCreateAccessControlContext_name, "impliesCreateAccessControlContext") \ |
1 | 96 |
template(java_io_OutputStream, "java/io/OutputStream") \ |
97 |
template(java_io_Reader, "java/io/Reader") \ |
|
98 |
template(java_io_BufferedReader, "java/io/BufferedReader") \ |
|
99 |
template(java_io_FileInputStream, "java/io/FileInputStream") \ |
|
100 |
template(java_io_ByteArrayInputStream, "java/io/ByteArrayInputStream") \ |
|
101 |
template(java_io_Serializable, "java/io/Serializable") \ |
|
102 |
template(java_util_Arrays, "java/util/Arrays") \ |
|
103 |
template(java_util_Properties, "java/util/Properties") \ |
|
104 |
template(java_util_Vector, "java/util/Vector") \ |
|
105 |
template(java_util_AbstractList, "java/util/AbstractList") \ |
|
106 |
template(java_util_Hashtable, "java/util/Hashtable") \ |
|
107 |
template(java_lang_Compiler, "java/lang/Compiler") \ |
|
108 |
template(sun_misc_Signal, "sun/misc/Signal") \ |
|
109 |
template(java_lang_AssertionStatusDirectives, "java/lang/AssertionStatusDirectives") \ |
|
110 |
template(getBootClassPathEntryForClass_name, "getBootClassPathEntryForClass") \ |
|
7900
4c7fc6332f7e
6994753: Implement optional hook to a Java method at VM startup.
kevinw
parents:
7436
diff
changeset
|
111 |
template(sun_misc_PostVMInitHook, "sun/misc/PostVMInitHook") \ |
14132 | 112 |
template(sun_misc_Launcher_ExtClassLoader, "sun/misc/Launcher$ExtClassLoader") \ |
1 | 113 |
\ |
13106 | 114 |
/* Java runtime version access */ \ |
115 |
template(sun_misc_Version, "sun/misc/Version") \ |
|
116 |
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
|
117 |
template(java_runtime_version_name, "java_runtime_version") \ |
13106 | 118 |
\ |
1 | 119 |
/* class file format tags */ \ |
120 |
template(tag_source_file, "SourceFile") \ |
|
121 |
template(tag_inner_classes, "InnerClasses") \ |
|
122 |
template(tag_constant_value, "ConstantValue") \ |
|
123 |
template(tag_code, "Code") \ |
|
124 |
template(tag_exceptions, "Exceptions") \ |
|
125 |
template(tag_line_number_table, "LineNumberTable") \ |
|
126 |
template(tag_local_variable_table, "LocalVariableTable") \ |
|
127 |
template(tag_local_variable_type_table, "LocalVariableTypeTable") \ |
|
15102
0a86564e5f61
8004728: Add hotspot support for parameter reflection
coleenp
parents:
15098
diff
changeset
|
128 |
template(tag_method_parameters, "MethodParameters") \ |
1 | 129 |
template(tag_stack_map_table, "StackMapTable") \ |
130 |
template(tag_synthetic, "Synthetic") \ |
|
131 |
template(tag_deprecated, "Deprecated") \ |
|
132 |
template(tag_source_debug_extension, "SourceDebugExtension") \ |
|
133 |
template(tag_signature, "Signature") \ |
|
134 |
template(tag_runtime_visible_annotations, "RuntimeVisibleAnnotations") \ |
|
135 |
template(tag_runtime_invisible_annotations, "RuntimeInvisibleAnnotations") \ |
|
136 |
template(tag_runtime_visible_parameter_annotations, "RuntimeVisibleParameterAnnotations") \ |
|
137 |
template(tag_runtime_invisible_parameter_annotations,"RuntimeInvisibleParameterAnnotations") \ |
|
138 |
template(tag_annotation_default, "AnnotationDefault") \ |
|
15097
9db149412e0e
8004823: Add VM support for type annotation reflection
stefank
parents:
14386
diff
changeset
|
139 |
template(tag_runtime_visible_type_annotations, "RuntimeVisibleTypeAnnotations") \ |
9db149412e0e
8004823: Add VM support for type annotation reflection
stefank
parents:
14386
diff
changeset
|
140 |
template(tag_runtime_invisible_type_annotations, "RuntimeInvisibleTypeAnnotations") \ |
1 | 141 |
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
|
142 |
template(tag_bootstrap_methods, "BootstrapMethods") \ |
1 | 143 |
\ |
144 |
/* exception klasses: at least all exceptions thrown by the VM have entries here */ \ |
|
145 |
template(java_lang_ArithmeticException, "java/lang/ArithmeticException") \ |
|
146 |
template(java_lang_ArrayIndexOutOfBoundsException, "java/lang/ArrayIndexOutOfBoundsException") \ |
|
147 |
template(java_lang_ArrayStoreException, "java/lang/ArrayStoreException") \ |
|
148 |
template(java_lang_ClassCastException, "java/lang/ClassCastException") \ |
|
149 |
template(java_lang_ClassNotFoundException, "java/lang/ClassNotFoundException") \ |
|
150 |
template(java_lang_CloneNotSupportedException, "java/lang/CloneNotSupportedException") \ |
|
151 |
template(java_lang_IllegalAccessException, "java/lang/IllegalAccessException") \ |
|
152 |
template(java_lang_IllegalArgumentException, "java/lang/IllegalArgumentException") \ |
|
5420
586d3988e72b
6939134: JSR 292 adjustments to method handle invocation
jrose
parents:
5352
diff
changeset
|
153 |
template(java_lang_IllegalStateException, "java/lang/IllegalStateException") \ |
1 | 154 |
template(java_lang_IllegalMonitorStateException, "java/lang/IllegalMonitorStateException") \ |
155 |
template(java_lang_IllegalThreadStateException, "java/lang/IllegalThreadStateException") \ |
|
156 |
template(java_lang_IndexOutOfBoundsException, "java/lang/IndexOutOfBoundsException") \ |
|
157 |
template(java_lang_InstantiationException, "java/lang/InstantiationException") \ |
|
158 |
template(java_lang_InstantiationError, "java/lang/InstantiationError") \ |
|
159 |
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
|
160 |
template(java_lang_BootstrapMethodError, "java/lang/BootstrapMethodError") \ |
1 | 161 |
template(java_lang_LinkageError, "java/lang/LinkageError") \ |
162 |
template(java_lang_NegativeArraySizeException, "java/lang/NegativeArraySizeException") \ |
|
163 |
template(java_lang_NoSuchFieldException, "java/lang/NoSuchFieldException") \ |
|
164 |
template(java_lang_NoSuchMethodException, "java/lang/NoSuchMethodException") \ |
|
165 |
template(java_lang_NullPointerException, "java/lang/NullPointerException") \ |
|
166 |
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
|
167 |
template(java_lang_UnsupportedOperationException, "java/lang/UnsupportedOperationException") \ |
1 | 168 |
template(java_lang_InvalidClassException, "java/lang/InvalidClassException") \ |
169 |
template(java_lang_reflect_InvocationTargetException, "java/lang/reflect/InvocationTargetException") \ |
|
170 |
template(java_lang_Exception, "java/lang/Exception") \ |
|
171 |
template(java_lang_RuntimeException, "java/lang/RuntimeException") \ |
|
172 |
template(java_io_IOException, "java/io/IOException") \ |
|
173 |
template(java_security_PrivilegedActionException, "java/security/PrivilegedActionException") \ |
|
174 |
\ |
|
175 |
/* error klasses: at least all errors thrown by the VM have entries here */ \ |
|
176 |
template(java_lang_AbstractMethodError, "java/lang/AbstractMethodError") \ |
|
177 |
template(java_lang_ClassCircularityError, "java/lang/ClassCircularityError") \ |
|
178 |
template(java_lang_ClassFormatError, "java/lang/ClassFormatError") \ |
|
179 |
template(java_lang_UnsupportedClassVersionError, "java/lang/UnsupportedClassVersionError") \ |
|
180 |
template(java_lang_Error, "java/lang/Error") \ |
|
181 |
template(java_lang_ExceptionInInitializerError, "java/lang/ExceptionInInitializerError") \ |
|
182 |
template(java_lang_IllegalAccessError, "java/lang/IllegalAccessError") \ |
|
183 |
template(java_lang_IncompatibleClassChangeError, "java/lang/IncompatibleClassChangeError") \ |
|
184 |
template(java_lang_InternalError, "java/lang/InternalError") \ |
|
185 |
template(java_lang_NoClassDefFoundError, "java/lang/NoClassDefFoundError") \ |
|
186 |
template(java_lang_NoSuchFieldError, "java/lang/NoSuchFieldError") \ |
|
187 |
template(java_lang_NoSuchMethodError, "java/lang/NoSuchMethodError") \ |
|
188 |
template(java_lang_OutOfMemoryError, "java/lang/OutOfMemoryError") \ |
|
189 |
template(java_lang_UnsatisfiedLinkError, "java/lang/UnsatisfiedLinkError") \ |
|
190 |
template(java_lang_VerifyError, "java/lang/VerifyError") \ |
|
191 |
template(java_lang_SecurityException, "java/lang/SecurityException") \ |
|
192 |
template(java_lang_VirtualMachineError, "java/lang/VirtualMachineError") \ |
|
193 |
template(java_lang_StackOverflowError, "java/lang/StackOverflowError") \ |
|
194 |
template(java_lang_StackTraceElement, "java/lang/StackTraceElement") \ |
|
15193
8e6b5694267f
8003985: Support @Contended Annotation - JEP 142
jwilhelm
parents:
15102
diff
changeset
|
195 |
\ |
8e6b5694267f
8003985: Support @Contended Annotation - JEP 142
jwilhelm
parents:
15102
diff
changeset
|
196 |
/* Concurrency support */ \ |
1 | 197 |
template(java_util_concurrent_locks_AbstractOwnableSynchronizer, "java/util/concurrent/locks/AbstractOwnableSynchronizer") \ |
15193
8e6b5694267f
8003985: Support @Contended Annotation - JEP 142
jwilhelm
parents:
15102
diff
changeset
|
198 |
template(sun_misc_Contended_signature, "Lsun/misc/Contended;") \ |
1 | 199 |
\ |
200 |
/* class symbols needed by intrinsics */ \ |
|
201 |
VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, template, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \ |
|
202 |
\ |
|
203 |
/* Support for reflection based on dynamic bytecode generation (JDK 1.4 and above) */ \ |
|
204 |
\ |
|
205 |
template(sun_reflect_FieldInfo, "sun/reflect/FieldInfo") \ |
|
206 |
template(sun_reflect_MethodInfo, "sun/reflect/MethodInfo") \ |
|
207 |
template(sun_reflect_MagicAccessorImpl, "sun/reflect/MagicAccessorImpl") \ |
|
208 |
template(sun_reflect_MethodAccessorImpl, "sun/reflect/MethodAccessorImpl") \ |
|
209 |
template(sun_reflect_ConstructorAccessorImpl, "sun/reflect/ConstructorAccessorImpl") \ |
|
210 |
template(sun_reflect_SerializationConstructorAccessorImpl, "sun/reflect/SerializationConstructorAccessorImpl") \ |
|
211 |
template(sun_reflect_DelegatingClassLoader, "sun/reflect/DelegatingClassLoader") \ |
|
212 |
template(sun_reflect_Reflection, "sun/reflect/Reflection") \ |
|
16617
6235d2c7549f
7198429: need checked categorization of caller-sensitive methods in the JDK
twisti
parents:
15436
diff
changeset
|
213 |
template(sun_reflect_CallerSensitive, "sun/reflect/CallerSensitive") \ |
6235d2c7549f
7198429: need checked categorization of caller-sensitive methods in the JDK
twisti
parents:
15436
diff
changeset
|
214 |
template(sun_reflect_CallerSensitive_signature, "Lsun/reflect/CallerSensitive;") \ |
1 | 215 |
template(checkedExceptions_name, "checkedExceptions") \ |
216 |
template(clazz_name, "clazz") \ |
|
217 |
template(exceptionTypes_name, "exceptionTypes") \ |
|
218 |
template(modifiers_name, "modifiers") \ |
|
219 |
template(newConstructor_name, "newConstructor") \ |
|
220 |
template(newConstructor_signature, "(Lsun/reflect/MethodInfo;)Ljava/lang/reflect/Constructor;") \ |
|
221 |
template(newField_name, "newField") \ |
|
222 |
template(newField_signature, "(Lsun/reflect/FieldInfo;)Ljava/lang/reflect/Field;") \ |
|
223 |
template(newMethod_name, "newMethod") \ |
|
224 |
template(newMethod_signature, "(Lsun/reflect/MethodInfo;)Ljava/lang/reflect/Method;") \ |
|
13391
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
13291
diff
changeset
|
225 |
template(invokeBasic_name, "invokeBasic") \ |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
13291
diff
changeset
|
226 |
template(linkToVirtual_name, "linkToVirtual") \ |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
13291
diff
changeset
|
227 |
template(linkToStatic_name, "linkToStatic") \ |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
13291
diff
changeset
|
228 |
template(linkToSpecial_name, "linkToSpecial") \ |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
13291
diff
changeset
|
229 |
template(linkToInterface_name, "linkToInterface") \ |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
13291
diff
changeset
|
230 |
template(compiledLambdaForm_name, "<compiledLambdaForm>") /*fake name*/ \ |
5420
586d3988e72b
6939134: JSR 292 adjustments to method handle invocation
jrose
parents:
5352
diff
changeset
|
231 |
template(star_name, "*") /*not really a name*/ \ |
1 | 232 |
template(invoke_name, "invoke") \ |
233 |
template(override_name, "override") \ |
|
234 |
template(parameterTypes_name, "parameterTypes") \ |
|
235 |
template(returnType_name, "returnType") \ |
|
236 |
template(signature_name, "signature") \ |
|
237 |
template(slot_name, "slot") \ |
|
10514
e229a19078cf
7071307: MethodHandle bimorphic inlining should consider the frequency
never
parents:
10509
diff
changeset
|
238 |
template(selectAlternative_name, "selectAlternative") \ |
1 | 239 |
\ |
240 |
/* Support for annotations (JDK 1.5 and above) */ \ |
|
241 |
\ |
|
242 |
template(annotations_name, "annotations") \ |
|
15102
0a86564e5f61
8004728: Add hotspot support for parameter reflection
coleenp
parents:
15098
diff
changeset
|
243 |
template(index_name, "index") \ |
0a86564e5f61
8004728: Add hotspot support for parameter reflection
coleenp
parents:
15098
diff
changeset
|
244 |
template(executable_name, "executable") \ |
1 | 245 |
template(parameter_annotations_name, "parameterAnnotations") \ |
246 |
template(annotation_default_name, "annotationDefault") \ |
|
247 |
template(sun_reflect_ConstantPool, "sun/reflect/ConstantPool") \ |
|
13728
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
13396
diff
changeset
|
248 |
template(ConstantPool_name, "constantPoolOop") \ |
1 | 249 |
template(sun_reflect_UnsafeStaticFieldAccessorImpl, "sun/reflect/UnsafeStaticFieldAccessorImpl")\ |
250 |
template(base_name, "base") \ |
|
15097
9db149412e0e
8004823: Add VM support for type annotation reflection
stefank
parents:
14386
diff
changeset
|
251 |
/* Type Annotations (JDK 8 and above) */ \ |
9db149412e0e
8004823: Add VM support for type annotation reflection
stefank
parents:
14386
diff
changeset
|
252 |
template(type_annotations_name, "typeAnnotations") \ |
9db149412e0e
8004823: Add VM support for type annotation reflection
stefank
parents:
14386
diff
changeset
|
253 |
\ |
1 | 254 |
\ |
2534 | 255 |
/* 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
|
256 |
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
|
257 |
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
|
258 |
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
|
259 |
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
|
260 |
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
|
261 |
template(java_lang_invoke_MethodHandle, "java/lang/invoke/MethodHandle") \ |
9098d4e927e1
7012648: move JSR 292 to package java.lang.invoke and adjust names
jrose
parents:
8675
diff
changeset
|
262 |
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
|
263 |
template(java_lang_invoke_MethodType_signature, "Ljava/lang/invoke/MethodType;") \ |
13391
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
13291
diff
changeset
|
264 |
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
|
265 |
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
|
266 |
template(java_lang_invoke_MethodHandle_signature, "Ljava/lang/invoke/MethodHandle;") \ |
2534 | 267 |
/* 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
|
268 |
template(java_lang_invoke_MemberName, "java/lang/invoke/MemberName") \ |
9098d4e927e1
7012648: move JSR 292 to package java.lang.invoke and adjust names
jrose
parents:
8675
diff
changeset
|
269 |
template(java_lang_invoke_MethodHandleNatives, "java/lang/invoke/MethodHandleNatives") \ |
13391
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
13291
diff
changeset
|
270 |
template(java_lang_invoke_LambdaForm, "java/lang/invoke/LambdaForm") \ |
13291
9de3b1387cb8
6711908: JVM needs direct access to some annotations
jrose
parents:
13106
diff
changeset
|
271 |
template(java_lang_invoke_ForceInline_signature, "Ljava/lang/invoke/ForceInline;") \ |
13391
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
13291
diff
changeset
|
272 |
template(java_lang_invoke_DontInline_signature, "Ljava/lang/invoke/DontInline;") \ |
20299
c4d35cd80be0
8025233: Move sun.invoke.Stable into java.lang.invoke package
vlivanov
parents:
20289
diff
changeset
|
273 |
template(java_lang_invoke_Stable_signature, "Ljava/lang/invoke/Stable;") \ |
13391
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
13291
diff
changeset
|
274 |
template(java_lang_invoke_LambdaForm_Compiled_signature, "Ljava/lang/invoke/LambdaForm$Compiled;") \ |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
13291
diff
changeset
|
275 |
template(java_lang_invoke_LambdaForm_Hidden_signature, "Ljava/lang/invoke/LambdaForm$Hidden;") \ |
8676
9098d4e927e1
7012648: move JSR 292 to package java.lang.invoke and adjust names
jrose
parents:
8675
diff
changeset
|
276 |
/* 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
|
277 |
template(findMethodHandleType_name, "findMethodHandleType") \ |
8676
9098d4e927e1
7012648: move JSR 292 to package java.lang.invoke and adjust names
jrose
parents:
8675
diff
changeset
|
278 |
template(findMethodHandleType_signature, "(Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/invoke/MethodType;") \ |
5882 | 279 |
template(linkMethodHandleConstant_name, "linkMethodHandleConstant") \ |
8676
9098d4e927e1
7012648: move JSR 292 to package java.lang.invoke and adjust names
jrose
parents:
8675
diff
changeset
|
280 |
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
|
281 |
template(linkMethod_name, "linkMethod") \ |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
13291
diff
changeset
|
282 |
template(linkMethod_signature, "(Ljava/lang/Class;ILjava/lang/Class;Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/invoke/MemberName;") \ |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
13291
diff
changeset
|
283 |
template(linkCallSite_name, "linkCallSite") \ |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
13291
diff
changeset
|
284 |
template(linkCallSite_signature, "(Ljava/lang/Object;Ljava/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
|
285 |
template(setTargetNormal_name, "setTargetNormal") \ |
43d670e5701e
7079673: JSR 292: C1 should inline bytecoded method handle adapters
twisti
parents:
10265
diff
changeset
|
286 |
template(setTargetVolatile_name, "setTargetVolatile") \ |
43d670e5701e
7079673: JSR 292: C1 should inline bytecoded method handle adapters
twisti
parents:
10265
diff
changeset
|
287 |
template(setTarget_signature, "(Ljava/lang/invoke/MethodHandle;)V") \ |
10546 | 288 |
NOT_LP64( do_alias(intptr_signature, int_signature) ) \ |
289 |
LP64_ONLY( do_alias(intptr_signature, long_signature) ) \ |
|
10514
e229a19078cf
7071307: MethodHandle bimorphic inlining should consider the frequency
never
parents:
10509
diff
changeset
|
290 |
template(selectAlternative_signature, "(ZLjava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;") \ |
15193
8e6b5694267f
8003985: Support @Contended Annotation - JEP 142
jwilhelm
parents:
15102
diff
changeset
|
291 |
\ |
2534 | 292 |
/* common method and field names */ \ |
1 | 293 |
template(object_initializer_name, "<init>") \ |
294 |
template(class_initializer_name, "<clinit>") \ |
|
295 |
template(println_name, "println") \ |
|
296 |
template(printStackTrace_name, "printStackTrace") \ |
|
297 |
template(main_name, "main") \ |
|
298 |
template(name_name, "name") \ |
|
299 |
template(priority_name, "priority") \ |
|
300 |
template(stillborn_name, "stillborn") \ |
|
301 |
template(group_name, "group") \ |
|
302 |
template(daemon_name, "daemon") \ |
|
303 |
template(eetop_name, "eetop") \ |
|
304 |
template(thread_status_name, "threadStatus") \ |
|
305 |
template(run_method_name, "run") \ |
|
306 |
template(exit_method_name, "exit") \ |
|
307 |
template(add_method_name, "add") \ |
|
11760
078e0412bcb2
7131006: java/lang/management/ThreadMXBean/ThreadLists.java
minqi
parents:
11441
diff
changeset
|
308 |
template(remove_method_name, "remove") \ |
1 | 309 |
template(parent_name, "parent") \ |
310 |
template(threads_name, "threads") \ |
|
311 |
template(groups_name, "groups") \ |
|
312 |
template(maxPriority_name, "maxPriority") \ |
|
313 |
template(destroyed_name, "destroyed") \ |
|
314 |
template(vmAllowSuspension_name, "vmAllowSuspension") \ |
|
315 |
template(nthreads_name, "nthreads") \ |
|
316 |
template(ngroups_name, "ngroups") \ |
|
317 |
template(shutdown_method_name, "shutdown") \ |
|
318 |
template(finalize_method_name, "finalize") \ |
|
319 |
template(reference_lock_name, "lock") \ |
|
320 |
template(reference_discovered_name, "discovered") \ |
|
11441 | 321 |
template(run_finalization_name, "runFinalization") \ |
1 | 322 |
template(run_finalizers_on_exit_name, "runFinalizersOnExit") \ |
323 |
template(uncaughtException_name, "uncaughtException") \ |
|
324 |
template(dispatchUncaughtException_name, "dispatchUncaughtException") \ |
|
325 |
template(initializeSystemClass_name, "initializeSystemClass") \ |
|
326 |
template(loadClass_name, "loadClass") \ |
|
327 |
template(loadClassInternal_name, "loadClassInternal") \ |
|
328 |
template(get_name, "get") \ |
|
329 |
template(put_name, "put") \ |
|
330 |
template(type_name, "type") \ |
|
331 |
template(findNative_name, "findNative") \ |
|
332 |
template(deadChild_name, "deadChild") \ |
|
13753
1df4fd11c5b8
7197269: NPG: FollowReferences has no ClassLoader -> Class link to follow
coleenp
parents:
13728
diff
changeset
|
333 |
template(addClass_name, "addClass") \ |
21770
e8932d2fda2c
8016839: JSR292: AME instead of IAE when calling a method
drchase
parents:
21729
diff
changeset
|
334 |
template(throwIllegalAccessError_name, "throwIllegalAccessError") \ |
1 | 335 |
template(getFromClass_name, "getFromClass") \ |
336 |
template(dispatch_name, "dispatch") \ |
|
337 |
template(getSystemClassLoader_name, "getSystemClassLoader") \ |
|
338 |
template(fillInStackTrace_name, "fillInStackTrace") \ |
|
9132
59f29856d4b2
7034585: Adjust fillInStackTrace filtering to assist 6998871
dholmes
parents:
8676
diff
changeset
|
339 |
template(fillInStackTrace0_name, "fillInStackTrace0") \ |
1 | 340 |
template(getCause_name, "getCause") \ |
341 |
template(initCause_name, "initCause") \ |
|
342 |
template(setProperty_name, "setProperty") \ |
|
343 |
template(getProperty_name, "getProperty") \ |
|
344 |
template(context_name, "context") \ |
|
345 |
template(privilegedContext_name, "privilegedContext") \ |
|
346 |
template(contextClassLoader_name, "contextClassLoader") \ |
|
347 |
template(inheritedAccessControlContext_name, "inheritedAccessControlContext") \ |
|
348 |
template(isPrivileged_name, "isPrivileged") \ |
|
18056 | 349 |
template(isAuthorized_name, "isAuthorized") \ |
16617
6235d2c7549f
7198429: need checked categorization of caller-sensitive methods in the JDK
twisti
parents:
15436
diff
changeset
|
350 |
template(getClassContext_name, "getClassContext") \ |
1 | 351 |
template(wait_name, "wait") \ |
352 |
template(checkPackageAccess_name, "checkPackageAccess") \ |
|
353 |
template(stackSize_name, "stackSize") \ |
|
354 |
template(thread_id_name, "tid") \ |
|
355 |
template(newInstance0_name, "newInstance0") \ |
|
356 |
template(limit_name, "limit") \ |
|
19266
bb0324cbe0aa
7187554: JSR 292: JVMTI PopFrame needs to handle appendix arguments
sspitsyn
parents:
18946
diff
changeset
|
357 |
template(member_name, "member") \ |
1 | 358 |
template(forName_name, "forName") \ |
359 |
template(forName0_name, "forName0") \ |
|
360 |
template(isJavaIdentifierStart_name, "isJavaIdentifierStart") \ |
|
361 |
template(isJavaIdentifierPart_name, "isJavaIdentifierPart") \ |
|
362 |
template(exclusive_owner_thread_name, "exclusiveOwnerThread") \ |
|
363 |
template(park_blocker_name, "parkBlocker") \ |
|
364 |
template(park_event_name, "nativeParkEventPointer") \ |
|
190
e9a0a9dcd4f6
6395208: Elide autoboxing for calls to HashMap.get(int) and HashMap.get(long)
never
parents:
1
diff
changeset
|
365 |
template(cache_field_name, "cache") \ |
1 | 366 |
template(value_name, "value") \ |
12623 | 367 |
template(offset_name, "offset") \ |
368 |
template(count_name, "count") \ |
|
369 |
template(hash_name, "hash") \ |
|
2862
fad636edf18f
6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents:
2570
diff
changeset
|
370 |
template(numberOfLeadingZeros_name, "numberOfLeadingZeros") \ |
fad636edf18f
6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents:
2570
diff
changeset
|
371 |
template(numberOfTrailingZeros_name, "numberOfTrailingZeros") \ |
2255
54abdf3e1055
6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents:
1890
diff
changeset
|
372 |
template(bitCount_name, "bitCount") \ |
2342 | 373 |
template(profile_name, "profile") \ |
2348 | 374 |
template(equals_name, "equals") \ |
2570
ecc7862946d4
6655646: dynamic languages need dynamically linked call sites
jrose
parents:
2534
diff
changeset
|
375 |
template(target_name, "target") \ |
2534 | 376 |
template(toString_name, "toString") \ |
377 |
template(values_name, "values") \ |
|
378 |
template(receiver_name, "receiver") \ |
|
379 |
template(vmtarget_name, "vmtarget") \ |
|
13728
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
13396
diff
changeset
|
380 |
template(next_target_name, "next_target") \ |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
13396
diff
changeset
|
381 |
template(vmloader_name, "vmloader") \ |
13391
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
13291
diff
changeset
|
382 |
template(vmindex_name, "vmindex") \ |
10514
e229a19078cf
7071307: MethodHandle bimorphic inlining should consider the frequency
never
parents:
10509
diff
changeset
|
383 |
template(vmcount_name, "vmcount") \ |
13391
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
13291
diff
changeset
|
384 |
template(vmentry_name, "vmentry") \ |
2534 | 385 |
template(flags_name, "flags") \ |
386 |
template(rtype_name, "rtype") \ |
|
387 |
template(ptypes_name, "ptypes") \ |
|
388 |
template(form_name, "form") \ |
|
13391
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
13291
diff
changeset
|
389 |
template(basicType_name, "basicType") \ |
4450
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4429
diff
changeset
|
390 |
template(append_name, "append") \ |
10546 | 391 |
template(klass_name, "klass") \ |
392 |
template(array_klass_name, "array_klass") \ |
|
393 |
template(oop_size_name, "oop_size") \ |
|
394 |
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
|
395 |
template(protection_domain_name, "protection_domain") \ |
9ad5cd464a75
8003421: NPG: Move oops out of InstanceKlass into mirror
coleenp
parents:
17385
diff
changeset
|
396 |
template(init_lock_name, "init_lock") \ |
9ad5cd464a75
8003421: NPG: Move oops out of InstanceKlass into mirror
coleenp
parents:
17385
diff
changeset
|
397 |
template(signers_name, "signers_name") \ |
13728
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
13396
diff
changeset
|
398 |
template(loader_data_name, "loader_data") \ |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
13396
diff
changeset
|
399 |
template(dependencies_name, "dependencies") \ |
1 | 400 |
\ |
401 |
/* non-intrinsic name/signature pairs: */ \ |
|
402 |
template(register_method_name, "register") \ |
|
403 |
do_alias(register_method_signature, object_void_signature) \ |
|
404 |
\ |
|
405 |
/* name symbols needed by intrinsics */ \ |
|
406 |
VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, template, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \ |
|
407 |
\ |
|
408 |
/* common signatures names */ \ |
|
409 |
template(void_method_signature, "()V") \ |
|
4562
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
410 |
template(void_boolean_signature, "()Z") \ |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
411 |
template(void_byte_signature, "()B") \ |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
412 |
template(void_char_signature, "()C") \ |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
413 |
template(void_short_signature, "()S") \ |
1 | 414 |
template(void_int_signature, "()I") \ |
415 |
template(void_long_signature, "()J") \ |
|
4562
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
416 |
template(void_float_signature, "()F") \ |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
417 |
template(void_double_signature, "()D") \ |
1 | 418 |
template(int_void_signature, "(I)V") \ |
419 |
template(int_int_signature, "(I)I") \ |
|
5352
cee8f7acb7bc
6946040: add intrinsic for short and char reverseBytes
never
parents:
4573
diff
changeset
|
420 |
template(char_char_signature, "(C)C") \ |
cee8f7acb7bc
6946040: add intrinsic for short and char reverseBytes
never
parents:
4573
diff
changeset
|
421 |
template(short_short_signature, "(S)S") \ |
1 | 422 |
template(int_bool_signature, "(I)Z") \ |
423 |
template(float_int_signature, "(F)I") \ |
|
424 |
template(double_long_signature, "(D)J") \ |
|
425 |
template(double_double_signature, "(D)D") \ |
|
426 |
template(int_float_signature, "(I)F") \ |
|
2255
54abdf3e1055
6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents:
1890
diff
changeset
|
427 |
template(long_int_signature, "(J)I") \ |
1 | 428 |
template(long_long_signature, "(J)J") \ |
429 |
template(long_double_signature, "(J)D") \ |
|
430 |
template(byte_signature, "B") \ |
|
431 |
template(char_signature, "C") \ |
|
432 |
template(double_signature, "D") \ |
|
433 |
template(float_signature, "F") \ |
|
434 |
template(int_signature, "I") \ |
|
435 |
template(long_signature, "J") \ |
|
436 |
template(short_signature, "S") \ |
|
437 |
template(bool_signature, "Z") \ |
|
438 |
template(void_signature, "V") \ |
|
439 |
template(byte_array_signature, "[B") \ |
|
440 |
template(char_array_signature, "[C") \ |
|
9630
d6419e4395e3
6939861: JVM should handle more conversion operations
never
parents:
9187
diff
changeset
|
441 |
template(int_array_signature, "[I") \ |
1 | 442 |
template(object_void_signature, "(Ljava/lang/Object;)V") \ |
443 |
template(object_int_signature, "(Ljava/lang/Object;)I") \ |
|
444 |
template(object_boolean_signature, "(Ljava/lang/Object;)Z") \ |
|
445 |
template(string_void_signature, "(Ljava/lang/String;)V") \ |
|
446 |
template(string_int_signature, "(Ljava/lang/String;)I") \ |
|
447 |
template(throwable_void_signature, "(Ljava/lang/Throwable;)V") \ |
|
448 |
template(void_throwable_signature, "()Ljava/lang/Throwable;") \ |
|
449 |
template(throwable_throwable_signature, "(Ljava/lang/Throwable;)Ljava/lang/Throwable;") \ |
|
450 |
template(class_void_signature, "(Ljava/lang/Class;)V") \ |
|
451 |
template(class_int_signature, "(Ljava/lang/Class;)I") \ |
|
12377
ae6def2813e0
7160570: Intrinsification support for tracing framework
rbackman
parents:
11953
diff
changeset
|
452 |
template(class_long_signature, "(Ljava/lang/Class;)J") \ |
1 | 453 |
template(class_boolean_signature, "(Ljava/lang/Class;)Z") \ |
454 |
template(throwable_string_void_signature, "(Ljava/lang/Throwable;Ljava/lang/String;)V") \ |
|
455 |
template(string_array_void_signature, "([Ljava/lang/String;)V") \ |
|
456 |
template(string_array_string_array_void_signature, "([Ljava/lang/String;[Ljava/lang/String;)V") \ |
|
457 |
template(thread_throwable_void_signature, "(Ljava/lang/Thread;Ljava/lang/Throwable;)V") \ |
|
458 |
template(thread_void_signature, "(Ljava/lang/Thread;)V") \ |
|
459 |
template(threadgroup_runnable_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;)V") \ |
|
460 |
template(threadgroup_string_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/String;)V") \ |
|
461 |
template(string_class_signature, "(Ljava/lang/String;)Ljava/lang/Class;") \ |
|
462 |
template(object_object_object_signature, "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;") \ |
|
463 |
template(string_string_string_signature, "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;") \ |
|
464 |
template(string_string_signature, "(Ljava/lang/String;)Ljava/lang/String;") \ |
|
465 |
template(classloader_string_long_signature, "(Ljava/lang/ClassLoader;Ljava/lang/String;)J") \ |
|
466 |
template(byte_array_void_signature, "([B)V") \ |
|
467 |
template(char_array_void_signature, "([C)V") \ |
|
468 |
template(int_int_void_signature, "(II)V") \ |
|
469 |
template(long_long_void_signature, "(JJ)V") \ |
|
470 |
template(void_classloader_signature, "()Ljava/lang/ClassLoader;") \ |
|
471 |
template(void_object_signature, "()Ljava/lang/Object;") \ |
|
472 |
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
|
473 |
template(void_class_array_signature, "()[Ljava/lang/Class;") \ |
5420
586d3988e72b
6939134: JSR 292 adjustments to method handle invocation
jrose
parents:
5352
diff
changeset
|
474 |
template(void_string_signature, "()Ljava/lang/String;") \ |
586d3988e72b
6939134: JSR 292 adjustments to method handle invocation
jrose
parents:
5352
diff
changeset
|
475 |
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
|
476 |
template(object_object_array_object_signature, "(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;")\ |
1 | 477 |
template(exception_void_signature, "(Ljava/lang/Exception;)V") \ |
478 |
template(protectiondomain_signature, "[Ljava/security/ProtectionDomain;") \ |
|
479 |
template(accesscontrolcontext_signature, "Ljava/security/AccessControlContext;") \ |
|
480 |
template(class_protectiondomain_signature, "(Ljava/lang/Class;Ljava/security/ProtectionDomain;)V") \ |
|
481 |
template(thread_signature, "Ljava/lang/Thread;") \ |
|
482 |
template(thread_array_signature, "[Ljava/lang/Thread;") \ |
|
483 |
template(threadgroup_signature, "Ljava/lang/ThreadGroup;") \ |
|
484 |
template(threadgroup_array_signature, "[Ljava/lang/ThreadGroup;") \ |
|
485 |
template(class_array_signature, "[Ljava/lang/Class;") \ |
|
486 |
template(classloader_signature, "Ljava/lang/ClassLoader;") \ |
|
487 |
template(object_signature, "Ljava/lang/Object;") \ |
|
488 |
template(class_signature, "Ljava/lang/Class;") \ |
|
489 |
template(string_signature, "Ljava/lang/String;") \ |
|
490 |
template(reference_signature, "Ljava/lang/ref/Reference;") \ |
|
15102
0a86564e5f61
8004728: Add hotspot support for parameter reflection
coleenp
parents:
15098
diff
changeset
|
491 |
template(executable_signature, "Ljava/lang/reflect/Executable;") \ |
1890 | 492 |
template(concurrenthashmap_signature, "Ljava/util/concurrent/ConcurrentHashMap;") \ |
4450
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4429
diff
changeset
|
493 |
template(String_StringBuilder_signature, "(Ljava/lang/String;)Ljava/lang/StringBuilder;") \ |
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4429
diff
changeset
|
494 |
template(int_StringBuilder_signature, "(I)Ljava/lang/StringBuilder;") \ |
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4429
diff
changeset
|
495 |
template(char_StringBuilder_signature, "(C)Ljava/lang/StringBuilder;") \ |
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4429
diff
changeset
|
496 |
template(String_StringBuffer_signature, "(Ljava/lang/String;)Ljava/lang/StringBuffer;") \ |
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4429
diff
changeset
|
497 |
template(int_StringBuffer_signature, "(I)Ljava/lang/StringBuffer;") \ |
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4429
diff
changeset
|
498 |
template(char_StringBuffer_signature, "(C)Ljava/lang/StringBuffer;") \ |
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4429
diff
changeset
|
499 |
template(int_String_signature, "(I)Ljava/lang/String;") \ |
1 | 500 |
/* signature symbols needed by intrinsics */ \ |
501 |
VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, template, VM_ALIAS_IGNORE) \ |
|
502 |
\ |
|
503 |
/* symbol aliases needed by intrinsics */ \ |
|
504 |
VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, do_alias) \ |
|
505 |
\ |
|
506 |
/* 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
|
507 |
template(dummy_symbol, "illegal symbol") \ |
1 | 508 |
\ |
509 |
/* used by ClassFormatError when class name is not known yet */ \ |
|
510 |
template(unknown_class_name, "<Unknown>") \ |
|
511 |
\ |
|
1890 | 512 |
/* used to identify class loaders handling parallel class loading */ \ |
2265
56439ca57904
6819853: VM does not detect JDK which supports parallel class loaders
acorn
parents:
2105
diff
changeset
|
513 |
template(parallelCapable_name, "parallelLockMap") \ |
1890 | 514 |
\ |
1 | 515 |
/* JVM monitoring and management support */ \ |
516 |
template(java_lang_StackTraceElement_array, "[Ljava/lang/StackTraceElement;") \ |
|
517 |
template(java_lang_management_ThreadState, "java/lang/management/ThreadState") \ |
|
518 |
template(java_lang_management_MemoryUsage, "java/lang/management/MemoryUsage") \ |
|
519 |
template(java_lang_management_ThreadInfo, "java/lang/management/ThreadInfo") \ |
|
520 |
template(sun_management_ManagementFactory, "sun/management/ManagementFactory") \ |
|
521 |
template(sun_management_Sensor, "sun/management/Sensor") \ |
|
522 |
template(sun_management_Agent, "sun/management/Agent") \ |
|
17296
68557efd8583
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
16617
diff
changeset
|
523 |
template(sun_management_DiagnosticCommandImpl, "sun/management/DiagnosticCommandImpl") \ |
9623
151c0b638488
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
9187
diff
changeset
|
524 |
template(sun_management_GarbageCollectorImpl, "sun/management/GarbageCollectorImpl") \ |
17296
68557efd8583
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
16617
diff
changeset
|
525 |
template(sun_management_ManagementFactoryHelper, "sun/management/ManagementFactoryHelper") \ |
68557efd8583
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
16617
diff
changeset
|
526 |
template(getDiagnosticCommandMBean_name, "getDiagnosticCommandMBean") \ |
68557efd8583
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
16617
diff
changeset
|
527 |
template(getDiagnosticCommandMBean_signature, "()Lcom/sun/management/DiagnosticCommandMBean;") \ |
9623
151c0b638488
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
9187
diff
changeset
|
528 |
template(getGcInfoBuilder_name, "getGcInfoBuilder") \ |
151c0b638488
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
9187
diff
changeset
|
529 |
template(getGcInfoBuilder_signature, "()Lsun/management/GcInfoBuilder;") \ |
151c0b638488
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
9187
diff
changeset
|
530 |
template(com_sun_management_GcInfo, "com/sun/management/GcInfo") \ |
151c0b638488
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
9187
diff
changeset
|
531 |
template(com_sun_management_GcInfo_constructor_signature, "(Lsun/management/GcInfoBuilder;JJJ[Ljava/lang/management/MemoryUsage;[Ljava/lang/management/MemoryUsage;[Ljava/lang/Object;)V") \ |
151c0b638488
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
9187
diff
changeset
|
532 |
template(createGCNotification_name, "createGCNotification") \ |
151c0b638488
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
9187
diff
changeset
|
533 |
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
|
534 |
template(createDiagnosticFrameworkNotification_name, "createDiagnosticFrameworkNotification") \ |
1 | 535 |
template(createMemoryPoolMBean_name, "createMemoryPoolMBean") \ |
536 |
template(createMemoryManagerMBean_name, "createMemoryManagerMBean") \ |
|
537 |
template(createGarbageCollectorMBean_name, "createGarbageCollectorMBean") \ |
|
538 |
template(createMemoryPoolMBean_signature, "(Ljava/lang/String;ZJJ)Ljava/lang/management/MemoryPoolMBean;") \ |
|
539 |
template(createMemoryManagerMBean_signature, "(Ljava/lang/String;)Ljava/lang/management/MemoryManagerMBean;") \ |
|
540 |
template(createGarbageCollectorMBean_signature, "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/management/GarbageCollectorMBean;") \ |
|
541 |
template(trigger_name, "trigger") \ |
|
542 |
template(clear_name, "clear") \ |
|
543 |
template(trigger_method_signature, "(ILjava/lang/management/MemoryUsage;)V") \ |
|
544 |
template(startAgent_name, "startAgent") \ |
|
11953
d06edd28ba62
7110104: It should be possible to stop and start JMX Agent at runtime
dsamersoff
parents:
11760
diff
changeset
|
545 |
template(startRemoteAgent_name, "startRemoteManagementAgent") \ |
d06edd28ba62
7110104: It should be possible to stop and start JMX Agent at runtime
dsamersoff
parents:
11760
diff
changeset
|
546 |
template(startLocalAgent_name, "startLocalManagementAgent") \ |
d06edd28ba62
7110104: It should be possible to stop and start JMX Agent at runtime
dsamersoff
parents:
11760
diff
changeset
|
547 |
template(stopRemoteAgent_name, "stopRemoteManagementAgent") \ |
1 | 548 |
template(java_lang_management_ThreadInfo_constructor_signature, "(Ljava/lang/Thread;ILjava/lang/Object;Ljava/lang/Thread;JJJJ[Ljava/lang/StackTraceElement;)V") \ |
549 |
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") \ |
|
550 |
template(long_long_long_long_void_signature, "(JJJJ)V") \ |
|
551 |
\ |
|
552 |
template(java_lang_management_MemoryPoolMXBean, "java/lang/management/MemoryPoolMXBean") \ |
|
553 |
template(java_lang_management_MemoryManagerMXBean, "java/lang/management/MemoryManagerMXBean") \ |
|
554 |
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
|
555 |
template(gcInfoBuilder_name, "gcInfoBuilder") \ |
1 | 556 |
template(createMemoryPool_name, "createMemoryPool") \ |
557 |
template(createMemoryManager_name, "createMemoryManager") \ |
|
558 |
template(createGarbageCollector_name, "createGarbageCollector") \ |
|
559 |
template(createMemoryPool_signature, "(Ljava/lang/String;ZJJ)Ljava/lang/management/MemoryPoolMXBean;") \ |
|
560 |
template(createMemoryManager_signature, "(Ljava/lang/String;)Ljava/lang/management/MemoryManagerMXBean;") \ |
|
561 |
template(createGarbageCollector_signature, "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/management/GarbageCollectorMXBean;") \ |
|
562 |
template(addThreadDumpForMonitors_name, "addThreadDumpForMonitors") \ |
|
563 |
template(addThreadDumpForSynchronizers_name, "addThreadDumpForSynchronizers") \ |
|
564 |
template(addThreadDumpForMonitors_signature, "(Ljava/lang/management/ThreadInfo;[Ljava/lang/Object;[I)V") \ |
|
565 |
template(addThreadDumpForSynchronizers_signature, "(Ljava/lang/management/ThreadInfo;[Ljava/lang/Object;)V") \ |
|
566 |
\ |
|
567 |
/* JVMTI/java.lang.instrument support and VM Attach mechanism */ \ |
|
568 |
template(sun_misc_VMSupport, "sun/misc/VMSupport") \ |
|
569 |
template(appendToClassPathForInstrumentation_name, "appendToClassPathForInstrumentation") \ |
|
570 |
do_alias(appendToClassPathForInstrumentation_signature, string_void_signature) \ |
|
571 |
template(serializePropertiesToByteArray_name, "serializePropertiesToByteArray") \ |
|
572 |
template(serializePropertiesToByteArray_signature, "()[B") \ |
|
573 |
template(serializeAgentPropertiesToByteArray_name, "serializeAgentPropertiesToByteArray") \ |
|
574 |
template(classRedefinedCount_name, "classRedefinedCount") \ |
|
12377
ae6def2813e0
7160570: Intrinsification support for tracing framework
rbackman
parents:
11953
diff
changeset
|
575 |
\ |
ae6def2813e0
7160570: Intrinsification support for tracing framework
rbackman
parents:
11953
diff
changeset
|
576 |
/* trace signatures */ \ |
ae6def2813e0
7160570: Intrinsification support for tracing framework
rbackman
parents:
11953
diff
changeset
|
577 |
TRACE_TEMPLATES(template) \ |
ae6def2813e0
7160570: Intrinsification support for tracing framework
rbackman
parents:
11953
diff
changeset
|
578 |
\ |
1 | 579 |
/*end*/ |
580 |
||
581 |
// Here are all the intrinsics known to the runtime and the CI. |
|
582 |
// Each intrinsic consists of a public enum name (like _hashCode), |
|
583 |
// followed by a specification of its klass, name, and signature: |
|
584 |
// template(<id>, <klass>, <name>, <sig>, <FCODE>) |
|
585 |
// |
|
586 |
// If you add an intrinsic here, you must also define its name |
|
587 |
// and signature as members of the VM symbols. The VM symbols for |
|
588 |
// the intrinsic name and signature may be defined above. |
|
589 |
// |
|
590 |
// Because the VM_SYMBOLS_DO macro makes reference to VM_INTRINSICS_DO, |
|
591 |
// you can also define an intrinsic's name and/or signature locally to the |
|
592 |
// intrinsic, if this makes sense. (It often does make sense.) |
|
593 |
// |
|
594 |
// For example: |
|
595 |
// do_intrinsic(_foo, java_lang_Object, foo_name, foo_signature, F_xx) |
|
596 |
// do_name( foo_name, "foo") |
|
597 |
// do_signature(foo_signature, "()F") |
|
598 |
// klass = vmSymbols::java_lang_Object() |
|
599 |
// name = vmSymbols::foo_name() |
|
600 |
// signature = vmSymbols::foo_signature() |
|
601 |
// |
|
602 |
// The name and/or signature might be a "well known" symbol |
|
603 |
// like "equal" or "()I", in which case there will be no local |
|
604 |
// re-definition of the symbol. |
|
605 |
// |
|
606 |
// The do_class, do_name, and do_signature calls are all used for the |
|
607 |
// same purpose: Define yet another VM symbol. They could all be merged |
|
608 |
// into a common 'do_symbol' call, but it seems useful to record our |
|
609 |
// intentions here about kinds of symbols (class vs. name vs. signature). |
|
610 |
// |
|
611 |
// The F_xx is one of the Flags enum; see below. |
|
612 |
// |
|
613 |
// for Emacs: (let ((c-backslash-column 120) (c-backslash-max-column 120)) (c-backslash-region (point) (point-max) nil t)) |
|
614 |
#define VM_INTRINSICS_DO(do_intrinsic, do_class, do_name, do_signature, do_alias) \ |
|
615 |
do_intrinsic(_hashCode, java_lang_Object, hashCode_name, void_int_signature, F_R) \ |
|
616 |
do_name( hashCode_name, "hashCode") \ |
|
617 |
do_intrinsic(_getClass, java_lang_Object, getClass_name, void_class_signature, F_R) \ |
|
618 |
do_name( getClass_name, "getClass") \ |
|
619 |
do_intrinsic(_clone, java_lang_Object, clone_name, void_object_signature, F_R) \ |
|
620 |
do_name( clone_name, "clone") \ |
|
621 |
\ |
|
622 |
/* Math & StrictMath intrinsics are defined in terms of just a few signatures: */ \ |
|
623 |
do_class(java_lang_Math, "java/lang/Math") \ |
|
624 |
do_class(java_lang_StrictMath, "java/lang/StrictMath") \ |
|
625 |
do_signature(double2_double_signature, "(DD)D") \ |
|
626 |
do_signature(int2_int_signature, "(II)I") \ |
|
21105
47618ee96ed5
8026844: Various Math functions needs intrinsification
rbackman
parents:
20299
diff
changeset
|
627 |
do_signature(long2_long_signature, "(JJ)J") \ |
1 | 628 |
\ |
629 |
/* here are the math names, all together: */ \ |
|
630 |
do_name(abs_name,"abs") do_name(sin_name,"sin") do_name(cos_name,"cos") \ |
|
631 |
do_name(tan_name,"tan") do_name(atan2_name,"atan2") do_name(sqrt_name,"sqrt") \ |
|
632 |
do_name(log_name,"log") do_name(log10_name,"log10") do_name(pow_name,"pow") \ |
|
633 |
do_name(exp_name,"exp") do_name(min_name,"min") do_name(max_name,"max") \ |
|
634 |
\ |
|
20289 | 635 |
do_name(addExact_name,"addExact") \ |
21105
47618ee96ed5
8026844: Various Math functions needs intrinsification
rbackman
parents:
20299
diff
changeset
|
636 |
do_name(decrementExact_name,"decrementExact") \ |
47618ee96ed5
8026844: Various Math functions needs intrinsification
rbackman
parents:
20299
diff
changeset
|
637 |
do_name(incrementExact_name,"incrementExact") \ |
47618ee96ed5
8026844: Various Math functions needs intrinsification
rbackman
parents:
20299
diff
changeset
|
638 |
do_name(multiplyExact_name,"multiplyExact") \ |
47618ee96ed5
8026844: Various Math functions needs intrinsification
rbackman
parents:
20299
diff
changeset
|
639 |
do_name(negateExact_name,"negateExact") \ |
20289 | 640 |
do_name(subtractExact_name,"subtractExact") \ |
641 |
\ |
|
1 | 642 |
do_intrinsic(_dabs, java_lang_Math, abs_name, double_double_signature, F_S) \ |
643 |
do_intrinsic(_dsin, java_lang_Math, sin_name, double_double_signature, F_S) \ |
|
644 |
do_intrinsic(_dcos, java_lang_Math, cos_name, double_double_signature, F_S) \ |
|
645 |
do_intrinsic(_dtan, java_lang_Math, tan_name, double_double_signature, F_S) \ |
|
646 |
do_intrinsic(_datan2, java_lang_Math, atan2_name, double2_double_signature, F_S) \ |
|
647 |
do_intrinsic(_dsqrt, java_lang_Math, sqrt_name, double_double_signature, F_S) \ |
|
648 |
do_intrinsic(_dlog, java_lang_Math, log_name, double_double_signature, F_S) \ |
|
649 |
do_intrinsic(_dlog10, java_lang_Math, log10_name, double_double_signature, F_S) \ |
|
650 |
do_intrinsic(_dpow, java_lang_Math, pow_name, double2_double_signature, F_S) \ |
|
651 |
do_intrinsic(_dexp, java_lang_Math, exp_name, double_double_signature, F_S) \ |
|
652 |
do_intrinsic(_min, java_lang_Math, min_name, int2_int_signature, F_S) \ |
|
653 |
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
|
654 |
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
|
655 |
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
|
656 |
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
|
657 |
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
|
658 |
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
|
659 |
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
|
660 |
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
|
661 |
do_intrinsic(_multiplyExactL, java_lang_Math, multiplyExact_name, long2_long_signature, F_S) \ |
47618ee96ed5
8026844: Various Math functions needs intrinsification
rbackman
parents:
20299
diff
changeset
|
662 |
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
|
663 |
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
|
664 |
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
|
665 |
do_intrinsic(_subtractExactL, java_lang_Math, subtractExact_name, long2_long_signature, F_S) \ |
1 | 666 |
\ |
667 |
do_intrinsic(_floatToRawIntBits, java_lang_Float, floatToRawIntBits_name, float_int_signature, F_S) \ |
|
668 |
do_name( floatToRawIntBits_name, "floatToRawIntBits") \ |
|
669 |
do_intrinsic(_floatToIntBits, java_lang_Float, floatToIntBits_name, float_int_signature, F_S) \ |
|
670 |
do_name( floatToIntBits_name, "floatToIntBits") \ |
|
671 |
do_intrinsic(_intBitsToFloat, java_lang_Float, intBitsToFloat_name, int_float_signature, F_S) \ |
|
672 |
do_name( intBitsToFloat_name, "intBitsToFloat") \ |
|
673 |
do_intrinsic(_doubleToRawLongBits, java_lang_Double, doubleToRawLongBits_name, double_long_signature, F_S) \ |
|
674 |
do_name( doubleToRawLongBits_name, "doubleToRawLongBits") \ |
|
675 |
do_intrinsic(_doubleToLongBits, java_lang_Double, doubleToLongBits_name, double_long_signature, F_S) \ |
|
676 |
do_name( doubleToLongBits_name, "doubleToLongBits") \ |
|
677 |
do_intrinsic(_longBitsToDouble, java_lang_Double, longBitsToDouble_name, long_double_signature, F_S) \ |
|
678 |
do_name( longBitsToDouble_name, "longBitsToDouble") \ |
|
2255
54abdf3e1055
6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents:
1890
diff
changeset
|
679 |
\ |
2862
fad636edf18f
6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents:
2570
diff
changeset
|
680 |
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
|
681 |
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
|
682 |
\ |
fad636edf18f
6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents:
2570
diff
changeset
|
683 |
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
|
684 |
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
|
685 |
\ |
2255
54abdf3e1055
6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents:
1890
diff
changeset
|
686 |
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
|
687 |
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
|
688 |
\ |
1 | 689 |
do_intrinsic(_reverseBytes_i, java_lang_Integer, reverseBytes_name, int_int_signature, F_S) \ |
690 |
do_name( reverseBytes_name, "reverseBytes") \ |
|
691 |
do_intrinsic(_reverseBytes_l, java_lang_Long, reverseBytes_name, long_long_signature, F_S) \ |
|
692 |
/* (symbol reverseBytes_name defined above) */ \ |
|
5352
cee8f7acb7bc
6946040: add intrinsic for short and char reverseBytes
never
parents:
4573
diff
changeset
|
693 |
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
|
694 |
/* (symbol reverseBytes_name defined above) */ \ |
cee8f7acb7bc
6946040: add intrinsic for short and char reverseBytes
never
parents:
4573
diff
changeset
|
695 |
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
|
696 |
/* (symbol reverseBytes_name defined above) */ \ |
1 | 697 |
\ |
698 |
do_intrinsic(_identityHashCode, java_lang_System, identityHashCode_name, object_int_signature, F_S) \ |
|
699 |
do_name( identityHashCode_name, "identityHashCode") \ |
|
700 |
do_intrinsic(_currentTimeMillis, java_lang_System, currentTimeMillis_name, void_long_signature, F_S) \ |
|
701 |
\ |
|
702 |
do_name( currentTimeMillis_name, "currentTimeMillis") \ |
|
703 |
do_intrinsic(_nanoTime, java_lang_System, nanoTime_name, void_long_signature, F_S) \ |
|
704 |
do_name( nanoTime_name, "nanoTime") \ |
|
705 |
\ |
|
12377
ae6def2813e0
7160570: Intrinsification support for tracing framework
rbackman
parents:
11953
diff
changeset
|
706 |
TRACE_INTRINSICS(do_intrinsic, do_class, do_name, do_signature, do_alias) \ |
ae6def2813e0
7160570: Intrinsification support for tracing framework
rbackman
parents:
11953
diff
changeset
|
707 |
\ |
1 | 708 |
do_intrinsic(_arraycopy, java_lang_System, arraycopy_name, arraycopy_signature, F_S) \ |
709 |
do_name( arraycopy_name, "arraycopy") \ |
|
710 |
do_signature(arraycopy_signature, "(Ljava/lang/Object;ILjava/lang/Object;II)V") \ |
|
711 |
do_intrinsic(_isInterrupted, java_lang_Thread, isInterrupted_name, isInterrupted_signature, F_R) \ |
|
712 |
do_name( isInterrupted_name, "isInterrupted") \ |
|
713 |
do_signature(isInterrupted_signature, "(Z)Z") \ |
|
714 |
do_intrinsic(_currentThread, java_lang_Thread, currentThread_name, currentThread_signature, F_S) \ |
|
715 |
do_name( currentThread_name, "currentThread") \ |
|
716 |
do_signature(currentThread_signature, "()Ljava/lang/Thread;") \ |
|
717 |
\ |
|
718 |
/* reflective intrinsics, for java/lang/Class, etc. */ \ |
|
719 |
do_intrinsic(_isAssignableFrom, java_lang_Class, isAssignableFrom_name, class_boolean_signature, F_RN) \ |
|
720 |
do_name( isAssignableFrom_name, "isAssignableFrom") \ |
|
721 |
do_intrinsic(_isInstance, java_lang_Class, isInstance_name, object_boolean_signature, F_RN) \ |
|
722 |
do_name( isInstance_name, "isInstance") \ |
|
723 |
do_intrinsic(_getModifiers, java_lang_Class, getModifiers_name, void_int_signature, F_RN) \ |
|
724 |
do_name( getModifiers_name, "getModifiers") \ |
|
725 |
do_intrinsic(_isInterface, java_lang_Class, isInterface_name, void_boolean_signature, F_RN) \ |
|
726 |
do_name( isInterface_name, "isInterface") \ |
|
727 |
do_intrinsic(_isArray, java_lang_Class, isArray_name, void_boolean_signature, F_RN) \ |
|
728 |
do_name( isArray_name, "isArray") \ |
|
729 |
do_intrinsic(_isPrimitive, java_lang_Class, isPrimitive_name, void_boolean_signature, F_RN) \ |
|
730 |
do_name( isPrimitive_name, "isPrimitive") \ |
|
731 |
do_intrinsic(_getSuperclass, java_lang_Class, getSuperclass_name, void_class_signature, F_RN) \ |
|
732 |
do_name( getSuperclass_name, "getSuperclass") \ |
|
733 |
do_intrinsic(_getComponentType, java_lang_Class, getComponentType_name, void_class_signature, F_RN) \ |
|
734 |
do_name( getComponentType_name, "getComponentType") \ |
|
735 |
\ |
|
736 |
do_intrinsic(_getClassAccessFlags, sun_reflect_Reflection, getClassAccessFlags_name, class_int_signature, F_SN) \ |
|
737 |
do_name( getClassAccessFlags_name, "getClassAccessFlags") \ |
|
738 |
do_intrinsic(_getLength, java_lang_reflect_Array, getLength_name, object_int_signature, F_SN) \ |
|
739 |
do_name( getLength_name, "getLength") \ |
|
740 |
\ |
|
16617
6235d2c7549f
7198429: need checked categorization of caller-sensitive methods in the JDK
twisti
parents:
15436
diff
changeset
|
741 |
do_intrinsic(_getCallerClass, sun_reflect_Reflection, getCallerClass_name, void_class_signature, F_SN) \ |
1 | 742 |
do_name( getCallerClass_name, "getCallerClass") \ |
743 |
\ |
|
744 |
do_intrinsic(_newArray, java_lang_reflect_Array, newArray_name, newArray_signature, F_SN) \ |
|
745 |
do_name( newArray_name, "newArray") \ |
|
746 |
do_signature(newArray_signature, "(Ljava/lang/Class;I)Ljava/lang/Object;") \ |
|
747 |
\ |
|
748 |
do_intrinsic(_copyOf, java_util_Arrays, copyOf_name, copyOf_signature, F_S) \ |
|
749 |
do_name( copyOf_name, "copyOf") \ |
|
750 |
do_signature(copyOf_signature, "([Ljava/lang/Object;ILjava/lang/Class;)[Ljava/lang/Object;") \ |
|
751 |
\ |
|
752 |
do_intrinsic(_copyOfRange, java_util_Arrays, copyOfRange_name, copyOfRange_signature, F_S) \ |
|
753 |
do_name( copyOfRange_name, "copyOfRange") \ |
|
754 |
do_signature(copyOfRange_signature, "([Ljava/lang/Object;IILjava/lang/Class;)[Ljava/lang/Object;") \ |
|
755 |
\ |
|
595
a2be4c89de81
6695049: (coll) Create an x86 intrinsic for Arrays.equals
rasbold
parents:
218
diff
changeset
|
756 |
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
|
757 |
do_signature(equalsC_signature, "([C[C)Z") \ |
a2be4c89de81
6695049: (coll) Create an x86 intrinsic for Arrays.equals
rasbold
parents:
218
diff
changeset
|
758 |
\ |
1 | 759 |
do_intrinsic(_compareTo, java_lang_String, compareTo_name, string_int_signature, F_R) \ |
760 |
do_name( compareTo_name, "compareTo") \ |
|
761 |
do_intrinsic(_indexOf, java_lang_String, indexOf_name, string_int_signature, F_R) \ |
|
762 |
do_name( indexOf_name, "indexOf") \ |
|
2348 | 763 |
do_intrinsic(_equals, java_lang_String, equals_name, object_boolean_signature, F_R) \ |
1 | 764 |
\ |
765 |
do_class(java_nio_Buffer, "java/nio/Buffer") \ |
|
766 |
do_intrinsic(_checkIndex, java_nio_Buffer, checkIndex_name, int_int_signature, F_R) \ |
|
767 |
do_name( checkIndex_name, "checkIndex") \ |
|
768 |
\ |
|
15242
695bb216be99
6896617: Optimize sun.nio.cs.ISO_8859_1$Encode.encodeArrayLoop() on x86
kvn
parents:
15221
diff
changeset
|
769 |
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
|
770 |
do_intrinsic(_encodeISOArray, sun_nio_cs_iso8859_1_Encoder, encodeISOArray_name, encodeISOArray_signature, F_S) \ |
695bb216be99
6896617: Optimize sun.nio.cs.ISO_8859_1$Encode.encodeArrayLoop() on x86
kvn
parents:
15221
diff
changeset
|
771 |
do_name( encodeISOArray_name, "encodeISOArray") \ |
695bb216be99
6896617: Optimize sun.nio.cs.ISO_8859_1$Encode.encodeArrayLoop() on x86
kvn
parents:
15221
diff
changeset
|
772 |
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
|
773 |
\ |
9176
42d9d1010f38
7009266: G1: assert(obj->is_oop_or_null(true )) failed: Error
johnc
parents:
8676
diff
changeset
|
774 |
/* java/lang/ref/Reference */ \ |
42d9d1010f38
7009266: G1: assert(obj->is_oop_or_null(true )) failed: Error
johnc
parents:
8676
diff
changeset
|
775 |
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
|
776 |
\ |
14132 | 777 |
/* support for com.sum.crypto.provider.AESCrypt and some of its callers */ \ |
778 |
do_class(com_sun_crypto_provider_aescrypt, "com/sun/crypto/provider/AESCrypt") \ |
|
779 |
do_intrinsic(_aescrypt_encryptBlock, com_sun_crypto_provider_aescrypt, encryptBlock_name, byteArray_int_byteArray_int_signature, F_R) \ |
|
780 |
do_intrinsic(_aescrypt_decryptBlock, com_sun_crypto_provider_aescrypt, decryptBlock_name, byteArray_int_byteArray_int_signature, F_R) \ |
|
781 |
do_name( encryptBlock_name, "encryptBlock") \ |
|
782 |
do_name( decryptBlock_name, "decryptBlock") \ |
|
783 |
do_signature(byteArray_int_byteArray_int_signature, "([BI[BI)V") \ |
|
784 |
\ |
|
785 |
do_class(com_sun_crypto_provider_cipherBlockChaining, "com/sun/crypto/provider/CipherBlockChaining") \ |
|
786 |
do_intrinsic(_cipherBlockChaining_encryptAESCrypt, com_sun_crypto_provider_cipherBlockChaining, encrypt_name, byteArray_int_int_byteArray_int_signature, F_R) \ |
|
787 |
do_intrinsic(_cipherBlockChaining_decryptAESCrypt, com_sun_crypto_provider_cipherBlockChaining, decrypt_name, byteArray_int_int_byteArray_int_signature, F_R) \ |
|
788 |
do_name( encrypt_name, "encrypt") \ |
|
789 |
do_name( decrypt_name, "decrypt") \ |
|
22505 | 790 |
do_signature(byteArray_int_int_byteArray_int_signature, "([BII[BI)I") \ |
14132 | 791 |
\ |
18507
61bfc8995bb3
7088419: Use x86 Hardware CRC32 Instruction with java.util.zip.CRC32
drchase
parents:
18065
diff
changeset
|
792 |
/* support for java.util.zip */ \ |
61bfc8995bb3
7088419: Use x86 Hardware CRC32 Instruction with java.util.zip.CRC32
drchase
parents:
18065
diff
changeset
|
793 |
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
|
794 |
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
|
795 |
do_name( update_name, "update") \ |
61bfc8995bb3
7088419: Use x86 Hardware CRC32 Instruction with java.util.zip.CRC32
drchase
parents:
18065
diff
changeset
|
796 |
do_intrinsic(_updateBytesCRC32, java_util_zip_CRC32, updateBytes_name, updateBytes_signature, F_SN) \ |
61bfc8995bb3
7088419: Use x86 Hardware CRC32 Instruction with java.util.zip.CRC32
drchase
parents:
18065
diff
changeset
|
797 |
do_name( updateBytes_name, "updateBytes") \ |
61bfc8995bb3
7088419: Use x86 Hardware CRC32 Instruction with java.util.zip.CRC32
drchase
parents:
18065
diff
changeset
|
798 |
do_signature(updateBytes_signature, "(I[BII)I") \ |
61bfc8995bb3
7088419: Use x86 Hardware CRC32 Instruction with java.util.zip.CRC32
drchase
parents:
18065
diff
changeset
|
799 |
do_intrinsic(_updateByteBufferCRC32, java_util_zip_CRC32, updateByteBuffer_name, updateByteBuffer_signature, F_SN) \ |
61bfc8995bb3
7088419: Use x86 Hardware CRC32 Instruction with java.util.zip.CRC32
drchase
parents:
18065
diff
changeset
|
800 |
do_name( updateByteBuffer_name, "updateByteBuffer") \ |
61bfc8995bb3
7088419: Use x86 Hardware CRC32 Instruction with java.util.zip.CRC32
drchase
parents:
18065
diff
changeset
|
801 |
do_signature(updateByteBuffer_signature, "(IJII)I") \ |
61bfc8995bb3
7088419: Use x86 Hardware CRC32 Instruction with java.util.zip.CRC32
drchase
parents:
18065
diff
changeset
|
802 |
\ |
1 | 803 |
/* support for sun.misc.Unsafe */ \ |
804 |
do_class(sun_misc_Unsafe, "sun/misc/Unsafe") \ |
|
805 |
\ |
|
806 |
do_intrinsic(_allocateInstance, sun_misc_Unsafe, allocateInstance_name, allocateInstance_signature, F_RN) \ |
|
807 |
do_name( allocateInstance_name, "allocateInstance") \ |
|
808 |
do_signature(allocateInstance_signature, "(Ljava/lang/Class;)Ljava/lang/Object;") \ |
|
809 |
do_intrinsic(_copyMemory, sun_misc_Unsafe, copyMemory_name, copyMemory_signature, F_RN) \ |
|
810 |
do_name( copyMemory_name, "copyMemory") \ |
|
811 |
do_signature(copyMemory_signature, "(Ljava/lang/Object;JLjava/lang/Object;JJ)V") \ |
|
812 |
do_intrinsic(_park, sun_misc_Unsafe, park_name, park_signature, F_RN) \ |
|
813 |
do_name( park_name, "park") \ |
|
814 |
do_signature(park_signature, "(ZJ)V") \ |
|
815 |
do_intrinsic(_unpark, sun_misc_Unsafe, unpark_name, unpark_signature, F_RN) \ |
|
816 |
do_name( unpark_name, "unpark") \ |
|
817 |
do_alias( unpark_signature, /*(LObject;)V*/ object_void_signature) \ |
|
14832 | 818 |
do_intrinsic(_loadFence, sun_misc_Unsafe, loadFence_name, loadFence_signature, F_RN) \ |
819 |
do_name( loadFence_name, "loadFence") \ |
|
820 |
do_alias( loadFence_signature, void_method_signature) \ |
|
821 |
do_intrinsic(_storeFence, sun_misc_Unsafe, storeFence_name, storeFence_signature, F_RN) \ |
|
822 |
do_name( storeFence_name, "storeFence") \ |
|
823 |
do_alias( storeFence_signature, void_method_signature) \ |
|
824 |
do_intrinsic(_fullFence, sun_misc_Unsafe, fullFence_name, fullFence_signature, F_RN) \ |
|
825 |
do_name( fullFence_name, "fullFence") \ |
|
826 |
do_alias( fullFence_signature, void_method_signature) \ |
|
1 | 827 |
\ |
828 |
/* unsafe memory references (there are a lot of them...) */ \ |
|
829 |
do_signature(getObject_signature, "(Ljava/lang/Object;J)Ljava/lang/Object;") \ |
|
830 |
do_signature(putObject_signature, "(Ljava/lang/Object;JLjava/lang/Object;)V") \ |
|
831 |
do_signature(getBoolean_signature, "(Ljava/lang/Object;J)Z") \ |
|
832 |
do_signature(putBoolean_signature, "(Ljava/lang/Object;JZ)V") \ |
|
833 |
do_signature(getByte_signature, "(Ljava/lang/Object;J)B") \ |
|
834 |
do_signature(putByte_signature, "(Ljava/lang/Object;JB)V") \ |
|
835 |
do_signature(getShort_signature, "(Ljava/lang/Object;J)S") \ |
|
836 |
do_signature(putShort_signature, "(Ljava/lang/Object;JS)V") \ |
|
837 |
do_signature(getChar_signature, "(Ljava/lang/Object;J)C") \ |
|
838 |
do_signature(putChar_signature, "(Ljava/lang/Object;JC)V") \ |
|
839 |
do_signature(getInt_signature, "(Ljava/lang/Object;J)I") \ |
|
840 |
do_signature(putInt_signature, "(Ljava/lang/Object;JI)V") \ |
|
841 |
do_signature(getLong_signature, "(Ljava/lang/Object;J)J") \ |
|
842 |
do_signature(putLong_signature, "(Ljava/lang/Object;JJ)V") \ |
|
843 |
do_signature(getFloat_signature, "(Ljava/lang/Object;J)F") \ |
|
844 |
do_signature(putFloat_signature, "(Ljava/lang/Object;JF)V") \ |
|
845 |
do_signature(getDouble_signature, "(Ljava/lang/Object;J)D") \ |
|
846 |
do_signature(putDouble_signature, "(Ljava/lang/Object;JD)V") \ |
|
847 |
\ |
|
848 |
do_name(getObject_name,"getObject") do_name(putObject_name,"putObject") \ |
|
849 |
do_name(getBoolean_name,"getBoolean") do_name(putBoolean_name,"putBoolean") \ |
|
850 |
do_name(getByte_name,"getByte") do_name(putByte_name,"putByte") \ |
|
851 |
do_name(getShort_name,"getShort") do_name(putShort_name,"putShort") \ |
|
852 |
do_name(getChar_name,"getChar") do_name(putChar_name,"putChar") \ |
|
853 |
do_name(getInt_name,"getInt") do_name(putInt_name,"putInt") \ |
|
854 |
do_name(getLong_name,"getLong") do_name(putLong_name,"putLong") \ |
|
855 |
do_name(getFloat_name,"getFloat") do_name(putFloat_name,"putFloat") \ |
|
856 |
do_name(getDouble_name,"getDouble") do_name(putDouble_name,"putDouble") \ |
|
857 |
\ |
|
858 |
do_intrinsic(_getObject, sun_misc_Unsafe, getObject_name, getObject_signature, F_RN) \ |
|
859 |
do_intrinsic(_getBoolean, sun_misc_Unsafe, getBoolean_name, getBoolean_signature, F_RN) \ |
|
860 |
do_intrinsic(_getByte, sun_misc_Unsafe, getByte_name, getByte_signature, F_RN) \ |
|
861 |
do_intrinsic(_getShort, sun_misc_Unsafe, getShort_name, getShort_signature, F_RN) \ |
|
862 |
do_intrinsic(_getChar, sun_misc_Unsafe, getChar_name, getChar_signature, F_RN) \ |
|
863 |
do_intrinsic(_getInt, sun_misc_Unsafe, getInt_name, getInt_signature, F_RN) \ |
|
864 |
do_intrinsic(_getLong, sun_misc_Unsafe, getLong_name, getLong_signature, F_RN) \ |
|
865 |
do_intrinsic(_getFloat, sun_misc_Unsafe, getFloat_name, getFloat_signature, F_RN) \ |
|
866 |
do_intrinsic(_getDouble, sun_misc_Unsafe, getDouble_name, getDouble_signature, F_RN) \ |
|
867 |
do_intrinsic(_putObject, sun_misc_Unsafe, putObject_name, putObject_signature, F_RN) \ |
|
868 |
do_intrinsic(_putBoolean, sun_misc_Unsafe, putBoolean_name, putBoolean_signature, F_RN) \ |
|
869 |
do_intrinsic(_putByte, sun_misc_Unsafe, putByte_name, putByte_signature, F_RN) \ |
|
870 |
do_intrinsic(_putShort, sun_misc_Unsafe, putShort_name, putShort_signature, F_RN) \ |
|
871 |
do_intrinsic(_putChar, sun_misc_Unsafe, putChar_name, putChar_signature, F_RN) \ |
|
872 |
do_intrinsic(_putInt, sun_misc_Unsafe, putInt_name, putInt_signature, F_RN) \ |
|
873 |
do_intrinsic(_putLong, sun_misc_Unsafe, putLong_name, putLong_signature, F_RN) \ |
|
874 |
do_intrinsic(_putFloat, sun_misc_Unsafe, putFloat_name, putFloat_signature, F_RN) \ |
|
875 |
do_intrinsic(_putDouble, sun_misc_Unsafe, putDouble_name, putDouble_signature, F_RN) \ |
|
876 |
\ |
|
877 |
do_name(getObjectVolatile_name,"getObjectVolatile") do_name(putObjectVolatile_name,"putObjectVolatile") \ |
|
878 |
do_name(getBooleanVolatile_name,"getBooleanVolatile") do_name(putBooleanVolatile_name,"putBooleanVolatile") \ |
|
879 |
do_name(getByteVolatile_name,"getByteVolatile") do_name(putByteVolatile_name,"putByteVolatile") \ |
|
880 |
do_name(getShortVolatile_name,"getShortVolatile") do_name(putShortVolatile_name,"putShortVolatile") \ |
|
881 |
do_name(getCharVolatile_name,"getCharVolatile") do_name(putCharVolatile_name,"putCharVolatile") \ |
|
882 |
do_name(getIntVolatile_name,"getIntVolatile") do_name(putIntVolatile_name,"putIntVolatile") \ |
|
883 |
do_name(getLongVolatile_name,"getLongVolatile") do_name(putLongVolatile_name,"putLongVolatile") \ |
|
884 |
do_name(getFloatVolatile_name,"getFloatVolatile") do_name(putFloatVolatile_name,"putFloatVolatile") \ |
|
885 |
do_name(getDoubleVolatile_name,"getDoubleVolatile") do_name(putDoubleVolatile_name,"putDoubleVolatile") \ |
|
886 |
\ |
|
887 |
do_intrinsic(_getObjectVolatile, sun_misc_Unsafe, getObjectVolatile_name, getObject_signature, F_RN) \ |
|
888 |
do_intrinsic(_getBooleanVolatile, sun_misc_Unsafe, getBooleanVolatile_name, getBoolean_signature, F_RN) \ |
|
889 |
do_intrinsic(_getByteVolatile, sun_misc_Unsafe, getByteVolatile_name, getByte_signature, F_RN) \ |
|
890 |
do_intrinsic(_getShortVolatile, sun_misc_Unsafe, getShortVolatile_name, getShort_signature, F_RN) \ |
|
891 |
do_intrinsic(_getCharVolatile, sun_misc_Unsafe, getCharVolatile_name, getChar_signature, F_RN) \ |
|
892 |
do_intrinsic(_getIntVolatile, sun_misc_Unsafe, getIntVolatile_name, getInt_signature, F_RN) \ |
|
893 |
do_intrinsic(_getLongVolatile, sun_misc_Unsafe, getLongVolatile_name, getLong_signature, F_RN) \ |
|
894 |
do_intrinsic(_getFloatVolatile, sun_misc_Unsafe, getFloatVolatile_name, getFloat_signature, F_RN) \ |
|
895 |
do_intrinsic(_getDoubleVolatile, sun_misc_Unsafe, getDoubleVolatile_name, getDouble_signature, F_RN) \ |
|
896 |
do_intrinsic(_putObjectVolatile, sun_misc_Unsafe, putObjectVolatile_name, putObject_signature, F_RN) \ |
|
897 |
do_intrinsic(_putBooleanVolatile, sun_misc_Unsafe, putBooleanVolatile_name, putBoolean_signature, F_RN) \ |
|
898 |
do_intrinsic(_putByteVolatile, sun_misc_Unsafe, putByteVolatile_name, putByte_signature, F_RN) \ |
|
899 |
do_intrinsic(_putShortVolatile, sun_misc_Unsafe, putShortVolatile_name, putShort_signature, F_RN) \ |
|
900 |
do_intrinsic(_putCharVolatile, sun_misc_Unsafe, putCharVolatile_name, putChar_signature, F_RN) \ |
|
901 |
do_intrinsic(_putIntVolatile, sun_misc_Unsafe, putIntVolatile_name, putInt_signature, F_RN) \ |
|
902 |
do_intrinsic(_putLongVolatile, sun_misc_Unsafe, putLongVolatile_name, putLong_signature, F_RN) \ |
|
903 |
do_intrinsic(_putFloatVolatile, sun_misc_Unsafe, putFloatVolatile_name, putFloat_signature, F_RN) \ |
|
904 |
do_intrinsic(_putDoubleVolatile, sun_misc_Unsafe, putDoubleVolatile_name, putDouble_signature, F_RN) \ |
|
905 |
\ |
|
906 |
/* %%% these are redundant except perhaps for getAddress, but Unsafe has native methods for them */ \ |
|
907 |
do_signature(getByte_raw_signature, "(J)B") \ |
|
908 |
do_signature(putByte_raw_signature, "(JB)V") \ |
|
909 |
do_signature(getShort_raw_signature, "(J)S") \ |
|
910 |
do_signature(putShort_raw_signature, "(JS)V") \ |
|
911 |
do_signature(getChar_raw_signature, "(J)C") \ |
|
912 |
do_signature(putChar_raw_signature, "(JC)V") \ |
|
913 |
do_signature(putInt_raw_signature, "(JI)V") \ |
|
914 |
do_alias(getLong_raw_signature, /*(J)J*/ long_long_signature) \ |
|
915 |
do_alias(putLong_raw_signature, /*(JJ)V*/ long_long_void_signature) \ |
|
916 |
do_signature(getFloat_raw_signature, "(J)F") \ |
|
917 |
do_signature(putFloat_raw_signature, "(JF)V") \ |
|
918 |
do_alias(getDouble_raw_signature, /*(J)D*/ long_double_signature) \ |
|
919 |
do_signature(putDouble_raw_signature, "(JD)V") \ |
|
920 |
do_alias(getAddress_raw_signature, /*(J)J*/ long_long_signature) \ |
|
921 |
do_alias(putAddress_raw_signature, /*(JJ)V*/ long_long_void_signature) \ |
|
922 |
\ |
|
923 |
do_name( getAddress_name, "getAddress") \ |
|
924 |
do_name( putAddress_name, "putAddress") \ |
|
925 |
\ |
|
926 |
do_intrinsic(_getByte_raw, sun_misc_Unsafe, getByte_name, getByte_raw_signature, F_RN) \ |
|
927 |
do_intrinsic(_getShort_raw, sun_misc_Unsafe, getShort_name, getShort_raw_signature, F_RN) \ |
|
928 |
do_intrinsic(_getChar_raw, sun_misc_Unsafe, getChar_name, getChar_raw_signature, F_RN) \ |
|
2255
54abdf3e1055
6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents:
1890
diff
changeset
|
929 |
do_intrinsic(_getInt_raw, sun_misc_Unsafe, getInt_name, long_int_signature, F_RN) \ |
1 | 930 |
do_intrinsic(_getLong_raw, sun_misc_Unsafe, getLong_name, getLong_raw_signature, F_RN) \ |
931 |
do_intrinsic(_getFloat_raw, sun_misc_Unsafe, getFloat_name, getFloat_raw_signature, F_RN) \ |
|
932 |
do_intrinsic(_getDouble_raw, sun_misc_Unsafe, getDouble_name, getDouble_raw_signature, F_RN) \ |
|
933 |
do_intrinsic(_getAddress_raw, sun_misc_Unsafe, getAddress_name, getAddress_raw_signature, F_RN) \ |
|
934 |
do_intrinsic(_putByte_raw, sun_misc_Unsafe, putByte_name, putByte_raw_signature, F_RN) \ |
|
935 |
do_intrinsic(_putShort_raw, sun_misc_Unsafe, putShort_name, putShort_raw_signature, F_RN) \ |
|
936 |
do_intrinsic(_putChar_raw, sun_misc_Unsafe, putChar_name, putChar_raw_signature, F_RN) \ |
|
937 |
do_intrinsic(_putInt_raw, sun_misc_Unsafe, putInt_name, putInt_raw_signature, F_RN) \ |
|
938 |
do_intrinsic(_putLong_raw, sun_misc_Unsafe, putLong_name, putLong_raw_signature, F_RN) \ |
|
939 |
do_intrinsic(_putFloat_raw, sun_misc_Unsafe, putFloat_name, putFloat_raw_signature, F_RN) \ |
|
940 |
do_intrinsic(_putDouble_raw, sun_misc_Unsafe, putDouble_name, putDouble_raw_signature, F_RN) \ |
|
941 |
do_intrinsic(_putAddress_raw, sun_misc_Unsafe, putAddress_name, putAddress_raw_signature, F_RN) \ |
|
942 |
\ |
|
943 |
do_intrinsic(_compareAndSwapObject, sun_misc_Unsafe, compareAndSwapObject_name, compareAndSwapObject_signature, F_RN) \ |
|
944 |
do_name( compareAndSwapObject_name, "compareAndSwapObject") \ |
|
945 |
do_signature(compareAndSwapObject_signature, "(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Z") \ |
|
946 |
do_intrinsic(_compareAndSwapLong, sun_misc_Unsafe, compareAndSwapLong_name, compareAndSwapLong_signature, F_RN) \ |
|
947 |
do_name( compareAndSwapLong_name, "compareAndSwapLong") \ |
|
948 |
do_signature(compareAndSwapLong_signature, "(Ljava/lang/Object;JJJ)Z") \ |
|
949 |
do_intrinsic(_compareAndSwapInt, sun_misc_Unsafe, compareAndSwapInt_name, compareAndSwapInt_signature, F_RN) \ |
|
950 |
do_name( compareAndSwapInt_name, "compareAndSwapInt") \ |
|
951 |
do_signature(compareAndSwapInt_signature, "(Ljava/lang/Object;JII)Z") \ |
|
952 |
do_intrinsic(_putOrderedObject, sun_misc_Unsafe, putOrderedObject_name, putOrderedObject_signature, F_RN) \ |
|
953 |
do_name( putOrderedObject_name, "putOrderedObject") \ |
|
954 |
do_alias( putOrderedObject_signature, /*(LObject;JLObject;)V*/ putObject_signature) \ |
|
955 |
do_intrinsic(_putOrderedLong, sun_misc_Unsafe, putOrderedLong_name, putOrderedLong_signature, F_RN) \ |
|
956 |
do_name( putOrderedLong_name, "putOrderedLong") \ |
|
957 |
do_alias( putOrderedLong_signature, /*(Ljava/lang/Object;JJ)V*/ putLong_signature) \ |
|
958 |
do_intrinsic(_putOrderedInt, sun_misc_Unsafe, putOrderedInt_name, putOrderedInt_signature, F_RN) \ |
|
959 |
do_name( putOrderedInt_name, "putOrderedInt") \ |
|
960 |
do_alias( putOrderedInt_signature, /*(Ljava/lang/Object;JI)V*/ putInt_signature) \ |
|
961 |
\ |
|
13886
8d82c4dfa722
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
13728
diff
changeset
|
962 |
do_intrinsic(_getAndAddInt, sun_misc_Unsafe, getAndAddInt_name, getAndAddInt_signature, F_R) \ |
8d82c4dfa722
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
13728
diff
changeset
|
963 |
do_name( getAndAddInt_name, "getAndAddInt") \ |
8d82c4dfa722
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
13728
diff
changeset
|
964 |
do_signature(getAndAddInt_signature, "(Ljava/lang/Object;JI)I" ) \ |
8d82c4dfa722
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
13728
diff
changeset
|
965 |
do_intrinsic(_getAndAddLong, sun_misc_Unsafe, getAndAddLong_name, getAndAddLong_signature, F_R) \ |
8d82c4dfa722
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
13728
diff
changeset
|
966 |
do_name( getAndAddLong_name, "getAndAddLong") \ |
8d82c4dfa722
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
13728
diff
changeset
|
967 |
do_signature(getAndAddLong_signature, "(Ljava/lang/Object;JJ)J" ) \ |
14836
b7f2bc31dfdf
8004330: Add missing Unsafe entry points for addAndGet() family
kvn
parents:
14832
diff
changeset
|
968 |
do_intrinsic(_getAndSetInt, sun_misc_Unsafe, getAndSetInt_name, getAndSetInt_signature, F_R) \ |
b7f2bc31dfdf
8004330: Add missing Unsafe entry points for addAndGet() family
kvn
parents:
14832
diff
changeset
|
969 |
do_name( getAndSetInt_name, "getAndSetInt") \ |
13886
8d82c4dfa722
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
13728
diff
changeset
|
970 |
do_alias( getAndSetInt_signature, /*"(Ljava/lang/Object;JI)I"*/ getAndAddInt_signature) \ |
14836
b7f2bc31dfdf
8004330: Add missing Unsafe entry points for addAndGet() family
kvn
parents:
14832
diff
changeset
|
971 |
do_intrinsic(_getAndSetLong, sun_misc_Unsafe, getAndSetLong_name, getAndSetLong_signature, F_R) \ |
b7f2bc31dfdf
8004330: Add missing Unsafe entry points for addAndGet() family
kvn
parents:
14832
diff
changeset
|
972 |
do_name( getAndSetLong_name, "getAndSetLong") \ |
13886
8d82c4dfa722
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
13728
diff
changeset
|
973 |
do_alias( getAndSetLong_signature, /*"(Ljava/lang/Object;JJ)J"*/ getAndAddLong_signature) \ |
14836
b7f2bc31dfdf
8004330: Add missing Unsafe entry points for addAndGet() family
kvn
parents:
14832
diff
changeset
|
974 |
do_intrinsic(_getAndSetObject, sun_misc_Unsafe, getAndSetObject_name, getAndSetObject_signature, F_R)\ |
b7f2bc31dfdf
8004330: Add missing Unsafe entry points for addAndGet() family
kvn
parents:
14832
diff
changeset
|
975 |
do_name( getAndSetObject_name, "getAndSetObject") \ |
13886
8d82c4dfa722
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
13728
diff
changeset
|
976 |
do_signature(getAndSetObject_signature, "(Ljava/lang/Object;JLjava/lang/Object;)Ljava/lang/Object;" ) \ |
8d82c4dfa722
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
13728
diff
changeset
|
977 |
\ |
1 | 978 |
/* prefetch_signature is shared by all prefetch variants */ \ |
979 |
do_signature( prefetch_signature, "(Ljava/lang/Object;J)V") \ |
|
980 |
\ |
|
981 |
do_intrinsic(_prefetchRead, sun_misc_Unsafe, prefetchRead_name, prefetch_signature, F_RN) \ |
|
982 |
do_name( prefetchRead_name, "prefetchRead") \ |
|
983 |
do_intrinsic(_prefetchWrite, sun_misc_Unsafe, prefetchWrite_name, prefetch_signature, F_RN) \ |
|
984 |
do_name( prefetchWrite_name, "prefetchWrite") \ |
|
985 |
do_intrinsic(_prefetchReadStatic, sun_misc_Unsafe, prefetchReadStatic_name, prefetch_signature, F_SN) \ |
|
986 |
do_name( prefetchReadStatic_name, "prefetchReadStatic") \ |
|
987 |
do_intrinsic(_prefetchWriteStatic, sun_misc_Unsafe, prefetchWriteStatic_name, prefetch_signature, F_SN) \ |
|
988 |
do_name( prefetchWriteStatic_name, "prefetchWriteStatic") \ |
|
3273
6acf7084b1d3
6862576: vmIntrinsics needs cleanup in order to support JSR 292 intrinsics
jrose
parents:
2862
diff
changeset
|
989 |
/*== LAST_COMPILER_INLINE*/ \ |
6acf7084b1d3
6862576: vmIntrinsics needs cleanup in order to support JSR 292 intrinsics
jrose
parents:
2862
diff
changeset
|
990 |
/*the compiler does have special inlining code for these; bytecode inline is just fine */ \ |
6acf7084b1d3
6862576: vmIntrinsics needs cleanup in order to support JSR 292 intrinsics
jrose
parents:
2862
diff
changeset
|
991 |
\ |
6acf7084b1d3
6862576: vmIntrinsics needs cleanup in order to support JSR 292 intrinsics
jrose
parents:
2862
diff
changeset
|
992 |
do_intrinsic(_fillInStackTrace, java_lang_Throwable, fillInStackTrace_name, void_throwable_signature, F_RNY) \ |
4450
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4429
diff
changeset
|
993 |
\ |
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4429
diff
changeset
|
994 |
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
|
995 |
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
|
996 |
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
|
997 |
\ |
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4429
diff
changeset
|
998 |
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
|
999 |
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
|
1000 |
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
|
1001 |
\ |
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4429
diff
changeset
|
1002 |
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
|
1003 |
\ |
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4429
diff
changeset
|
1004 |
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
|
1005 |
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
|
1006 |
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
|
1007 |
\ |
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4429
diff
changeset
|
1008 |
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
|
1009 |
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
|
1010 |
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
|
1011 |
\ |
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4429
diff
changeset
|
1012 |
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
|
1013 |
\ |
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4429
diff
changeset
|
1014 |
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
|
1015 |
\ |
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4429
diff
changeset
|
1016 |
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
|
1017 |
\ |
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4429
diff
changeset
|
1018 |
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
|
1019 |
/* (symbol object_initializer_name defined above) */ \ |
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4429
diff
changeset
|
1020 |
\ |
5420
586d3988e72b
6939134: JSR 292 adjustments to method handle invocation
jrose
parents:
5352
diff
changeset
|
1021 |
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
|
1022 |
/* (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
|
1023 |
/* 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
|
1024 |
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
|
1025 |
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
|
1026 |
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
|
1027 |
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
|
1028 |
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
|
1029 |
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
|
1030 |
/* 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
|
1031 |
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
|
1032 |
\ |
4562
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1033 |
/* unboxing methods: */ \ |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1034 |
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
|
1035 |
do_name( booleanValue_name, "booleanValue") \ |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1036 |
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
|
1037 |
do_name( byteValue_name, "byteValue") \ |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1038 |
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
|
1039 |
do_name( charValue_name, "charValue") \ |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1040 |
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
|
1041 |
do_name( shortValue_name, "shortValue") \ |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1042 |
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
|
1043 |
do_name( intValue_name, "intValue") \ |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1044 |
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
|
1045 |
do_name( longValue_name, "longValue") \ |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1046 |
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
|
1047 |
do_name( floatValue_name, "floatValue") \ |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1048 |
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
|
1049 |
do_name( doubleValue_name, "doubleValue") \ |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1050 |
\ |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1051 |
/* boxing methods: */ \ |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1052 |
do_name( valueOf_name, "valueOf") \ |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1053 |
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
|
1054 |
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
|
1055 |
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
|
1056 |
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
|
1057 |
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
|
1058 |
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
|
1059 |
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
|
1060 |
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
|
1061 |
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
|
1062 |
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
|
1063 |
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
|
1064 |
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
|
1065 |
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
|
1066 |
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
|
1067 |
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
|
1068 |
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
|
1069 |
\ |
1 | 1070 |
/*end*/ |
1071 |
||
1072 |
||
1073 |
||
3273
6acf7084b1d3
6862576: vmIntrinsics needs cleanup in order to support JSR 292 intrinsics
jrose
parents:
2862
diff
changeset
|
1074 |
|
1 | 1075 |
// Class vmSymbols |
1076 |
||
1077 |
class vmSymbols: AllStatic { |
|
10567
149651837c4a
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
10546
diff
changeset
|
1078 |
friend class vmIntrinsics; |
149651837c4a
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
10546
diff
changeset
|
1079 |
friend class VMStructs; |
1 | 1080 |
public: |
8076
96d498ec7ae1
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
7900
diff
changeset
|
1081 |
// enum for figuring positions and size of array holding Symbol*s |
1 | 1082 |
enum SID { |
1083 |
NO_SID = 0, |
|
1084 |
||
1085 |
#define VM_SYMBOL_ENUM(name, string) VM_SYMBOL_ENUM_NAME(name), |
|
1086 |
VM_SYMBOLS_DO(VM_SYMBOL_ENUM, VM_ALIAS_IGNORE) |
|
1087 |
#undef VM_SYMBOL_ENUM |
|
1088 |
||
1089 |
SID_LIMIT, |
|
1090 |
||
1091 |
#define VM_ALIAS_ENUM(name, def) VM_SYMBOL_ENUM_NAME(name) = VM_SYMBOL_ENUM_NAME(def), |
|
1092 |
VM_SYMBOLS_DO(VM_SYMBOL_IGNORE, VM_ALIAS_ENUM) |
|
1093 |
#undef VM_ALIAS_ENUM |
|
1094 |
||
1095 |
FIRST_SID = NO_SID + 1 |
|
1096 |
}; |
|
1097 |
enum { |
|
1098 |
log2_SID_LIMIT = 10 // checked by an assert at start-up |
|
1099 |
}; |
|
1100 |
||
1101 |
private: |
|
1102 |
// The symbol array |
|
8076
96d498ec7ae1
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
7900
diff
changeset
|
1103 |
static Symbol* _symbols[]; |
1 | 1104 |
|
1105 |
// Field signatures indexed by BasicType. |
|
8076
96d498ec7ae1
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
7900
diff
changeset
|
1106 |
static Symbol* _type_signatures[T_VOID+1]; |
1 | 1107 |
|
1108 |
public: |
|
1109 |
// Initialization |
|
1110 |
static void initialize(TRAPS); |
|
1111 |
// Accessing |
|
8076
96d498ec7ae1
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
7900
diff
changeset
|
1112 |
#define VM_SYMBOL_DECLARE(name, ignore) \ |
96d498ec7ae1
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
7900
diff
changeset
|
1113 |
static Symbol* name() { \ |
96d498ec7ae1
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
7900
diff
changeset
|
1114 |
return _symbols[VM_SYMBOL_ENUM_NAME(name)]; \ |
96d498ec7ae1
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
7900
diff
changeset
|
1115 |
} |
1 | 1116 |
VM_SYMBOLS_DO(VM_SYMBOL_DECLARE, VM_SYMBOL_DECLARE) |
1117 |
#undef VM_SYMBOL_DECLARE |
|
1118 |
||
8076
96d498ec7ae1
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
7900
diff
changeset
|
1119 |
// Sharing support |
96d498ec7ae1
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
7900
diff
changeset
|
1120 |
static void symbols_do(SymbolClosure* f); |
13728
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
13396
diff
changeset
|
1121 |
static void serialize(SerializeClosure* soc); |
1 | 1122 |
|
8076
96d498ec7ae1
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
7900
diff
changeset
|
1123 |
static Symbol* type_signature(BasicType t) { |
1 | 1124 |
assert((uint)t < T_VOID+1, "range check"); |
1125 |
assert(_type_signatures[t] != NULL, "domain check"); |
|
1126 |
return _type_signatures[t]; |
|
1127 |
} |
|
1128 |
// inverse of type_signature; returns T_OBJECT if s is not recognized |
|
8076
96d498ec7ae1
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
7900
diff
changeset
|
1129 |
static BasicType signature_type(Symbol* s); |
1 | 1130 |
|
8076
96d498ec7ae1
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
7900
diff
changeset
|
1131 |
static Symbol* symbol_at(SID id) { |
1 | 1132 |
assert(id >= FIRST_SID && id < SID_LIMIT, "oob"); |
1133 |
assert(_symbols[id] != NULL, "init"); |
|
1134 |
return _symbols[id]; |
|
1135 |
} |
|
1136 |
||
1137 |
// Returns symbol's SID if one is assigned, else NO_SID. |
|
8076
96d498ec7ae1
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
7900
diff
changeset
|
1138 |
static SID find_sid(Symbol* symbol); |
8675
e9fef2a9bef7
6839872: remove implementation inheritance from JSR 292 APIs
jrose
parents:
8117
diff
changeset
|
1139 |
static SID find_sid(const char* symbol_name); |
1 | 1140 |
|
1141 |
#ifndef PRODUCT |
|
1142 |
// No need for this in the product: |
|
1143 |
static const char* name_for(SID sid); |
|
1144 |
#endif //PRODUCT |
|
1145 |
}; |
|
1146 |
||
1147 |
// VM Intrinsic ID's uniquely identify some very special methods |
|
1148 |
class vmIntrinsics: AllStatic { |
|
1149 |
friend class vmSymbols; |
|
1150 |
friend class ciObjectFactory; |
|
1151 |
||
1152 |
public: |
|
1153 |
// Accessing |
|
1154 |
enum ID { |
|
1155 |
_none = 0, // not an intrinsic (default answer) |
|
1156 |
||
1157 |
#define VM_INTRINSIC_ENUM(id, klass, name, sig, flags) id, |
|
1158 |
VM_INTRINSICS_DO(VM_INTRINSIC_ENUM, |
|
1159 |
VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) |
|
1160 |
#undef VM_INTRINSIC_ENUM |
|
1161 |
||
1162 |
ID_LIMIT, |
|
3273
6acf7084b1d3
6862576: vmIntrinsics needs cleanup in order to support JSR 292 intrinsics
jrose
parents:
2862
diff
changeset
|
1163 |
LAST_COMPILER_INLINE = _prefetchWriteStatic, |
13391
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
13291
diff
changeset
|
1164 |
FIRST_MH_SIG_POLY = _invokeGeneric, |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
13291
diff
changeset
|
1165 |
FIRST_MH_STATIC = _linkToVirtual, |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
13291
diff
changeset
|
1166 |
LAST_MH_SIG_POLY = _linkToInterface, |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
13291
diff
changeset
|
1167 |
|
1 | 1168 |
FIRST_ID = _none + 1 |
1169 |
}; |
|
1170 |
||
1171 |
enum Flags { |
|
1172 |
// AccessFlags syndromes relevant to intrinsics. |
|
1173 |
F_none = 0, |
|
4450
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4429
diff
changeset
|
1174 |
F_R, // !static ?native !synchronized (R="regular") |
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4429
diff
changeset
|
1175 |
F_S, // static ?native !synchronized |
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4429
diff
changeset
|
1176 |
F_Y, // !static ?native synchronized |
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4429
diff
changeset
|
1177 |
F_RN, // !static native !synchronized |
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4429
diff
changeset
|
1178 |
F_SN, // static native !synchronized |
4562
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1179 |
F_RNY, // !static native synchronized |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1180 |
|
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1181 |
FLAG_LIMIT |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1182 |
}; |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1183 |
enum { |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1184 |
log2_FLAG_LIMIT = 4 // checked by an assert at start-up |
1 | 1185 |
}; |
1186 |
||
1187 |
public: |
|
1188 |
static ID ID_from(int raw_id) { |
|
1189 |
assert(raw_id >= (int)_none && raw_id < (int)ID_LIMIT, |
|
1190 |
"must be a valid intrinsic ID"); |
|
1191 |
return (ID)raw_id; |
|
1192 |
} |
|
1193 |
||
1194 |
static const char* name_at(ID id); |
|
1195 |
||
4562
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1196 |
private: |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1197 |
static ID find_id_impl(vmSymbols::SID holder, |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1198 |
vmSymbols::SID name, |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1199 |
vmSymbols::SID sig, |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1200 |
jshort flags); |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1201 |
|
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1202 |
public: |
1 | 1203 |
// Given a method's class, name, signature, and access flags, report its ID. |
1204 |
static ID find_id(vmSymbols::SID holder, |
|
1205 |
vmSymbols::SID name, |
|
1206 |
vmSymbols::SID sig, |
|
4562
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1207 |
jshort flags) { |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1208 |
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
|
1209 |
#ifdef ASSERT |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1210 |
// ID _none does not hold the following asserts. |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1211 |
if (id == _none) return id; |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1212 |
#endif |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1213 |
assert( class_for(id) == holder, "correct id"); |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1214 |
assert( name_for(id) == name, "correct id"); |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1215 |
assert(signature_for(id) == sig, "correct id"); |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1216 |
return id; |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1217 |
} |
1 | 1218 |
|
13728
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
13396
diff
changeset
|
1219 |
static void verify_method(ID actual_id, Method* m) PRODUCT_RETURN; |
1 | 1220 |
|
4562
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1221 |
// Find out the symbols behind an intrinsic: |
1 | 1222 |
static vmSymbols::SID class_for(ID id); |
1223 |
static vmSymbols::SID name_for(ID id); |
|
1224 |
static vmSymbols::SID signature_for(ID id); |
|
1225 |
static Flags flags_for(ID id); |
|
1226 |
||
1227 |
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
|
1228 |
|
4562
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1229 |
// Wrapper object methods: |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1230 |
static ID for_boxing(BasicType type); |
5d93cb2d2090
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
4450
diff
changeset
|
1231 |
static ID for_unboxing(BasicType type); |
4567
7fc02fbe5c7a
6893268: additional dynamic language related optimizations in C2
twisti
parents:
4564
diff
changeset
|
1232 |
|
7fc02fbe5c7a
6893268: additional dynamic language related optimizations in C2
twisti
parents:
4564
diff
changeset
|
1233 |
// Raw conversion: |
7fc02fbe5c7a
6893268: additional dynamic language related optimizations in C2
twisti
parents:
4564
diff
changeset
|
1234 |
static ID for_raw_conversion(BasicType src, BasicType dest); |
1 | 1235 |
}; |
7397 | 1236 |
|
1237 |
#endif // SHARE_VM_CLASSFILE_VMSYMBOLS_HPP |