Mercurial > hg > graal-compiler
annotate src/share/vm/classfile/vmSymbols.hpp @ 7176:59c790074993
8003635: NPG: AsynchGetCallTrace broken by Method* virtual call
Summary: Make metaspace::contains be lock free and used to see if something is in metaspace, also compare Method* with vtbl pointer.
Reviewed-by: dholmes, sspitsyn, dcubed, jmasa
author | coleenp |
---|---|
date | Wed, 28 Nov 2012 17:50:21 -0500 |
parents | ec204374e626 |
children | e522a00b91aa 1e41b0bc58a0 35431a769282 |
rev | line source |
---|---|
0 | 1 /* |
5895
645162d94294
7110104: It should be possible to stop and start JMX Agent at runtime
dsamersoff
parents:
4916
diff
changeset
|
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
0 | 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 * | |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1507
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1507
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1507
diff
changeset
|
21 * questions. |
0 | 22 * |
23 */ | |
24 | |
1972 | 25 #ifndef SHARE_VM_CLASSFILE_VMSYMBOLS_HPP |
26 #define SHARE_VM_CLASSFILE_VMSYMBOLS_HPP | |
27 | |
2177
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
2129
diff
changeset
|
28 #include "oops/symbol.hpp" |
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
2129
diff
changeset
|
29 #include "memory/iterator.hpp" |
6006
0105f367a14c
7160570: Intrinsification support for tracing framework
rbackman
parents:
5895
diff
changeset
|
30 #include "trace/traceMacros.hpp" |
1972 | 31 |
2177
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
2129
diff
changeset
|
32 // The class vmSymbols is a name space for fast lookup of |
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
2129
diff
changeset
|
33 // symbols commonly used in the VM. |
0 | 34 // |
35 // Sample usage: | |
36 // | |
2177
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
2129
diff
changeset
|
37 // Symbol* obj = vmSymbols::java_lang_Object(); |
0 | 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") \ | |
669
eca19a8425b5
6810653: Change String cache class used by Hotspot from String to StringValue
phh
parents:
647
diff
changeset
|
56 template(java_lang_StringValue, "java/lang/StringValue") \ |
675 | 57 template(java_lang_StringCache, "java/lang/StringValue$StringCache") \ |
0 | 58 template(java_lang_Thread, "java/lang/Thread") \ |
59 template(java_lang_ThreadGroup, "java/lang/ThreadGroup") \ | |
60 template(java_lang_Cloneable, "java/lang/Cloneable") \ | |
61 template(java_lang_Throwable, "java/lang/Throwable") \ | |
62 template(java_lang_ClassLoader, "java/lang/ClassLoader") \ | |
63 template(java_lang_ClassLoader_NativeLibrary, "java/lang/ClassLoader\x024NativeLibrary") \ | |
64 template(java_lang_ThreadDeath, "java/lang/ThreadDeath") \ | |
65 template(java_lang_Boolean, "java/lang/Boolean") \ | |
66 template(java_lang_Character, "java/lang/Character") \ | |
17
ff5961f4c095
6395208: Elide autoboxing for calls to HashMap.get(int) and HashMap.get(long)
never
parents:
0
diff
changeset
|
67 template(java_lang_Character_CharacterCache, "java/lang/Character$CharacterCache") \ |
0 | 68 template(java_lang_Float, "java/lang/Float") \ |
69 template(java_lang_Double, "java/lang/Double") \ | |
70 template(java_lang_Byte, "java/lang/Byte") \ | |
17
ff5961f4c095
6395208: Elide autoboxing for calls to HashMap.get(int) and HashMap.get(long)
never
parents:
0
diff
changeset
|
71 template(java_lang_Byte_Cache, "java/lang/Byte$ByteCache") \ |
0 | 72 template(java_lang_Short, "java/lang/Short") \ |
17
ff5961f4c095
6395208: Elide autoboxing for calls to HashMap.get(int) and HashMap.get(long)
never
parents:
0
diff
changeset
|
73 template(java_lang_Short_ShortCache, "java/lang/Short$ShortCache") \ |
0 | 74 template(java_lang_Integer, "java/lang/Integer") \ |
17
ff5961f4c095
6395208: Elide autoboxing for calls to HashMap.get(int) and HashMap.get(long)
never
parents:
0
diff
changeset
|
75 template(java_lang_Integer_IntegerCache, "java/lang/Integer$IntegerCache") \ |
0 | 76 template(java_lang_Long, "java/lang/Long") \ |
17
ff5961f4c095
6395208: Elide autoboxing for calls to HashMap.get(int) and HashMap.get(long)
never
parents:
0
diff
changeset
|
77 template(java_lang_Long_LongCache, "java/lang/Long$LongCache") \ |
0 | 78 template(java_lang_Shutdown, "java/lang/Shutdown") \ |
79 template(java_lang_ref_Reference, "java/lang/ref/Reference") \ | |
80 template(java_lang_ref_SoftReference, "java/lang/ref/SoftReference") \ | |
81 template(java_lang_ref_WeakReference, "java/lang/ref/WeakReference") \ | |
82 template(java_lang_ref_FinalReference, "java/lang/ref/FinalReference") \ | |
83 template(java_lang_ref_PhantomReference, "java/lang/ref/PhantomReference") \ | |
84 template(java_lang_ref_Finalizer, "java/lang/ref/Finalizer") \ | |
85 template(java_lang_reflect_AccessibleObject, "java/lang/reflect/AccessibleObject") \ | |
86 template(java_lang_reflect_Method, "java/lang/reflect/Method") \ | |
87 template(java_lang_reflect_Constructor, "java/lang/reflect/Constructor") \ | |
88 template(java_lang_reflect_Field, "java/lang/reflect/Field") \ | |
89 template(java_lang_reflect_Array, "java/lang/reflect/Array") \ | |
90 template(java_lang_StringBuffer, "java/lang/StringBuffer") \ | |
1080
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
91 template(java_lang_StringBuilder, "java/lang/StringBuilder") \ |
0 | 92 template(java_lang_CharSequence, "java/lang/CharSequence") \ |
93 template(java_security_AccessControlContext, "java/security/AccessControlContext") \ | |
94 template(java_security_ProtectionDomain, "java/security/ProtectionDomain") \ | |
95 template(java_io_OutputStream, "java/io/OutputStream") \ | |
96 template(java_io_Reader, "java/io/Reader") \ | |
97 template(java_io_BufferedReader, "java/io/BufferedReader") \ | |
98 template(java_io_FileInputStream, "java/io/FileInputStream") \ | |
99 template(java_io_ByteArrayInputStream, "java/io/ByteArrayInputStream") \ | |
100 template(java_io_Serializable, "java/io/Serializable") \ | |
101 template(java_util_Arrays, "java/util/Arrays") \ | |
102 template(java_util_Properties, "java/util/Properties") \ | |
103 template(java_util_Vector, "java/util/Vector") \ | |
104 template(java_util_AbstractList, "java/util/AbstractList") \ | |
105 template(java_util_Hashtable, "java/util/Hashtable") \ | |
18
c7d713375c94
6621621: HashMap front cache should be enabled only with AggressiveOpts
phh
parents:
17
diff
changeset
|
106 template(java_util_HashMap, "java/util/HashMap") \ |
0 | 107 template(java_lang_Compiler, "java/lang/Compiler") \ |
108 template(sun_misc_Signal, "sun/misc/Signal") \ | |
109 template(java_lang_AssertionStatusDirectives, "java/lang/AssertionStatusDirectives") \ | |
18
c7d713375c94
6621621: HashMap front cache should be enabled only with AggressiveOpts
phh
parents:
17
diff
changeset
|
110 template(sun_jkernel_DownloadManager, "sun/jkernel/DownloadManager") \ |
0 | 111 template(getBootClassPathEntryForClass_name, "getBootClassPathEntryForClass") \ |
2129
8f8dfba37802
6994753: Implement optional hook to a Java method at VM startup.
kevinw
parents:
2011
diff
changeset
|
112 template(sun_misc_PostVMInitHook, "sun/misc/PostVMInitHook") \ |
6894 | 113 template(sun_misc_Launcher_ExtClassLoader, "sun/misc/Launcher$ExtClassLoader") \ |
0 | 114 \ |
6181 | 115 /* Java runtime version access */ \ |
116 template(sun_misc_Version, "sun/misc/Version") \ | |
117 template(java_runtime_name_name, "java_runtime_name") \ | |
6921
a1b8cf9cf970
8002078: hs_err_pid file should report full JDK version string
sla
parents:
6847
diff
changeset
|
118 template(java_runtime_version_name, "java_runtime_version") \ |
6181 | 119 \ |
0 | 120 /* class file format tags */ \ |
121 template(tag_source_file, "SourceFile") \ | |
122 template(tag_inner_classes, "InnerClasses") \ | |
123 template(tag_constant_value, "ConstantValue") \ | |
124 template(tag_code, "Code") \ | |
125 template(tag_exceptions, "Exceptions") \ | |
126 template(tag_line_number_table, "LineNumberTable") \ | |
127 template(tag_local_variable_table, "LocalVariableTable") \ | |
128 template(tag_local_variable_type_table, "LocalVariableTypeTable") \ | |
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") \ | |
139 template(tag_enclosing_method, "EnclosingMethod") \ | |
2011
dad31fc330cd
7001379: bootstrap method data needs to be moved from constant pool to a classfile attribute
jrose
parents:
1972
diff
changeset
|
140 template(tag_bootstrap_methods, "BootstrapMethods") \ |
0 | 141 \ |
142 /* exception klasses: at least all exceptions thrown by the VM have entries here */ \ | |
143 template(java_lang_ArithmeticException, "java/lang/ArithmeticException") \ | |
144 template(java_lang_ArrayIndexOutOfBoundsException, "java/lang/ArrayIndexOutOfBoundsException") \ | |
145 template(java_lang_ArrayStoreException, "java/lang/ArrayStoreException") \ | |
146 template(java_lang_ClassCastException, "java/lang/ClassCastException") \ | |
147 template(java_lang_ClassNotFoundException, "java/lang/ClassNotFoundException") \ | |
148 template(java_lang_CloneNotSupportedException, "java/lang/CloneNotSupportedException") \ | |
149 template(java_lang_IllegalAccessException, "java/lang/IllegalAccessException") \ | |
150 template(java_lang_IllegalArgumentException, "java/lang/IllegalArgumentException") \ | |
1507
cd5dbf694d45
6939134: JSR 292 adjustments to method handle invocation
jrose
parents:
1396
diff
changeset
|
151 template(java_lang_IllegalStateException, "java/lang/IllegalStateException") \ |
0 | 152 template(java_lang_IllegalMonitorStateException, "java/lang/IllegalMonitorStateException") \ |
153 template(java_lang_IllegalThreadStateException, "java/lang/IllegalThreadStateException") \ | |
154 template(java_lang_IndexOutOfBoundsException, "java/lang/IndexOutOfBoundsException") \ | |
155 template(java_lang_InstantiationException, "java/lang/InstantiationException") \ | |
156 template(java_lang_InstantiationError, "java/lang/InstantiationError") \ | |
157 template(java_lang_InterruptedException, "java/lang/InterruptedException") \ | |
3744
60b8287df30e
7049415: Failure of resolution of sym.reference to the c.s.s. should be wrapped in BootstrapMethodError
jrose
parents:
3373
diff
changeset
|
158 template(java_lang_BootstrapMethodError, "java/lang/BootstrapMethodError") \ |
0 | 159 template(java_lang_LinkageError, "java/lang/LinkageError") \ |
160 template(java_lang_NegativeArraySizeException, "java/lang/NegativeArraySizeException") \ | |
161 template(java_lang_NoSuchFieldException, "java/lang/NoSuchFieldException") \ | |
162 template(java_lang_NoSuchMethodException, "java/lang/NoSuchMethodException") \ | |
163 template(java_lang_NullPointerException, "java/lang/NullPointerException") \ | |
164 template(java_lang_StringIndexOutOfBoundsException, "java/lang/StringIndexOutOfBoundsException")\ | |
6271
93c71eb28866
7188911: nightly failures after JSR 292 lazy method handle update (round 2)
twisti
parents:
6266
diff
changeset
|
165 template(java_lang_UnsupportedOperationException, "java/lang/UnsupportedOperationException") \ |
0 | 166 template(java_lang_InvalidClassException, "java/lang/InvalidClassException") \ |
167 template(java_lang_reflect_InvocationTargetException, "java/lang/reflect/InvocationTargetException") \ | |
168 template(java_lang_Exception, "java/lang/Exception") \ | |
169 template(java_lang_RuntimeException, "java/lang/RuntimeException") \ | |
170 template(java_io_IOException, "java/io/IOException") \ | |
171 template(java_security_PrivilegedActionException, "java/security/PrivilegedActionException") \ | |
172 \ | |
173 /* error klasses: at least all errors thrown by the VM have entries here */ \ | |
174 template(java_lang_AbstractMethodError, "java/lang/AbstractMethodError") \ | |
175 template(java_lang_ClassCircularityError, "java/lang/ClassCircularityError") \ | |
176 template(java_lang_ClassFormatError, "java/lang/ClassFormatError") \ | |
177 template(java_lang_UnsupportedClassVersionError, "java/lang/UnsupportedClassVersionError") \ | |
178 template(java_lang_Error, "java/lang/Error") \ | |
179 template(java_lang_ExceptionInInitializerError, "java/lang/ExceptionInInitializerError") \ | |
180 template(java_lang_IllegalAccessError, "java/lang/IllegalAccessError") \ | |
181 template(java_lang_IncompatibleClassChangeError, "java/lang/IncompatibleClassChangeError") \ | |
182 template(java_lang_InternalError, "java/lang/InternalError") \ | |
183 template(java_lang_NoClassDefFoundError, "java/lang/NoClassDefFoundError") \ | |
184 template(java_lang_NoSuchFieldError, "java/lang/NoSuchFieldError") \ | |
185 template(java_lang_NoSuchMethodError, "java/lang/NoSuchMethodError") \ | |
186 template(java_lang_OutOfMemoryError, "java/lang/OutOfMemoryError") \ | |
187 template(java_lang_UnsatisfiedLinkError, "java/lang/UnsatisfiedLinkError") \ | |
188 template(java_lang_VerifyError, "java/lang/VerifyError") \ | |
189 template(java_lang_SecurityException, "java/lang/SecurityException") \ | |
190 template(java_lang_VirtualMachineError, "java/lang/VirtualMachineError") \ | |
191 template(java_lang_StackOverflowError, "java/lang/StackOverflowError") \ | |
192 template(java_lang_StackTraceElement, "java/lang/StackTraceElement") \ | |
193 template(java_util_concurrent_locks_AbstractOwnableSynchronizer, "java/util/concurrent/locks/AbstractOwnableSynchronizer") \ | |
194 \ | |
195 /* class symbols needed by intrinsics */ \ | |
196 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, template, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \ | |
197 \ | |
198 /* Support for reflection based on dynamic bytecode generation (JDK 1.4 and above) */ \ | |
199 \ | |
200 template(sun_reflect_FieldInfo, "sun/reflect/FieldInfo") \ | |
201 template(sun_reflect_MethodInfo, "sun/reflect/MethodInfo") \ | |
202 template(sun_reflect_MagicAccessorImpl, "sun/reflect/MagicAccessorImpl") \ | |
203 template(sun_reflect_MethodAccessorImpl, "sun/reflect/MethodAccessorImpl") \ | |
204 template(sun_reflect_ConstructorAccessorImpl, "sun/reflect/ConstructorAccessorImpl") \ | |
205 template(sun_reflect_SerializationConstructorAccessorImpl, "sun/reflect/SerializationConstructorAccessorImpl") \ | |
206 template(sun_reflect_DelegatingClassLoader, "sun/reflect/DelegatingClassLoader") \ | |
207 template(sun_reflect_Reflection, "sun/reflect/Reflection") \ | |
208 template(checkedExceptions_name, "checkedExceptions") \ | |
209 template(clazz_name, "clazz") \ | |
210 template(exceptionTypes_name, "exceptionTypes") \ | |
211 template(modifiers_name, "modifiers") \ | |
212 template(newConstructor_name, "newConstructor") \ | |
213 template(newConstructor_signature, "(Lsun/reflect/MethodInfo;)Ljava/lang/reflect/Constructor;") \ | |
214 template(newField_name, "newField") \ | |
215 template(newField_signature, "(Lsun/reflect/FieldInfo;)Ljava/lang/reflect/Field;") \ | |
216 template(newMethod_name, "newMethod") \ | |
217 template(newMethod_signature, "(Lsun/reflect/MethodInfo;)Ljava/lang/reflect/Method;") \ | |
6266
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
218 template(invokeBasic_name, "invokeBasic") \ |
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
219 template(linkToVirtual_name, "linkToVirtual") \ |
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
220 template(linkToStatic_name, "linkToStatic") \ |
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
221 template(linkToSpecial_name, "linkToSpecial") \ |
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
222 template(linkToInterface_name, "linkToInterface") \ |
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
223 template(compiledLambdaForm_name, "<compiledLambdaForm>") /*fake name*/ \ |
1507
cd5dbf694d45
6939134: JSR 292 adjustments to method handle invocation
jrose
parents:
1396
diff
changeset
|
224 template(star_name, "*") /*not really a name*/ \ |
0 | 225 template(invoke_name, "invoke") \ |
226 template(override_name, "override") \ | |
227 template(parameterTypes_name, "parameterTypes") \ | |
228 template(returnType_name, "returnType") \ | |
229 template(signature_name, "signature") \ | |
230 template(slot_name, "slot") \ | |
3905
c26de9aef2ed
7071307: MethodHandle bimorphic inlining should consider the frequency
never
parents:
3900
diff
changeset
|
231 template(selectAlternative_name, "selectAlternative") \ |
0 | 232 \ |
233 /* Support for annotations (JDK 1.5 and above) */ \ | |
234 \ | |
235 template(annotations_name, "annotations") \ | |
236 template(parameter_annotations_name, "parameterAnnotations") \ | |
237 template(annotation_default_name, "annotationDefault") \ | |
238 template(sun_reflect_ConstantPool, "sun/reflect/ConstantPool") \ | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6271
diff
changeset
|
239 template(ConstantPool_name, "constantPoolOop") \ |
0 | 240 template(sun_reflect_UnsafeStaticFieldAccessorImpl, "sun/reflect/UnsafeStaticFieldAccessorImpl")\ |
241 template(base_name, "base") \ | |
242 \ | |
710 | 243 /* Support for JSR 292 & invokedynamic (JDK 1.7 and above) */ \ |
2357
8033953d67ff
7012648: move JSR 292 to package java.lang.invoke and adjust names
jrose
parents:
2356
diff
changeset
|
244 template(java_lang_invoke_CallSite, "java/lang/invoke/CallSite") \ |
3852
fdb992d83a87
7071653: JSR 292: call site change notification should be pushed not pulled
twisti
parents:
3744
diff
changeset
|
245 template(java_lang_invoke_ConstantCallSite, "java/lang/invoke/ConstantCallSite") \ |
fdb992d83a87
7071653: JSR 292: call site change notification should be pushed not pulled
twisti
parents:
3744
diff
changeset
|
246 template(java_lang_invoke_MutableCallSite, "java/lang/invoke/MutableCallSite") \ |
fdb992d83a87
7071653: JSR 292: call site change notification should be pushed not pulled
twisti
parents:
3744
diff
changeset
|
247 template(java_lang_invoke_VolatileCallSite, "java/lang/invoke/VolatileCallSite") \ |
2357
8033953d67ff
7012648: move JSR 292 to package java.lang.invoke and adjust names
jrose
parents:
2356
diff
changeset
|
248 template(java_lang_invoke_MethodHandle, "java/lang/invoke/MethodHandle") \ |
8033953d67ff
7012648: move JSR 292 to package java.lang.invoke and adjust names
jrose
parents:
2356
diff
changeset
|
249 template(java_lang_invoke_MethodType, "java/lang/invoke/MethodType") \ |
8033953d67ff
7012648: move JSR 292 to package java.lang.invoke and adjust names
jrose
parents:
2356
diff
changeset
|
250 template(java_lang_invoke_MethodType_signature, "Ljava/lang/invoke/MethodType;") \ |
6266
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
251 template(java_lang_invoke_MemberName_signature, "Ljava/lang/invoke/MemberName;") \ |
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
252 template(java_lang_invoke_LambdaForm_signature, "Ljava/lang/invoke/LambdaForm;") \ |
2357
8033953d67ff
7012648: move JSR 292 to package java.lang.invoke and adjust names
jrose
parents:
2356
diff
changeset
|
253 template(java_lang_invoke_MethodHandle_signature, "Ljava/lang/invoke/MethodHandle;") \ |
710 | 254 /* internal classes known only to the JVM: */ \ |
2357
8033953d67ff
7012648: move JSR 292 to package java.lang.invoke and adjust names
jrose
parents:
2356
diff
changeset
|
255 template(java_lang_invoke_MemberName, "java/lang/invoke/MemberName") \ |
8033953d67ff
7012648: move JSR 292 to package java.lang.invoke and adjust names
jrose
parents:
2356
diff
changeset
|
256 template(java_lang_invoke_MethodHandleNatives, "java/lang/invoke/MethodHandleNatives") \ |
6266
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
257 template(java_lang_invoke_LambdaForm, "java/lang/invoke/LambdaForm") \ |
6222
6d8f36bcef55
6711908: JVM needs direct access to some annotations
jrose
parents:
6181
diff
changeset
|
258 template(java_lang_invoke_ForceInline_signature, "Ljava/lang/invoke/ForceInline;") \ |
6266
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
259 template(java_lang_invoke_DontInline_signature, "Ljava/lang/invoke/DontInline;") \ |
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
260 template(java_lang_invoke_LambdaForm_Compiled_signature, "Ljava/lang/invoke/LambdaForm$Compiled;") \ |
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
261 template(java_lang_invoke_LambdaForm_Hidden_signature, "Ljava/lang/invoke/LambdaForm$Hidden;") \ |
6934 | 262 template(java_lang_invoke_MagicLambdaImpl, "java/lang/invoke/MagicLambdaImpl") \ |
2357
8033953d67ff
7012648: move JSR 292 to package java.lang.invoke and adjust names
jrose
parents:
2356
diff
changeset
|
263 /* internal up-calls made only by the JVM, via class sun.invoke.MethodHandleNatives: */ \ |
1507
cd5dbf694d45
6939134: JSR 292 adjustments to method handle invocation
jrose
parents:
1396
diff
changeset
|
264 template(findMethodHandleType_name, "findMethodHandleType") \ |
2357
8033953d67ff
7012648: move JSR 292 to package java.lang.invoke and adjust names
jrose
parents:
2356
diff
changeset
|
265 template(findMethodHandleType_signature, "(Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/invoke/MethodType;") \ |
1602 | 266 template(linkMethodHandleConstant_name, "linkMethodHandleConstant") \ |
2357
8033953d67ff
7012648: move JSR 292 to package java.lang.invoke and adjust names
jrose
parents:
2356
diff
changeset
|
267 template(linkMethodHandleConstant_signature, "(Ljava/lang/Class;ILjava/lang/Class;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/invoke/MethodHandle;") \ |
6266
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
268 template(linkMethod_name, "linkMethod") \ |
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
269 template(linkMethod_signature, "(Ljava/lang/Class;ILjava/lang/Class;Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/invoke/MemberName;") \ |
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
270 template(linkCallSite_name, "linkCallSite") \ |
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
271 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;") \ |
3900
a32de5085326
7079673: JSR 292: C1 should inline bytecoded method handle adapters
twisti
parents:
3852
diff
changeset
|
272 template(setTargetNormal_name, "setTargetNormal") \ |
a32de5085326
7079673: JSR 292: C1 should inline bytecoded method handle adapters
twisti
parents:
3852
diff
changeset
|
273 template(setTargetVolatile_name, "setTargetVolatile") \ |
a32de5085326
7079673: JSR 292: C1 should inline bytecoded method handle adapters
twisti
parents:
3852
diff
changeset
|
274 template(setTarget_signature, "(Ljava/lang/invoke/MethodHandle;)V") \ |
3938 | 275 NOT_LP64( do_alias(intptr_signature, int_signature) ) \ |
276 LP64_ONLY( do_alias(intptr_signature, long_signature) ) \ | |
3905
c26de9aef2ed
7071307: MethodHandle bimorphic inlining should consider the frequency
never
parents:
3900
diff
changeset
|
277 template(selectAlternative_signature, "(ZLjava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;") \ |
710 | 278 \ |
279 /* common method and field names */ \ | |
0 | 280 template(object_initializer_name, "<init>") \ |
281 template(class_initializer_name, "<clinit>") \ | |
282 template(println_name, "println") \ | |
283 template(printStackTrace_name, "printStackTrace") \ | |
284 template(main_name, "main") \ | |
285 template(name_name, "name") \ | |
286 template(priority_name, "priority") \ | |
287 template(stillborn_name, "stillborn") \ | |
288 template(group_name, "group") \ | |
289 template(daemon_name, "daemon") \ | |
290 template(eetop_name, "eetop") \ | |
291 template(thread_status_name, "threadStatus") \ | |
292 template(run_method_name, "run") \ | |
293 template(exit_method_name, "exit") \ | |
294 template(add_method_name, "add") \ | |
4916
1b0e0f8be510
7131006: java/lang/management/ThreadMXBean/ThreadLists.java
minqi
parents:
4773
diff
changeset
|
295 template(remove_method_name, "remove") \ |
0 | 296 template(parent_name, "parent") \ |
297 template(threads_name, "threads") \ | |
298 template(groups_name, "groups") \ | |
299 template(maxPriority_name, "maxPriority") \ | |
300 template(destroyed_name, "destroyed") \ | |
301 template(vmAllowSuspension_name, "vmAllowSuspension") \ | |
302 template(nthreads_name, "nthreads") \ | |
303 template(ngroups_name, "ngroups") \ | |
304 template(shutdown_method_name, "shutdown") \ | |
305 template(finalize_method_name, "finalize") \ | |
306 template(reference_lock_name, "lock") \ | |
307 template(reference_discovered_name, "discovered") \ | |
4773 | 308 template(run_finalization_name, "runFinalization") \ |
0 | 309 template(run_finalizers_on_exit_name, "runFinalizersOnExit") \ |
310 template(uncaughtException_name, "uncaughtException") \ | |
311 template(dispatchUncaughtException_name, "dispatchUncaughtException") \ | |
312 template(initializeSystemClass_name, "initializeSystemClass") \ | |
313 template(loadClass_name, "loadClass") \ | |
314 template(loadClassInternal_name, "loadClassInternal") \ | |
315 template(get_name, "get") \ | |
316 template(put_name, "put") \ | |
317 template(type_name, "type") \ | |
318 template(findNative_name, "findNative") \ | |
319 template(deadChild_name, "deadChild") \ | |
6751
2a48c84f1d04
7197269: NPG: FollowReferences has no ClassLoader -> Class link to follow
coleenp
parents:
6725
diff
changeset
|
320 template(addClass_name, "addClass") \ |
0 | 321 template(getFromClass_name, "getFromClass") \ |
322 template(dispatch_name, "dispatch") \ | |
323 template(getSystemClassLoader_name, "getSystemClassLoader") \ | |
324 template(fillInStackTrace_name, "fillInStackTrace") \ | |
2476
6a615eae2f34
7034585: Adjust fillInStackTrace filtering to assist 6998871
dholmes
parents:
2357
diff
changeset
|
325 template(fillInStackTrace0_name, "fillInStackTrace0") \ |
0 | 326 template(getCause_name, "getCause") \ |
327 template(initCause_name, "initCause") \ | |
328 template(setProperty_name, "setProperty") \ | |
329 template(getProperty_name, "getProperty") \ | |
330 template(context_name, "context") \ | |
331 template(privilegedContext_name, "privilegedContext") \ | |
332 template(contextClassLoader_name, "contextClassLoader") \ | |
333 template(inheritedAccessControlContext_name, "inheritedAccessControlContext") \ | |
334 template(isPrivileged_name, "isPrivileged") \ | |
335 template(wait_name, "wait") \ | |
336 template(checkPackageAccess_name, "checkPackageAccess") \ | |
337 template(stackSize_name, "stackSize") \ | |
338 template(thread_id_name, "tid") \ | |
339 template(newInstance0_name, "newInstance0") \ | |
340 template(limit_name, "limit") \ | |
341 template(forName_name, "forName") \ | |
342 template(forName0_name, "forName0") \ | |
343 template(isJavaIdentifierStart_name, "isJavaIdentifierStart") \ | |
344 template(isJavaIdentifierPart_name, "isJavaIdentifierPart") \ | |
345 template(exclusive_owner_thread_name, "exclusiveOwnerThread") \ | |
346 template(park_blocker_name, "parkBlocker") \ | |
347 template(park_event_name, "nativeParkEventPointer") \ | |
17
ff5961f4c095
6395208: Elide autoboxing for calls to HashMap.get(int) and HashMap.get(long)
never
parents:
0
diff
changeset
|
348 template(cache_field_name, "cache") \ |
0 | 349 template(value_name, "value") \ |
6057 | 350 template(offset_name, "offset") \ |
351 template(count_name, "count") \ | |
352 template(hash_name, "hash") \ | |
18
c7d713375c94
6621621: HashMap front cache should be enabled only with AggressiveOpts
phh
parents:
17
diff
changeset
|
353 template(frontCacheEnabled_name, "frontCacheEnabled") \ |
192
6d13fcb3663f
6714404: Add UseStringCache switch to enable String caching under AggressiveOpts
kvn
parents:
169
diff
changeset
|
354 template(stringCacheEnabled_name, "stringCacheEnabled") \ |
775
93c14e5562c4
6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents:
726
diff
changeset
|
355 template(numberOfLeadingZeros_name, "numberOfLeadingZeros") \ |
93c14e5562c4
6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents:
726
diff
changeset
|
356 template(numberOfTrailingZeros_name, "numberOfTrailingZeros") \ |
643
c771b7f43bbf
6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents:
514
diff
changeset
|
357 template(bitCount_name, "bitCount") \ |
675 | 358 template(profile_name, "profile") \ |
681 | 359 template(equals_name, "equals") \ |
726
be93aad57795
6655646: dynamic languages need dynamically linked call sites
jrose
parents:
710
diff
changeset
|
360 template(target_name, "target") \ |
710 | 361 template(toString_name, "toString") \ |
362 template(values_name, "values") \ | |
363 template(receiver_name, "receiver") \ | |
364 template(vmtarget_name, "vmtarget") \ | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6271
diff
changeset
|
365 template(next_target_name, "next_target") \ |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6271
diff
changeset
|
366 template(vmloader_name, "vmloader") \ |
6266
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
367 template(vmindex_name, "vmindex") \ |
3905
c26de9aef2ed
7071307: MethodHandle bimorphic inlining should consider the frequency
never
parents:
3900
diff
changeset
|
368 template(vmcount_name, "vmcount") \ |
6266
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
369 template(vmentry_name, "vmentry") \ |
710 | 370 template(flags_name, "flags") \ |
371 template(rtype_name, "rtype") \ | |
372 template(ptypes_name, "ptypes") \ | |
373 template(form_name, "form") \ | |
6266
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
374 template(basicType_name, "basicType") \ |
1080
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
375 template(append_name, "append") \ |
3938 | 376 template(klass_name, "klass") \ |
377 template(resolved_constructor_name, "resolved_constructor") \ | |
378 template(array_klass_name, "array_klass") \ | |
379 template(oop_size_name, "oop_size") \ | |
380 template(static_oop_field_count_name, "static_oop_field_count") \ | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6271
diff
changeset
|
381 template(loader_data_name, "loader_data") \ |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6271
diff
changeset
|
382 template(dependencies_name, "dependencies") \ |
0 | 383 \ |
384 /* non-intrinsic name/signature pairs: */ \ | |
385 template(register_method_name, "register") \ | |
386 do_alias(register_method_signature, object_void_signature) \ | |
387 \ | |
388 /* name symbols needed by intrinsics */ \ | |
389 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, template, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \ | |
390 \ | |
391 /* common signatures names */ \ | |
392 template(void_method_signature, "()V") \ | |
1133
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
393 template(void_boolean_signature, "()Z") \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
394 template(void_byte_signature, "()B") \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
395 template(void_char_signature, "()C") \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
396 template(void_short_signature, "()S") \ |
0 | 397 template(void_int_signature, "()I") \ |
398 template(void_long_signature, "()J") \ | |
1133
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
399 template(void_float_signature, "()F") \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
400 template(void_double_signature, "()D") \ |
0 | 401 template(int_void_signature, "(I)V") \ |
402 template(int_int_signature, "(I)I") \ | |
1396
d7f654633cfe
6946040: add intrinsic for short and char reverseBytes
never
parents:
1144
diff
changeset
|
403 template(char_char_signature, "(C)C") \ |
d7f654633cfe
6946040: add intrinsic for short and char reverseBytes
never
parents:
1144
diff
changeset
|
404 template(short_short_signature, "(S)S") \ |
0 | 405 template(int_bool_signature, "(I)Z") \ |
406 template(float_int_signature, "(F)I") \ | |
407 template(double_long_signature, "(D)J") \ | |
408 template(double_double_signature, "(D)D") \ | |
409 template(int_float_signature, "(I)F") \ | |
643
c771b7f43bbf
6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents:
514
diff
changeset
|
410 template(long_int_signature, "(J)I") \ |
0 | 411 template(long_long_signature, "(J)J") \ |
412 template(long_double_signature, "(J)D") \ | |
413 template(byte_signature, "B") \ | |
414 template(char_signature, "C") \ | |
415 template(double_signature, "D") \ | |
416 template(float_signature, "F") \ | |
417 template(int_signature, "I") \ | |
418 template(long_signature, "J") \ | |
419 template(short_signature, "S") \ | |
420 template(bool_signature, "Z") \ | |
421 template(void_signature, "V") \ | |
422 template(byte_array_signature, "[B") \ | |
423 template(char_array_signature, "[C") \ | |
3363
167b70ff3abc
6939861: JVM should handle more conversion operations
never
parents:
3261
diff
changeset
|
424 template(int_array_signature, "[I") \ |
0 | 425 template(object_void_signature, "(Ljava/lang/Object;)V") \ |
426 template(object_int_signature, "(Ljava/lang/Object;)I") \ | |
427 template(object_boolean_signature, "(Ljava/lang/Object;)Z") \ | |
428 template(string_void_signature, "(Ljava/lang/String;)V") \ | |
429 template(string_int_signature, "(Ljava/lang/String;)I") \ | |
430 template(throwable_void_signature, "(Ljava/lang/Throwable;)V") \ | |
431 template(void_throwable_signature, "()Ljava/lang/Throwable;") \ | |
432 template(throwable_throwable_signature, "(Ljava/lang/Throwable;)Ljava/lang/Throwable;") \ | |
433 template(class_void_signature, "(Ljava/lang/Class;)V") \ | |
434 template(class_int_signature, "(Ljava/lang/Class;)I") \ | |
6006
0105f367a14c
7160570: Intrinsification support for tracing framework
rbackman
parents:
5895
diff
changeset
|
435 template(class_long_signature, "(Ljava/lang/Class;)J") \ |
0 | 436 template(class_boolean_signature, "(Ljava/lang/Class;)Z") \ |
437 template(throwable_string_void_signature, "(Ljava/lang/Throwable;Ljava/lang/String;)V") \ | |
438 template(string_array_void_signature, "([Ljava/lang/String;)V") \ | |
439 template(string_array_string_array_void_signature, "([Ljava/lang/String;[Ljava/lang/String;)V") \ | |
440 template(thread_throwable_void_signature, "(Ljava/lang/Thread;Ljava/lang/Throwable;)V") \ | |
441 template(thread_void_signature, "(Ljava/lang/Thread;)V") \ | |
442 template(threadgroup_runnable_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;)V") \ | |
443 template(threadgroup_string_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/String;)V") \ | |
444 template(string_class_signature, "(Ljava/lang/String;)Ljava/lang/Class;") \ | |
445 template(object_object_object_signature, "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;") \ | |
446 template(string_string_string_signature, "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;") \ | |
447 template(string_string_signature, "(Ljava/lang/String;)Ljava/lang/String;") \ | |
448 template(classloader_string_long_signature, "(Ljava/lang/ClassLoader;Ljava/lang/String;)J") \ | |
449 template(byte_array_void_signature, "([B)V") \ | |
450 template(char_array_void_signature, "([C)V") \ | |
451 template(int_int_void_signature, "(II)V") \ | |
452 template(long_long_void_signature, "(JJ)V") \ | |
453 template(void_classloader_signature, "()Ljava/lang/ClassLoader;") \ | |
454 template(void_object_signature, "()Ljava/lang/Object;") \ | |
455 template(void_class_signature, "()Ljava/lang/Class;") \ | |
1507
cd5dbf694d45
6939134: JSR 292 adjustments to method handle invocation
jrose
parents:
1396
diff
changeset
|
456 template(void_string_signature, "()Ljava/lang/String;") \ |
cd5dbf694d45
6939134: JSR 292 adjustments to method handle invocation
jrose
parents:
1396
diff
changeset
|
457 template(object_array_object_signature, "([Ljava/lang/Object;)Ljava/lang/Object;") \ |
cd5dbf694d45
6939134: JSR 292 adjustments to method handle invocation
jrose
parents:
1396
diff
changeset
|
458 template(object_object_array_object_signature, "(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;")\ |
0 | 459 template(exception_void_signature, "(Ljava/lang/Exception;)V") \ |
460 template(protectiondomain_signature, "[Ljava/security/ProtectionDomain;") \ | |
461 template(accesscontrolcontext_signature, "Ljava/security/AccessControlContext;") \ | |
462 template(class_protectiondomain_signature, "(Ljava/lang/Class;Ljava/security/ProtectionDomain;)V") \ | |
463 template(thread_signature, "Ljava/lang/Thread;") \ | |
464 template(thread_array_signature, "[Ljava/lang/Thread;") \ | |
465 template(threadgroup_signature, "Ljava/lang/ThreadGroup;") \ | |
466 template(threadgroup_array_signature, "[Ljava/lang/ThreadGroup;") \ | |
467 template(class_array_signature, "[Ljava/lang/Class;") \ | |
468 template(classloader_signature, "Ljava/lang/ClassLoader;") \ | |
469 template(object_signature, "Ljava/lang/Object;") \ | |
470 template(class_signature, "Ljava/lang/Class;") \ | |
471 template(string_signature, "Ljava/lang/String;") \ | |
472 template(reference_signature, "Ljava/lang/ref/Reference;") \ | |
514 | 473 template(concurrenthashmap_signature, "Ljava/util/concurrent/ConcurrentHashMap;") \ |
1080
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
474 template(String_StringBuilder_signature, "(Ljava/lang/String;)Ljava/lang/StringBuilder;") \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
475 template(int_StringBuilder_signature, "(I)Ljava/lang/StringBuilder;") \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
476 template(char_StringBuilder_signature, "(C)Ljava/lang/StringBuilder;") \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
477 template(String_StringBuffer_signature, "(Ljava/lang/String;)Ljava/lang/StringBuffer;") \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
478 template(int_StringBuffer_signature, "(I)Ljava/lang/StringBuffer;") \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
479 template(char_StringBuffer_signature, "(C)Ljava/lang/StringBuffer;") \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
480 template(int_String_signature, "(I)Ljava/lang/String;") \ |
0 | 481 /* signature symbols needed by intrinsics */ \ |
482 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, template, VM_ALIAS_IGNORE) \ | |
483 \ | |
484 /* symbol aliases needed by intrinsics */ \ | |
485 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, do_alias) \ | |
486 \ | |
487 /* returned by the C1 compiler in case there's not enough memory to allocate a new symbol*/ \ | |
2177
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
2129
diff
changeset
|
488 template(dummy_symbol, "illegal symbol") \ |
0 | 489 \ |
490 /* used by ClassFormatError when class name is not known yet */ \ | |
491 template(unknown_class_name, "<Unknown>") \ | |
492 \ | |
514 | 493 /* used to identify class loaders handling parallel class loading */ \ |
653
e55bcaf3a6a1
6819853: VM does not detect JDK which supports parallel class loaders
acorn
parents:
579
diff
changeset
|
494 template(parallelCapable_name, "parallelLockMap") \ |
514 | 495 \ |
0 | 496 /* JVM monitoring and management support */ \ |
497 template(java_lang_StackTraceElement_array, "[Ljava/lang/StackTraceElement;") \ | |
498 template(java_lang_management_ThreadState, "java/lang/management/ThreadState") \ | |
499 template(java_lang_management_MemoryUsage, "java/lang/management/MemoryUsage") \ | |
500 template(java_lang_management_ThreadInfo, "java/lang/management/ThreadInfo") \ | |
501 template(sun_management_ManagementFactory, "sun/management/ManagementFactory") \ | |
502 template(sun_management_Sensor, "sun/management/Sensor") \ | |
503 template(sun_management_Agent, "sun/management/Agent") \ | |
3356
78542e2b5e35
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
3261
diff
changeset
|
504 template(sun_management_GarbageCollectorImpl, "sun/management/GarbageCollectorImpl") \ |
78542e2b5e35
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
3261
diff
changeset
|
505 template(getGcInfoBuilder_name, "getGcInfoBuilder") \ |
78542e2b5e35
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
3261
diff
changeset
|
506 template(getGcInfoBuilder_signature, "()Lsun/management/GcInfoBuilder;") \ |
78542e2b5e35
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
3261
diff
changeset
|
507 template(com_sun_management_GcInfo, "com/sun/management/GcInfo") \ |
78542e2b5e35
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
3261
diff
changeset
|
508 template(com_sun_management_GcInfo_constructor_signature, "(Lsun/management/GcInfoBuilder;JJJ[Ljava/lang/management/MemoryUsage;[Ljava/lang/management/MemoryUsage;[Ljava/lang/Object;)V") \ |
78542e2b5e35
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
3261
diff
changeset
|
509 template(createGCNotification_name, "createGCNotification") \ |
78542e2b5e35
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
3261
diff
changeset
|
510 template(createGCNotification_signature, "(JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/sun/management/GcInfo;)V") \ |
0 | 511 template(createMemoryPoolMBean_name, "createMemoryPoolMBean") \ |
512 template(createMemoryManagerMBean_name, "createMemoryManagerMBean") \ | |
513 template(createGarbageCollectorMBean_name, "createGarbageCollectorMBean") \ | |
514 template(createMemoryPoolMBean_signature, "(Ljava/lang/String;ZJJ)Ljava/lang/management/MemoryPoolMBean;") \ | |
515 template(createMemoryManagerMBean_signature, "(Ljava/lang/String;)Ljava/lang/management/MemoryManagerMBean;") \ | |
516 template(createGarbageCollectorMBean_signature, "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/management/GarbageCollectorMBean;") \ | |
517 template(trigger_name, "trigger") \ | |
518 template(clear_name, "clear") \ | |
519 template(trigger_method_signature, "(ILjava/lang/management/MemoryUsage;)V") \ | |
520 template(startAgent_name, "startAgent") \ | |
5895
645162d94294
7110104: It should be possible to stop and start JMX Agent at runtime
dsamersoff
parents:
4916
diff
changeset
|
521 template(startRemoteAgent_name, "startRemoteManagementAgent") \ |
645162d94294
7110104: It should be possible to stop and start JMX Agent at runtime
dsamersoff
parents:
4916
diff
changeset
|
522 template(startLocalAgent_name, "startLocalManagementAgent") \ |
645162d94294
7110104: It should be possible to stop and start JMX Agent at runtime
dsamersoff
parents:
4916
diff
changeset
|
523 template(stopRemoteAgent_name, "stopRemoteManagementAgent") \ |
0 | 524 template(java_lang_management_ThreadInfo_constructor_signature, "(Ljava/lang/Thread;ILjava/lang/Object;Ljava/lang/Thread;JJJJ[Ljava/lang/StackTraceElement;)V") \ |
525 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") \ | |
526 template(long_long_long_long_void_signature, "(JJJJ)V") \ | |
527 \ | |
528 template(java_lang_management_MemoryPoolMXBean, "java/lang/management/MemoryPoolMXBean") \ | |
529 template(java_lang_management_MemoryManagerMXBean, "java/lang/management/MemoryManagerMXBean") \ | |
530 template(java_lang_management_GarbageCollectorMXBean,"java/lang/management/GarbageCollectorMXBean") \ | |
3356
78542e2b5e35
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
3261
diff
changeset
|
531 template(gcInfoBuilder_name, "gcInfoBuilder") \ |
0 | 532 template(createMemoryPool_name, "createMemoryPool") \ |
533 template(createMemoryManager_name, "createMemoryManager") \ | |
534 template(createGarbageCollector_name, "createGarbageCollector") \ | |
535 template(createMemoryPool_signature, "(Ljava/lang/String;ZJJ)Ljava/lang/management/MemoryPoolMXBean;") \ | |
536 template(createMemoryManager_signature, "(Ljava/lang/String;)Ljava/lang/management/MemoryManagerMXBean;") \ | |
537 template(createGarbageCollector_signature, "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/management/GarbageCollectorMXBean;") \ | |
538 template(addThreadDumpForMonitors_name, "addThreadDumpForMonitors") \ | |
539 template(addThreadDumpForSynchronizers_name, "addThreadDumpForSynchronizers") \ | |
540 template(addThreadDumpForMonitors_signature, "(Ljava/lang/management/ThreadInfo;[Ljava/lang/Object;[I)V") \ | |
541 template(addThreadDumpForSynchronizers_signature, "(Ljava/lang/management/ThreadInfo;[Ljava/lang/Object;)V") \ | |
542 \ | |
543 /* JVMTI/java.lang.instrument support and VM Attach mechanism */ \ | |
544 template(sun_misc_VMSupport, "sun/misc/VMSupport") \ | |
545 template(appendToClassPathForInstrumentation_name, "appendToClassPathForInstrumentation") \ | |
546 do_alias(appendToClassPathForInstrumentation_signature, string_void_signature) \ | |
547 template(serializePropertiesToByteArray_name, "serializePropertiesToByteArray") \ | |
548 template(serializePropertiesToByteArray_signature, "()[B") \ | |
549 template(serializeAgentPropertiesToByteArray_name, "serializeAgentPropertiesToByteArray") \ | |
550 template(classRedefinedCount_name, "classRedefinedCount") \ | |
6006
0105f367a14c
7160570: Intrinsification support for tracing framework
rbackman
parents:
5895
diff
changeset
|
551 \ |
0105f367a14c
7160570: Intrinsification support for tracing framework
rbackman
parents:
5895
diff
changeset
|
552 /* trace signatures */ \ |
0105f367a14c
7160570: Intrinsification support for tracing framework
rbackman
parents:
5895
diff
changeset
|
553 TRACE_TEMPLATES(template) \ |
0105f367a14c
7160570: Intrinsification support for tracing framework
rbackman
parents:
5895
diff
changeset
|
554 \ |
0 | 555 /*end*/ |
556 | |
557 // Here are all the intrinsics known to the runtime and the CI. | |
558 // Each intrinsic consists of a public enum name (like _hashCode), | |
559 // followed by a specification of its klass, name, and signature: | |
560 // template(<id>, <klass>, <name>, <sig>, <FCODE>) | |
561 // | |
562 // If you add an intrinsic here, you must also define its name | |
563 // and signature as members of the VM symbols. The VM symbols for | |
564 // the intrinsic name and signature may be defined above. | |
565 // | |
566 // Because the VM_SYMBOLS_DO macro makes reference to VM_INTRINSICS_DO, | |
567 // you can also define an intrinsic's name and/or signature locally to the | |
568 // intrinsic, if this makes sense. (It often does make sense.) | |
569 // | |
570 // For example: | |
571 // do_intrinsic(_foo, java_lang_Object, foo_name, foo_signature, F_xx) | |
572 // do_name( foo_name, "foo") | |
573 // do_signature(foo_signature, "()F") | |
574 // klass = vmSymbols::java_lang_Object() | |
575 // name = vmSymbols::foo_name() | |
576 // signature = vmSymbols::foo_signature() | |
577 // | |
578 // The name and/or signature might be a "well known" symbol | |
579 // like "equal" or "()I", in which case there will be no local | |
580 // re-definition of the symbol. | |
581 // | |
582 // The do_class, do_name, and do_signature calls are all used for the | |
583 // same purpose: Define yet another VM symbol. They could all be merged | |
584 // into a common 'do_symbol' call, but it seems useful to record our | |
585 // intentions here about kinds of symbols (class vs. name vs. signature). | |
586 // | |
587 // The F_xx is one of the Flags enum; see below. | |
588 // | |
589 // for Emacs: (let ((c-backslash-column 120) (c-backslash-max-column 120)) (c-backslash-region (point) (point-max) nil t)) | |
590 #define VM_INTRINSICS_DO(do_intrinsic, do_class, do_name, do_signature, do_alias) \ | |
591 do_intrinsic(_hashCode, java_lang_Object, hashCode_name, void_int_signature, F_R) \ | |
592 do_name( hashCode_name, "hashCode") \ | |
593 do_intrinsic(_getClass, java_lang_Object, getClass_name, void_class_signature, F_R) \ | |
594 do_name( getClass_name, "getClass") \ | |
595 do_intrinsic(_clone, java_lang_Object, clone_name, void_object_signature, F_R) \ | |
596 do_name( clone_name, "clone") \ | |
597 \ | |
598 /* Math & StrictMath intrinsics are defined in terms of just a few signatures: */ \ | |
599 do_class(java_lang_Math, "java/lang/Math") \ | |
600 do_class(java_lang_StrictMath, "java/lang/StrictMath") \ | |
601 do_signature(double2_double_signature, "(DD)D") \ | |
602 do_signature(int2_int_signature, "(II)I") \ | |
603 \ | |
604 /* here are the math names, all together: */ \ | |
605 do_name(abs_name,"abs") do_name(sin_name,"sin") do_name(cos_name,"cos") \ | |
606 do_name(tan_name,"tan") do_name(atan2_name,"atan2") do_name(sqrt_name,"sqrt") \ | |
607 do_name(log_name,"log") do_name(log10_name,"log10") do_name(pow_name,"pow") \ | |
608 do_name(exp_name,"exp") do_name(min_name,"min") do_name(max_name,"max") \ | |
609 \ | |
610 do_intrinsic(_dabs, java_lang_Math, abs_name, double_double_signature, F_S) \ | |
611 do_intrinsic(_dsin, java_lang_Math, sin_name, double_double_signature, F_S) \ | |
612 do_intrinsic(_dcos, java_lang_Math, cos_name, double_double_signature, F_S) \ | |
613 do_intrinsic(_dtan, java_lang_Math, tan_name, double_double_signature, F_S) \ | |
614 do_intrinsic(_datan2, java_lang_Math, atan2_name, double2_double_signature, F_S) \ | |
615 do_intrinsic(_dsqrt, java_lang_Math, sqrt_name, double_double_signature, F_S) \ | |
616 do_intrinsic(_dlog, java_lang_Math, log_name, double_double_signature, F_S) \ | |
617 do_intrinsic(_dlog10, java_lang_Math, log10_name, double_double_signature, F_S) \ | |
618 do_intrinsic(_dpow, java_lang_Math, pow_name, double2_double_signature, F_S) \ | |
619 do_intrinsic(_dexp, java_lang_Math, exp_name, double_double_signature, F_S) \ | |
620 do_intrinsic(_min, java_lang_Math, min_name, int2_int_signature, F_S) \ | |
621 do_intrinsic(_max, java_lang_Math, max_name, int2_int_signature, F_S) \ | |
622 \ | |
623 do_intrinsic(_floatToRawIntBits, java_lang_Float, floatToRawIntBits_name, float_int_signature, F_S) \ | |
624 do_name( floatToRawIntBits_name, "floatToRawIntBits") \ | |
625 do_intrinsic(_floatToIntBits, java_lang_Float, floatToIntBits_name, float_int_signature, F_S) \ | |
626 do_name( floatToIntBits_name, "floatToIntBits") \ | |
627 do_intrinsic(_intBitsToFloat, java_lang_Float, intBitsToFloat_name, int_float_signature, F_S) \ | |
628 do_name( intBitsToFloat_name, "intBitsToFloat") \ | |
629 do_intrinsic(_doubleToRawLongBits, java_lang_Double, doubleToRawLongBits_name, double_long_signature, F_S) \ | |
630 do_name( doubleToRawLongBits_name, "doubleToRawLongBits") \ | |
631 do_intrinsic(_doubleToLongBits, java_lang_Double, doubleToLongBits_name, double_long_signature, F_S) \ | |
632 do_name( doubleToLongBits_name, "doubleToLongBits") \ | |
633 do_intrinsic(_longBitsToDouble, java_lang_Double, longBitsToDouble_name, long_double_signature, F_S) \ | |
634 do_name( longBitsToDouble_name, "longBitsToDouble") \ | |
643
c771b7f43bbf
6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents:
514
diff
changeset
|
635 \ |
775
93c14e5562c4
6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents:
726
diff
changeset
|
636 do_intrinsic(_numberOfLeadingZeros_i, java_lang_Integer, numberOfLeadingZeros_name,int_int_signature, F_S) \ |
93c14e5562c4
6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents:
726
diff
changeset
|
637 do_intrinsic(_numberOfLeadingZeros_l, java_lang_Long, numberOfLeadingZeros_name,long_int_signature, F_S) \ |
93c14e5562c4
6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents:
726
diff
changeset
|
638 \ |
93c14e5562c4
6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents:
726
diff
changeset
|
639 do_intrinsic(_numberOfTrailingZeros_i, java_lang_Integer, numberOfTrailingZeros_name,int_int_signature, F_S) \ |
93c14e5562c4
6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents:
726
diff
changeset
|
640 do_intrinsic(_numberOfTrailingZeros_l, java_lang_Long, numberOfTrailingZeros_name,long_int_signature, F_S) \ |
93c14e5562c4
6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents:
726
diff
changeset
|
641 \ |
643
c771b7f43bbf
6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents:
514
diff
changeset
|
642 do_intrinsic(_bitCount_i, java_lang_Integer, bitCount_name, int_int_signature, F_S) \ |
c771b7f43bbf
6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents:
514
diff
changeset
|
643 do_intrinsic(_bitCount_l, java_lang_Long, bitCount_name, long_int_signature, F_S) \ |
c771b7f43bbf
6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents:
514
diff
changeset
|
644 \ |
0 | 645 do_intrinsic(_reverseBytes_i, java_lang_Integer, reverseBytes_name, int_int_signature, F_S) \ |
646 do_name( reverseBytes_name, "reverseBytes") \ | |
647 do_intrinsic(_reverseBytes_l, java_lang_Long, reverseBytes_name, long_long_signature, F_S) \ | |
648 /* (symbol reverseBytes_name defined above) */ \ | |
1396
d7f654633cfe
6946040: add intrinsic for short and char reverseBytes
never
parents:
1144
diff
changeset
|
649 do_intrinsic(_reverseBytes_c, java_lang_Character, reverseBytes_name, char_char_signature, F_S) \ |
d7f654633cfe
6946040: add intrinsic for short and char reverseBytes
never
parents:
1144
diff
changeset
|
650 /* (symbol reverseBytes_name defined above) */ \ |
d7f654633cfe
6946040: add intrinsic for short and char reverseBytes
never
parents:
1144
diff
changeset
|
651 do_intrinsic(_reverseBytes_s, java_lang_Short, reverseBytes_name, short_short_signature, F_S) \ |
d7f654633cfe
6946040: add intrinsic for short and char reverseBytes
never
parents:
1144
diff
changeset
|
652 /* (symbol reverseBytes_name defined above) */ \ |
0 | 653 \ |
654 do_intrinsic(_identityHashCode, java_lang_System, identityHashCode_name, object_int_signature, F_S) \ | |
655 do_name( identityHashCode_name, "identityHashCode") \ | |
656 do_intrinsic(_currentTimeMillis, java_lang_System, currentTimeMillis_name, void_long_signature, F_S) \ | |
657 \ | |
658 do_name( currentTimeMillis_name, "currentTimeMillis") \ | |
659 do_intrinsic(_nanoTime, java_lang_System, nanoTime_name, void_long_signature, F_S) \ | |
660 do_name( nanoTime_name, "nanoTime") \ | |
661 \ | |
6006
0105f367a14c
7160570: Intrinsification support for tracing framework
rbackman
parents:
5895
diff
changeset
|
662 TRACE_INTRINSICS(do_intrinsic, do_class, do_name, do_signature, do_alias) \ |
0105f367a14c
7160570: Intrinsification support for tracing framework
rbackman
parents:
5895
diff
changeset
|
663 \ |
0 | 664 do_intrinsic(_arraycopy, java_lang_System, arraycopy_name, arraycopy_signature, F_S) \ |
665 do_name( arraycopy_name, "arraycopy") \ | |
666 do_signature(arraycopy_signature, "(Ljava/lang/Object;ILjava/lang/Object;II)V") \ | |
667 do_intrinsic(_isInterrupted, java_lang_Thread, isInterrupted_name, isInterrupted_signature, F_R) \ | |
668 do_name( isInterrupted_name, "isInterrupted") \ | |
669 do_signature(isInterrupted_signature, "(Z)Z") \ | |
670 do_intrinsic(_currentThread, java_lang_Thread, currentThread_name, currentThread_signature, F_S) \ | |
671 do_name( currentThread_name, "currentThread") \ | |
672 do_signature(currentThread_signature, "()Ljava/lang/Thread;") \ | |
673 \ | |
674 /* reflective intrinsics, for java/lang/Class, etc. */ \ | |
675 do_intrinsic(_isAssignableFrom, java_lang_Class, isAssignableFrom_name, class_boolean_signature, F_RN) \ | |
676 do_name( isAssignableFrom_name, "isAssignableFrom") \ | |
677 do_intrinsic(_isInstance, java_lang_Class, isInstance_name, object_boolean_signature, F_RN) \ | |
678 do_name( isInstance_name, "isInstance") \ | |
679 do_intrinsic(_getModifiers, java_lang_Class, getModifiers_name, void_int_signature, F_RN) \ | |
680 do_name( getModifiers_name, "getModifiers") \ | |
681 do_intrinsic(_isInterface, java_lang_Class, isInterface_name, void_boolean_signature, F_RN) \ | |
682 do_name( isInterface_name, "isInterface") \ | |
683 do_intrinsic(_isArray, java_lang_Class, isArray_name, void_boolean_signature, F_RN) \ | |
684 do_name( isArray_name, "isArray") \ | |
685 do_intrinsic(_isPrimitive, java_lang_Class, isPrimitive_name, void_boolean_signature, F_RN) \ | |
686 do_name( isPrimitive_name, "isPrimitive") \ | |
687 do_intrinsic(_getSuperclass, java_lang_Class, getSuperclass_name, void_class_signature, F_RN) \ | |
688 do_name( getSuperclass_name, "getSuperclass") \ | |
689 do_intrinsic(_getComponentType, java_lang_Class, getComponentType_name, void_class_signature, F_RN) \ | |
690 do_name( getComponentType_name, "getComponentType") \ | |
691 \ | |
692 do_intrinsic(_getClassAccessFlags, sun_reflect_Reflection, getClassAccessFlags_name, class_int_signature, F_SN) \ | |
693 do_name( getClassAccessFlags_name, "getClassAccessFlags") \ | |
694 do_intrinsic(_getLength, java_lang_reflect_Array, getLength_name, object_int_signature, F_SN) \ | |
695 do_name( getLength_name, "getLength") \ | |
696 \ | |
697 do_intrinsic(_getCallerClass, sun_reflect_Reflection, getCallerClass_name, getCallerClass_signature, F_SN) \ | |
698 do_name( getCallerClass_name, "getCallerClass") \ | |
699 do_signature(getCallerClass_signature, "(I)Ljava/lang/Class;") \ | |
700 \ | |
701 do_intrinsic(_newArray, java_lang_reflect_Array, newArray_name, newArray_signature, F_SN) \ | |
702 do_name( newArray_name, "newArray") \ | |
703 do_signature(newArray_signature, "(Ljava/lang/Class;I)Ljava/lang/Object;") \ | |
704 \ | |
705 do_intrinsic(_copyOf, java_util_Arrays, copyOf_name, copyOf_signature, F_S) \ | |
706 do_name( copyOf_name, "copyOf") \ | |
707 do_signature(copyOf_signature, "([Ljava/lang/Object;ILjava/lang/Class;)[Ljava/lang/Object;") \ | |
708 \ | |
709 do_intrinsic(_copyOfRange, java_util_Arrays, copyOfRange_name, copyOfRange_signature, F_S) \ | |
710 do_name( copyOfRange_name, "copyOfRange") \ | |
711 do_signature(copyOfRange_signature, "([Ljava/lang/Object;IILjava/lang/Class;)[Ljava/lang/Object;") \ | |
712 \ | |
169
9148c65abefc
6695049: (coll) Create an x86 intrinsic for Arrays.equals
rasbold
parents:
45
diff
changeset
|
713 do_intrinsic(_equalsC, java_util_Arrays, equals_name, equalsC_signature, F_S) \ |
9148c65abefc
6695049: (coll) Create an x86 intrinsic for Arrays.equals
rasbold
parents:
45
diff
changeset
|
714 do_signature(equalsC_signature, "([C[C)Z") \ |
9148c65abefc
6695049: (coll) Create an x86 intrinsic for Arrays.equals
rasbold
parents:
45
diff
changeset
|
715 \ |
0 | 716 do_intrinsic(_compareTo, java_lang_String, compareTo_name, string_int_signature, F_R) \ |
717 do_name( compareTo_name, "compareTo") \ | |
718 do_intrinsic(_indexOf, java_lang_String, indexOf_name, string_int_signature, F_R) \ | |
719 do_name( indexOf_name, "indexOf") \ | |
681 | 720 do_intrinsic(_equals, java_lang_String, equals_name, object_boolean_signature, F_R) \ |
0 | 721 \ |
722 do_class(java_nio_Buffer, "java/nio/Buffer") \ | |
723 do_intrinsic(_checkIndex, java_nio_Buffer, checkIndex_name, int_int_signature, F_R) \ | |
724 do_name( checkIndex_name, "checkIndex") \ | |
725 \ | |
3249
e1162778c1c8
7009266: G1: assert(obj->is_oop_or_null(true )) failed: Error
johnc
parents:
2357
diff
changeset
|
726 /* java/lang/ref/Reference */ \ |
e1162778c1c8
7009266: G1: assert(obj->is_oop_or_null(true )) failed: Error
johnc
parents:
2357
diff
changeset
|
727 do_intrinsic(_Reference_get, java_lang_ref_Reference, get_name, void_object_signature, F_R) \ |
e1162778c1c8
7009266: G1: assert(obj->is_oop_or_null(true )) failed: Error
johnc
parents:
2357
diff
changeset
|
728 \ |
6894 | 729 /* support for com.sum.crypto.provider.AESCrypt and some of its callers */ \ |
730 do_class(com_sun_crypto_provider_aescrypt, "com/sun/crypto/provider/AESCrypt") \ | |
731 do_intrinsic(_aescrypt_encryptBlock, com_sun_crypto_provider_aescrypt, encryptBlock_name, byteArray_int_byteArray_int_signature, F_R) \ | |
732 do_intrinsic(_aescrypt_decryptBlock, com_sun_crypto_provider_aescrypt, decryptBlock_name, byteArray_int_byteArray_int_signature, F_R) \ | |
733 do_name( encryptBlock_name, "encryptBlock") \ | |
734 do_name( decryptBlock_name, "decryptBlock") \ | |
735 do_signature(byteArray_int_byteArray_int_signature, "([BI[BI)V") \ | |
736 \ | |
737 do_class(com_sun_crypto_provider_cipherBlockChaining, "com/sun/crypto/provider/CipherBlockChaining") \ | |
738 do_intrinsic(_cipherBlockChaining_encryptAESCrypt, com_sun_crypto_provider_cipherBlockChaining, encrypt_name, byteArray_int_int_byteArray_int_signature, F_R) \ | |
739 do_intrinsic(_cipherBlockChaining_decryptAESCrypt, com_sun_crypto_provider_cipherBlockChaining, decrypt_name, byteArray_int_int_byteArray_int_signature, F_R) \ | |
740 do_name( encrypt_name, "encrypt") \ | |
741 do_name( decrypt_name, "decrypt") \ | |
742 do_signature(byteArray_int_int_byteArray_int_signature, "([BII[BI)V") \ | |
743 \ | |
0 | 744 /* support for sun.misc.Unsafe */ \ |
745 do_class(sun_misc_Unsafe, "sun/misc/Unsafe") \ | |
746 \ | |
747 do_intrinsic(_allocateInstance, sun_misc_Unsafe, allocateInstance_name, allocateInstance_signature, F_RN) \ | |
748 do_name( allocateInstance_name, "allocateInstance") \ | |
749 do_signature(allocateInstance_signature, "(Ljava/lang/Class;)Ljava/lang/Object;") \ | |
750 do_intrinsic(_copyMemory, sun_misc_Unsafe, copyMemory_name, copyMemory_signature, F_RN) \ | |
751 do_name( copyMemory_name, "copyMemory") \ | |
752 do_signature(copyMemory_signature, "(Ljava/lang/Object;JLjava/lang/Object;JJ)V") \ | |
753 do_intrinsic(_park, sun_misc_Unsafe, park_name, park_signature, F_RN) \ | |
754 do_name( park_name, "park") \ | |
755 do_signature(park_signature, "(ZJ)V") \ | |
756 do_intrinsic(_unpark, sun_misc_Unsafe, unpark_name, unpark_signature, F_RN) \ | |
757 do_name( unpark_name, "unpark") \ | |
758 do_alias( unpark_signature, /*(LObject;)V*/ object_void_signature) \ | |
759 \ | |
760 /* unsafe memory references (there are a lot of them...) */ \ | |
761 do_signature(getObject_signature, "(Ljava/lang/Object;J)Ljava/lang/Object;") \ | |
762 do_signature(putObject_signature, "(Ljava/lang/Object;JLjava/lang/Object;)V") \ | |
763 do_signature(getBoolean_signature, "(Ljava/lang/Object;J)Z") \ | |
764 do_signature(putBoolean_signature, "(Ljava/lang/Object;JZ)V") \ | |
765 do_signature(getByte_signature, "(Ljava/lang/Object;J)B") \ | |
766 do_signature(putByte_signature, "(Ljava/lang/Object;JB)V") \ | |
767 do_signature(getShort_signature, "(Ljava/lang/Object;J)S") \ | |
768 do_signature(putShort_signature, "(Ljava/lang/Object;JS)V") \ | |
769 do_signature(getChar_signature, "(Ljava/lang/Object;J)C") \ | |
770 do_signature(putChar_signature, "(Ljava/lang/Object;JC)V") \ | |
771 do_signature(getInt_signature, "(Ljava/lang/Object;J)I") \ | |
772 do_signature(putInt_signature, "(Ljava/lang/Object;JI)V") \ | |
773 do_signature(getLong_signature, "(Ljava/lang/Object;J)J") \ | |
774 do_signature(putLong_signature, "(Ljava/lang/Object;JJ)V") \ | |
775 do_signature(getFloat_signature, "(Ljava/lang/Object;J)F") \ | |
776 do_signature(putFloat_signature, "(Ljava/lang/Object;JF)V") \ | |
777 do_signature(getDouble_signature, "(Ljava/lang/Object;J)D") \ | |
778 do_signature(putDouble_signature, "(Ljava/lang/Object;JD)V") \ | |
779 \ | |
780 do_name(getObject_name,"getObject") do_name(putObject_name,"putObject") \ | |
781 do_name(getBoolean_name,"getBoolean") do_name(putBoolean_name,"putBoolean") \ | |
782 do_name(getByte_name,"getByte") do_name(putByte_name,"putByte") \ | |
783 do_name(getShort_name,"getShort") do_name(putShort_name,"putShort") \ | |
784 do_name(getChar_name,"getChar") do_name(putChar_name,"putChar") \ | |
785 do_name(getInt_name,"getInt") do_name(putInt_name,"putInt") \ | |
786 do_name(getLong_name,"getLong") do_name(putLong_name,"putLong") \ | |
787 do_name(getFloat_name,"getFloat") do_name(putFloat_name,"putFloat") \ | |
788 do_name(getDouble_name,"getDouble") do_name(putDouble_name,"putDouble") \ | |
789 \ | |
790 do_intrinsic(_getObject, sun_misc_Unsafe, getObject_name, getObject_signature, F_RN) \ | |
791 do_intrinsic(_getBoolean, sun_misc_Unsafe, getBoolean_name, getBoolean_signature, F_RN) \ | |
792 do_intrinsic(_getByte, sun_misc_Unsafe, getByte_name, getByte_signature, F_RN) \ | |
793 do_intrinsic(_getShort, sun_misc_Unsafe, getShort_name, getShort_signature, F_RN) \ | |
794 do_intrinsic(_getChar, sun_misc_Unsafe, getChar_name, getChar_signature, F_RN) \ | |
795 do_intrinsic(_getInt, sun_misc_Unsafe, getInt_name, getInt_signature, F_RN) \ | |
796 do_intrinsic(_getLong, sun_misc_Unsafe, getLong_name, getLong_signature, F_RN) \ | |
797 do_intrinsic(_getFloat, sun_misc_Unsafe, getFloat_name, getFloat_signature, F_RN) \ | |
798 do_intrinsic(_getDouble, sun_misc_Unsafe, getDouble_name, getDouble_signature, F_RN) \ | |
799 do_intrinsic(_putObject, sun_misc_Unsafe, putObject_name, putObject_signature, F_RN) \ | |
800 do_intrinsic(_putBoolean, sun_misc_Unsafe, putBoolean_name, putBoolean_signature, F_RN) \ | |
801 do_intrinsic(_putByte, sun_misc_Unsafe, putByte_name, putByte_signature, F_RN) \ | |
802 do_intrinsic(_putShort, sun_misc_Unsafe, putShort_name, putShort_signature, F_RN) \ | |
803 do_intrinsic(_putChar, sun_misc_Unsafe, putChar_name, putChar_signature, F_RN) \ | |
804 do_intrinsic(_putInt, sun_misc_Unsafe, putInt_name, putInt_signature, F_RN) \ | |
805 do_intrinsic(_putLong, sun_misc_Unsafe, putLong_name, putLong_signature, F_RN) \ | |
806 do_intrinsic(_putFloat, sun_misc_Unsafe, putFloat_name, putFloat_signature, F_RN) \ | |
807 do_intrinsic(_putDouble, sun_misc_Unsafe, putDouble_name, putDouble_signature, F_RN) \ | |
808 \ | |
809 do_name(getObjectVolatile_name,"getObjectVolatile") do_name(putObjectVolatile_name,"putObjectVolatile") \ | |
810 do_name(getBooleanVolatile_name,"getBooleanVolatile") do_name(putBooleanVolatile_name,"putBooleanVolatile") \ | |
811 do_name(getByteVolatile_name,"getByteVolatile") do_name(putByteVolatile_name,"putByteVolatile") \ | |
812 do_name(getShortVolatile_name,"getShortVolatile") do_name(putShortVolatile_name,"putShortVolatile") \ | |
813 do_name(getCharVolatile_name,"getCharVolatile") do_name(putCharVolatile_name,"putCharVolatile") \ | |
814 do_name(getIntVolatile_name,"getIntVolatile") do_name(putIntVolatile_name,"putIntVolatile") \ | |
815 do_name(getLongVolatile_name,"getLongVolatile") do_name(putLongVolatile_name,"putLongVolatile") \ | |
816 do_name(getFloatVolatile_name,"getFloatVolatile") do_name(putFloatVolatile_name,"putFloatVolatile") \ | |
817 do_name(getDoubleVolatile_name,"getDoubleVolatile") do_name(putDoubleVolatile_name,"putDoubleVolatile") \ | |
818 \ | |
819 do_intrinsic(_getObjectVolatile, sun_misc_Unsafe, getObjectVolatile_name, getObject_signature, F_RN) \ | |
820 do_intrinsic(_getBooleanVolatile, sun_misc_Unsafe, getBooleanVolatile_name, getBoolean_signature, F_RN) \ | |
821 do_intrinsic(_getByteVolatile, sun_misc_Unsafe, getByteVolatile_name, getByte_signature, F_RN) \ | |
822 do_intrinsic(_getShortVolatile, sun_misc_Unsafe, getShortVolatile_name, getShort_signature, F_RN) \ | |
823 do_intrinsic(_getCharVolatile, sun_misc_Unsafe, getCharVolatile_name, getChar_signature, F_RN) \ | |
824 do_intrinsic(_getIntVolatile, sun_misc_Unsafe, getIntVolatile_name, getInt_signature, F_RN) \ | |
825 do_intrinsic(_getLongVolatile, sun_misc_Unsafe, getLongVolatile_name, getLong_signature, F_RN) \ | |
826 do_intrinsic(_getFloatVolatile, sun_misc_Unsafe, getFloatVolatile_name, getFloat_signature, F_RN) \ | |
827 do_intrinsic(_getDoubleVolatile, sun_misc_Unsafe, getDoubleVolatile_name, getDouble_signature, F_RN) \ | |
828 do_intrinsic(_putObjectVolatile, sun_misc_Unsafe, putObjectVolatile_name, putObject_signature, F_RN) \ | |
829 do_intrinsic(_putBooleanVolatile, sun_misc_Unsafe, putBooleanVolatile_name, putBoolean_signature, F_RN) \ | |
830 do_intrinsic(_putByteVolatile, sun_misc_Unsafe, putByteVolatile_name, putByte_signature, F_RN) \ | |
831 do_intrinsic(_putShortVolatile, sun_misc_Unsafe, putShortVolatile_name, putShort_signature, F_RN) \ | |
832 do_intrinsic(_putCharVolatile, sun_misc_Unsafe, putCharVolatile_name, putChar_signature, F_RN) \ | |
833 do_intrinsic(_putIntVolatile, sun_misc_Unsafe, putIntVolatile_name, putInt_signature, F_RN) \ | |
834 do_intrinsic(_putLongVolatile, sun_misc_Unsafe, putLongVolatile_name, putLong_signature, F_RN) \ | |
835 do_intrinsic(_putFloatVolatile, sun_misc_Unsafe, putFloatVolatile_name, putFloat_signature, F_RN) \ | |
836 do_intrinsic(_putDoubleVolatile, sun_misc_Unsafe, putDoubleVolatile_name, putDouble_signature, F_RN) \ | |
837 \ | |
838 /* %%% these are redundant except perhaps for getAddress, but Unsafe has native methods for them */ \ | |
839 do_signature(getByte_raw_signature, "(J)B") \ | |
840 do_signature(putByte_raw_signature, "(JB)V") \ | |
841 do_signature(getShort_raw_signature, "(J)S") \ | |
842 do_signature(putShort_raw_signature, "(JS)V") \ | |
843 do_signature(getChar_raw_signature, "(J)C") \ | |
844 do_signature(putChar_raw_signature, "(JC)V") \ | |
845 do_signature(putInt_raw_signature, "(JI)V") \ | |
846 do_alias(getLong_raw_signature, /*(J)J*/ long_long_signature) \ | |
847 do_alias(putLong_raw_signature, /*(JJ)V*/ long_long_void_signature) \ | |
848 do_signature(getFloat_raw_signature, "(J)F") \ | |
849 do_signature(putFloat_raw_signature, "(JF)V") \ | |
850 do_alias(getDouble_raw_signature, /*(J)D*/ long_double_signature) \ | |
851 do_signature(putDouble_raw_signature, "(JD)V") \ | |
852 do_alias(getAddress_raw_signature, /*(J)J*/ long_long_signature) \ | |
853 do_alias(putAddress_raw_signature, /*(JJ)V*/ long_long_void_signature) \ | |
854 \ | |
855 do_name( getAddress_name, "getAddress") \ | |
856 do_name( putAddress_name, "putAddress") \ | |
857 \ | |
858 do_intrinsic(_getByte_raw, sun_misc_Unsafe, getByte_name, getByte_raw_signature, F_RN) \ | |
859 do_intrinsic(_getShort_raw, sun_misc_Unsafe, getShort_name, getShort_raw_signature, F_RN) \ | |
860 do_intrinsic(_getChar_raw, sun_misc_Unsafe, getChar_name, getChar_raw_signature, F_RN) \ | |
643
c771b7f43bbf
6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents:
514
diff
changeset
|
861 do_intrinsic(_getInt_raw, sun_misc_Unsafe, getInt_name, long_int_signature, F_RN) \ |
0 | 862 do_intrinsic(_getLong_raw, sun_misc_Unsafe, getLong_name, getLong_raw_signature, F_RN) \ |
863 do_intrinsic(_getFloat_raw, sun_misc_Unsafe, getFloat_name, getFloat_raw_signature, F_RN) \ | |
864 do_intrinsic(_getDouble_raw, sun_misc_Unsafe, getDouble_name, getDouble_raw_signature, F_RN) \ | |
865 do_intrinsic(_getAddress_raw, sun_misc_Unsafe, getAddress_name, getAddress_raw_signature, F_RN) \ | |
866 do_intrinsic(_putByte_raw, sun_misc_Unsafe, putByte_name, putByte_raw_signature, F_RN) \ | |
867 do_intrinsic(_putShort_raw, sun_misc_Unsafe, putShort_name, putShort_raw_signature, F_RN) \ | |
868 do_intrinsic(_putChar_raw, sun_misc_Unsafe, putChar_name, putChar_raw_signature, F_RN) \ | |
869 do_intrinsic(_putInt_raw, sun_misc_Unsafe, putInt_name, putInt_raw_signature, F_RN) \ | |
870 do_intrinsic(_putLong_raw, sun_misc_Unsafe, putLong_name, putLong_raw_signature, F_RN) \ | |
871 do_intrinsic(_putFloat_raw, sun_misc_Unsafe, putFloat_name, putFloat_raw_signature, F_RN) \ | |
872 do_intrinsic(_putDouble_raw, sun_misc_Unsafe, putDouble_name, putDouble_raw_signature, F_RN) \ | |
873 do_intrinsic(_putAddress_raw, sun_misc_Unsafe, putAddress_name, putAddress_raw_signature, F_RN) \ | |
874 \ | |
875 do_intrinsic(_compareAndSwapObject, sun_misc_Unsafe, compareAndSwapObject_name, compareAndSwapObject_signature, F_RN) \ | |
876 do_name( compareAndSwapObject_name, "compareAndSwapObject") \ | |
877 do_signature(compareAndSwapObject_signature, "(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Z") \ | |
878 do_intrinsic(_compareAndSwapLong, sun_misc_Unsafe, compareAndSwapLong_name, compareAndSwapLong_signature, F_RN) \ | |
879 do_name( compareAndSwapLong_name, "compareAndSwapLong") \ | |
880 do_signature(compareAndSwapLong_signature, "(Ljava/lang/Object;JJJ)Z") \ | |
881 do_intrinsic(_compareAndSwapInt, sun_misc_Unsafe, compareAndSwapInt_name, compareAndSwapInt_signature, F_RN) \ | |
882 do_name( compareAndSwapInt_name, "compareAndSwapInt") \ | |
883 do_signature(compareAndSwapInt_signature, "(Ljava/lang/Object;JII)Z") \ | |
884 do_intrinsic(_putOrderedObject, sun_misc_Unsafe, putOrderedObject_name, putOrderedObject_signature, F_RN) \ | |
885 do_name( putOrderedObject_name, "putOrderedObject") \ | |
886 do_alias( putOrderedObject_signature, /*(LObject;JLObject;)V*/ putObject_signature) \ | |
887 do_intrinsic(_putOrderedLong, sun_misc_Unsafe, putOrderedLong_name, putOrderedLong_signature, F_RN) \ | |
888 do_name( putOrderedLong_name, "putOrderedLong") \ | |
889 do_alias( putOrderedLong_signature, /*(Ljava/lang/Object;JJ)V*/ putLong_signature) \ | |
890 do_intrinsic(_putOrderedInt, sun_misc_Unsafe, putOrderedInt_name, putOrderedInt_signature, F_RN) \ | |
891 do_name( putOrderedInt_name, "putOrderedInt") \ | |
892 do_alias( putOrderedInt_signature, /*(Ljava/lang/Object;JI)V*/ putInt_signature) \ | |
893 \ | |
6795
7eca5de9e0b6
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
6725
diff
changeset
|
894 do_intrinsic(_getAndAddInt, sun_misc_Unsafe, getAndAddInt_name, getAndAddInt_signature, F_R) \ |
7eca5de9e0b6
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
6725
diff
changeset
|
895 do_name( getAndAddInt_name, "getAndAddInt") \ |
7eca5de9e0b6
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
6725
diff
changeset
|
896 do_signature(getAndAddInt_signature, "(Ljava/lang/Object;JI)I" ) \ |
7eca5de9e0b6
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
6725
diff
changeset
|
897 do_intrinsic(_getAndAddLong, sun_misc_Unsafe, getAndAddLong_name, getAndAddLong_signature, F_R) \ |
7eca5de9e0b6
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
6725
diff
changeset
|
898 do_name( getAndAddLong_name, "getAndAddLong") \ |
7eca5de9e0b6
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
6725
diff
changeset
|
899 do_signature(getAndAddLong_signature, "(Ljava/lang/Object;JJ)J" ) \ |
7eca5de9e0b6
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
6725
diff
changeset
|
900 do_intrinsic(_getAndSetInt, sun_misc_Unsafe, getAndSet_name, getAndSetInt_signature, F_R) \ |
7eca5de9e0b6
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
6725
diff
changeset
|
901 do_name( getAndSet_name, "getAndSet") \ |
7eca5de9e0b6
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
6725
diff
changeset
|
902 do_alias( getAndSetInt_signature, /*"(Ljava/lang/Object;JI)I"*/ getAndAddInt_signature) \ |
7eca5de9e0b6
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
6725
diff
changeset
|
903 do_intrinsic(_getAndSetLong, sun_misc_Unsafe, getAndSet_name, getAndSetLong_signature, F_R) \ |
7eca5de9e0b6
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
6725
diff
changeset
|
904 do_alias( getAndSetLong_signature, /*"(Ljava/lang/Object;JJ)J"*/ getAndAddLong_signature) \ |
7eca5de9e0b6
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
6725
diff
changeset
|
905 do_intrinsic(_getAndSetObject, sun_misc_Unsafe, getAndSet_name, getAndSetObject_signature, F_R) \ |
7eca5de9e0b6
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
6725
diff
changeset
|
906 do_signature(getAndSetObject_signature, "(Ljava/lang/Object;JLjava/lang/Object;)Ljava/lang/Object;" ) \ |
7eca5de9e0b6
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
6725
diff
changeset
|
907 \ |
0 | 908 /* prefetch_signature is shared by all prefetch variants */ \ |
909 do_signature( prefetch_signature, "(Ljava/lang/Object;J)V") \ | |
910 \ | |
911 do_intrinsic(_prefetchRead, sun_misc_Unsafe, prefetchRead_name, prefetch_signature, F_RN) \ | |
912 do_name( prefetchRead_name, "prefetchRead") \ | |
913 do_intrinsic(_prefetchWrite, sun_misc_Unsafe, prefetchWrite_name, prefetch_signature, F_RN) \ | |
914 do_name( prefetchWrite_name, "prefetchWrite") \ | |
915 do_intrinsic(_prefetchReadStatic, sun_misc_Unsafe, prefetchReadStatic_name, prefetch_signature, F_SN) \ | |
916 do_name( prefetchReadStatic_name, "prefetchReadStatic") \ | |
917 do_intrinsic(_prefetchWriteStatic, sun_misc_Unsafe, prefetchWriteStatic_name, prefetch_signature, F_SN) \ | |
918 do_name( prefetchWriteStatic_name, "prefetchWriteStatic") \ | |
856
75596850f863
6862576: vmIntrinsics needs cleanup in order to support JSR 292 intrinsics
jrose
parents:
775
diff
changeset
|
919 /*== LAST_COMPILER_INLINE*/ \ |
75596850f863
6862576: vmIntrinsics needs cleanup in order to support JSR 292 intrinsics
jrose
parents:
775
diff
changeset
|
920 /*the compiler does have special inlining code for these; bytecode inline is just fine */ \ |
75596850f863
6862576: vmIntrinsics needs cleanup in order to support JSR 292 intrinsics
jrose
parents:
775
diff
changeset
|
921 \ |
75596850f863
6862576: vmIntrinsics needs cleanup in order to support JSR 292 intrinsics
jrose
parents:
775
diff
changeset
|
922 do_intrinsic(_fillInStackTrace, java_lang_Throwable, fillInStackTrace_name, void_throwable_signature, F_RNY) \ |
1080
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
923 \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
924 do_intrinsic(_StringBuilder_void, java_lang_StringBuilder, object_initializer_name, void_method_signature, F_R) \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
925 do_intrinsic(_StringBuilder_int, java_lang_StringBuilder, object_initializer_name, int_void_signature, F_R) \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
926 do_intrinsic(_StringBuilder_String, java_lang_StringBuilder, object_initializer_name, string_void_signature, F_R) \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
927 \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
928 do_intrinsic(_StringBuilder_append_char, java_lang_StringBuilder, append_name, char_StringBuilder_signature, F_R) \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
929 do_intrinsic(_StringBuilder_append_int, java_lang_StringBuilder, append_name, int_StringBuilder_signature, F_R) \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
930 do_intrinsic(_StringBuilder_append_String, java_lang_StringBuilder, append_name, String_StringBuilder_signature, F_R) \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
931 \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
932 do_intrinsic(_StringBuilder_toString, java_lang_StringBuilder, toString_name, void_string_signature, F_R) \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
933 \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
934 do_intrinsic(_StringBuffer_void, java_lang_StringBuffer, object_initializer_name, void_method_signature, F_R) \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
935 do_intrinsic(_StringBuffer_int, java_lang_StringBuffer, object_initializer_name, int_void_signature, F_R) \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
936 do_intrinsic(_StringBuffer_String, java_lang_StringBuffer, object_initializer_name, string_void_signature, F_R) \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
937 \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
938 do_intrinsic(_StringBuffer_append_char, java_lang_StringBuffer, append_name, char_StringBuffer_signature, F_Y) \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
939 do_intrinsic(_StringBuffer_append_int, java_lang_StringBuffer, append_name, int_StringBuffer_signature, F_Y) \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
940 do_intrinsic(_StringBuffer_append_String, java_lang_StringBuffer, append_name, String_StringBuffer_signature, F_Y) \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
941 \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
942 do_intrinsic(_StringBuffer_toString, java_lang_StringBuffer, toString_name, void_string_signature, F_Y) \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
943 \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
944 do_intrinsic(_Integer_toString, java_lang_Integer, toString_name, int_String_signature, F_S) \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
945 \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
946 do_intrinsic(_String_String, java_lang_String, object_initializer_name, string_void_signature, F_R) \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
947 \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
948 do_intrinsic(_Object_init, java_lang_Object, object_initializer_name, void_method_signature, F_R) \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
949 /* (symbol object_initializer_name defined above) */ \ |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
950 \ |
1507
cd5dbf694d45
6939134: JSR 292 adjustments to method handle invocation
jrose
parents:
1396
diff
changeset
|
951 do_intrinsic(_invoke, java_lang_reflect_Method, invoke_name, object_object_array_object_signature, F_R) \ |
856
75596850f863
6862576: vmIntrinsics needs cleanup in order to support JSR 292 intrinsics
jrose
parents:
775
diff
changeset
|
952 /* (symbols invoke_name and invoke_signature defined above) */ \ |
6266
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
953 /* the polymorphic MH intrinsics must be in compact order, with _invokeGeneric first and _linkToInterface last */ \ |
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
954 do_intrinsic(_invokeGeneric, java_lang_invoke_MethodHandle, invoke_name, star_name, F_RN) \ |
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
955 do_intrinsic(_invokeBasic, java_lang_invoke_MethodHandle, invokeBasic_name, star_name, F_RN) \ |
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
956 do_intrinsic(_linkToVirtual, java_lang_invoke_MethodHandle, linkToVirtual_name, star_name, F_SN) \ |
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
957 do_intrinsic(_linkToStatic, java_lang_invoke_MethodHandle, linkToStatic_name, star_name, F_SN) \ |
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
958 do_intrinsic(_linkToSpecial, java_lang_invoke_MethodHandle, linkToSpecial_name, star_name, F_SN) \ |
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
959 do_intrinsic(_linkToInterface, java_lang_invoke_MethodHandle, linkToInterface_name, star_name, F_SN) \ |
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
960 /* special marker for bytecode generated for the JVM from a LambdaForm: */ \ |
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
961 do_intrinsic(_compiledLambdaForm, java_lang_invoke_MethodHandle, compiledLambdaForm_name, star_name, F_RN) \ |
3905
c26de9aef2ed
7071307: MethodHandle bimorphic inlining should consider the frequency
never
parents:
3900
diff
changeset
|
962 \ |
1133
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
963 /* unboxing methods: */ \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
964 do_intrinsic(_booleanValue, java_lang_Boolean, booleanValue_name, void_boolean_signature, F_R) \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
965 do_name( booleanValue_name, "booleanValue") \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
966 do_intrinsic(_byteValue, java_lang_Byte, byteValue_name, void_byte_signature, F_R) \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
967 do_name( byteValue_name, "byteValue") \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
968 do_intrinsic(_charValue, java_lang_Character, charValue_name, void_char_signature, F_R) \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
969 do_name( charValue_name, "charValue") \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
970 do_intrinsic(_shortValue, java_lang_Short, shortValue_name, void_short_signature, F_R) \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
971 do_name( shortValue_name, "shortValue") \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
972 do_intrinsic(_intValue, java_lang_Integer, intValue_name, void_int_signature, F_R) \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
973 do_name( intValue_name, "intValue") \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
974 do_intrinsic(_longValue, java_lang_Long, longValue_name, void_long_signature, F_R) \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
975 do_name( longValue_name, "longValue") \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
976 do_intrinsic(_floatValue, java_lang_Float, floatValue_name, void_float_signature, F_R) \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
977 do_name( floatValue_name, "floatValue") \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
978 do_intrinsic(_doubleValue, java_lang_Double, doubleValue_name, void_double_signature, F_R) \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
979 do_name( doubleValue_name, "doubleValue") \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
980 \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
981 /* boxing methods: */ \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
982 do_name( valueOf_name, "valueOf") \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
983 do_intrinsic(_Boolean_valueOf, java_lang_Boolean, valueOf_name, Boolean_valueOf_signature, F_S) \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
984 do_name( Boolean_valueOf_signature, "(Z)Ljava/lang/Boolean;") \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
985 do_intrinsic(_Byte_valueOf, java_lang_Byte, valueOf_name, Byte_valueOf_signature, F_S) \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
986 do_name( Byte_valueOf_signature, "(B)Ljava/lang/Byte;") \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
987 do_intrinsic(_Character_valueOf, java_lang_Character, valueOf_name, Character_valueOf_signature, F_S) \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
988 do_name( Character_valueOf_signature, "(C)Ljava/lang/Character;") \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
989 do_intrinsic(_Short_valueOf, java_lang_Short, valueOf_name, Short_valueOf_signature, F_S) \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
990 do_name( Short_valueOf_signature, "(S)Ljava/lang/Short;") \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
991 do_intrinsic(_Integer_valueOf, java_lang_Integer, valueOf_name, Integer_valueOf_signature, F_S) \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
992 do_name( Integer_valueOf_signature, "(I)Ljava/lang/Integer;") \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
993 do_intrinsic(_Long_valueOf, java_lang_Long, valueOf_name, Long_valueOf_signature, F_S) \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
994 do_name( Long_valueOf_signature, "(J)Ljava/lang/Long;") \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
995 do_intrinsic(_Float_valueOf, java_lang_Float, valueOf_name, Float_valueOf_signature, F_S) \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
996 do_name( Float_valueOf_signature, "(F)Ljava/lang/Float;") \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
997 do_intrinsic(_Double_valueOf, java_lang_Double, valueOf_name, Double_valueOf_signature, F_S) \ |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
998 do_name( Double_valueOf_signature, "(D)Ljava/lang/Double;") \ |
856
75596850f863
6862576: vmIntrinsics needs cleanup in order to support JSR 292 intrinsics
jrose
parents:
775
diff
changeset
|
999 \ |
0 | 1000 /*end*/ |
1001 | |
1002 | |
1003 | |
856
75596850f863
6862576: vmIntrinsics needs cleanup in order to support JSR 292 intrinsics
jrose
parents:
775
diff
changeset
|
1004 |
0 | 1005 // Class vmSymbols |
1006 | |
1007 class vmSymbols: AllStatic { | |
3962
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3938
diff
changeset
|
1008 friend class vmIntrinsics; |
cb315dc80374
7092278: "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
never
parents:
3938
diff
changeset
|
1009 friend class VMStructs; |
0 | 1010 public: |
2177
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
2129
diff
changeset
|
1011 // enum for figuring positions and size of array holding Symbol*s |
0 | 1012 enum SID { |
1013 NO_SID = 0, | |
1014 | |
1015 #define VM_SYMBOL_ENUM(name, string) VM_SYMBOL_ENUM_NAME(name), | |
1016 VM_SYMBOLS_DO(VM_SYMBOL_ENUM, VM_ALIAS_IGNORE) | |
1017 #undef VM_SYMBOL_ENUM | |
1018 | |
1019 SID_LIMIT, | |
1020 | |
1021 #define VM_ALIAS_ENUM(name, def) VM_SYMBOL_ENUM_NAME(name) = VM_SYMBOL_ENUM_NAME(def), | |
1022 VM_SYMBOLS_DO(VM_SYMBOL_IGNORE, VM_ALIAS_ENUM) | |
1023 #undef VM_ALIAS_ENUM | |
1024 | |
1025 FIRST_SID = NO_SID + 1 | |
1026 }; | |
1027 enum { | |
1028 log2_SID_LIMIT = 10 // checked by an assert at start-up | |
1029 }; | |
1030 | |
1031 private: | |
1032 // The symbol array | |
2177
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
2129
diff
changeset
|
1033 static Symbol* _symbols[]; |
0 | 1034 |
1035 // Field signatures indexed by BasicType. | |
2177
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
2129
diff
changeset
|
1036 static Symbol* _type_signatures[T_VOID+1]; |
0 | 1037 |
1038 public: | |
1039 // Initialization | |
1040 static void initialize(TRAPS); | |
1041 // Accessing | |
2177
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
2129
diff
changeset
|
1042 #define VM_SYMBOL_DECLARE(name, ignore) \ |
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
2129
diff
changeset
|
1043 static Symbol* name() { \ |
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
2129
diff
changeset
|
1044 return _symbols[VM_SYMBOL_ENUM_NAME(name)]; \ |
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
2129
diff
changeset
|
1045 } |
0 | 1046 VM_SYMBOLS_DO(VM_SYMBOL_DECLARE, VM_SYMBOL_DECLARE) |
1047 #undef VM_SYMBOL_DECLARE | |
1048 | |
2177
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
2129
diff
changeset
|
1049 // Sharing support |
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
2129
diff
changeset
|
1050 static void symbols_do(SymbolClosure* f); |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6271
diff
changeset
|
1051 static void serialize(SerializeClosure* soc); |
0 | 1052 |
2177
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
2129
diff
changeset
|
1053 static Symbol* type_signature(BasicType t) { |
0 | 1054 assert((uint)t < T_VOID+1, "range check"); |
1055 assert(_type_signatures[t] != NULL, "domain check"); | |
1056 return _type_signatures[t]; | |
1057 } | |
1058 // inverse of type_signature; returns T_OBJECT if s is not recognized | |
2177
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
2129
diff
changeset
|
1059 static BasicType signature_type(Symbol* s); |
0 | 1060 |
2177
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
2129
diff
changeset
|
1061 static Symbol* symbol_at(SID id) { |
0 | 1062 assert(id >= FIRST_SID && id < SID_LIMIT, "oob"); |
1063 assert(_symbols[id] != NULL, "init"); | |
1064 return _symbols[id]; | |
1065 } | |
1066 | |
1067 // Returns symbol's SID if one is assigned, else NO_SID. | |
2177
3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents:
2129
diff
changeset
|
1068 static SID find_sid(Symbol* symbol); |
2356
72dee110246f
6839872: remove implementation inheritance from JSR 292 APIs
jrose
parents:
2202
diff
changeset
|
1069 static SID find_sid(const char* symbol_name); |
0 | 1070 |
1071 #ifndef PRODUCT | |
1072 // No need for this in the product: | |
1073 static const char* name_for(SID sid); | |
1074 #endif //PRODUCT | |
1075 }; | |
1076 | |
1077 // VM Intrinsic ID's uniquely identify some very special methods | |
1078 class vmIntrinsics: AllStatic { | |
1079 friend class vmSymbols; | |
1080 friend class ciObjectFactory; | |
1081 | |
1082 public: | |
1083 // Accessing | |
1084 enum ID { | |
1085 _none = 0, // not an intrinsic (default answer) | |
1086 | |
1087 #define VM_INTRINSIC_ENUM(id, klass, name, sig, flags) id, | |
1088 VM_INTRINSICS_DO(VM_INTRINSIC_ENUM, | |
1089 VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) | |
1090 #undef VM_INTRINSIC_ENUM | |
1091 | |
1092 ID_LIMIT, | |
856
75596850f863
6862576: vmIntrinsics needs cleanup in order to support JSR 292 intrinsics
jrose
parents:
775
diff
changeset
|
1093 LAST_COMPILER_INLINE = _prefetchWriteStatic, |
6266
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
1094 FIRST_MH_SIG_POLY = _invokeGeneric, |
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
1095 FIRST_MH_STATIC = _linkToVirtual, |
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
1096 LAST_MH_SIG_POLY = _linkToInterface, |
1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
6222
diff
changeset
|
1097 |
0 | 1098 FIRST_ID = _none + 1 |
1099 }; | |
1100 | |
1101 enum Flags { | |
1102 // AccessFlags syndromes relevant to intrinsics. | |
1103 F_none = 0, | |
1080
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
1104 F_R, // !static ?native !synchronized (R="regular") |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
1105 F_S, // static ?native !synchronized |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
1106 F_Y, // !static ?native synchronized |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
1107 F_RN, // !static native !synchronized |
7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
1059
diff
changeset
|
1108 F_SN, // static native !synchronized |
1133
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1109 F_RNY, // !static native synchronized |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1110 |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1111 FLAG_LIMIT |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1112 }; |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1113 enum { |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1114 log2_FLAG_LIMIT = 4 // checked by an assert at start-up |
0 | 1115 }; |
1116 | |
1117 public: | |
1118 static ID ID_from(int raw_id) { | |
1119 assert(raw_id >= (int)_none && raw_id < (int)ID_LIMIT, | |
1120 "must be a valid intrinsic ID"); | |
1121 return (ID)raw_id; | |
1122 } | |
1123 | |
1124 static const char* name_at(ID id); | |
1125 | |
1133
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1126 private: |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1127 static ID find_id_impl(vmSymbols::SID holder, |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1128 vmSymbols::SID name, |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1129 vmSymbols::SID sig, |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1130 jshort flags); |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1131 |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1132 public: |
0 | 1133 // Given a method's class, name, signature, and access flags, report its ID. |
1134 static ID find_id(vmSymbols::SID holder, | |
1135 vmSymbols::SID name, | |
1136 vmSymbols::SID sig, | |
1133
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1137 jshort flags) { |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1138 ID id = find_id_impl(holder, name, sig, flags); |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1139 #ifdef ASSERT |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1140 // ID _none does not hold the following asserts. |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1141 if (id == _none) return id; |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1142 #endif |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1143 assert( class_for(id) == holder, "correct id"); |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1144 assert( name_for(id) == name, "correct id"); |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1145 assert(signature_for(id) == sig, "correct id"); |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1146 return id; |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1147 } |
0 | 1148 |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6271
diff
changeset
|
1149 static void verify_method(ID actual_id, Method* m) PRODUCT_RETURN; |
0 | 1150 |
1133
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1151 // Find out the symbols behind an intrinsic: |
0 | 1152 static vmSymbols::SID class_for(ID id); |
1153 static vmSymbols::SID name_for(ID id); | |
1154 static vmSymbols::SID signature_for(ID id); | |
1155 static Flags flags_for(ID id); | |
1156 | |
1157 static const char* short_name_as_C_string(ID id, char* buf, int size); | |
856
75596850f863
6862576: vmIntrinsics needs cleanup in order to support JSR 292 intrinsics
jrose
parents:
775
diff
changeset
|
1158 |
1133
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1159 // Wrapper object methods: |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1160 static ID for_boxing(BasicType type); |
aa62b9388fce
6894206: JVM needs a way to traverse method handle structures
twisti
parents:
1080
diff
changeset
|
1161 static ID for_unboxing(BasicType type); |
1138
dd57230ba8fe
6893268: additional dynamic language related optimizations in C2
twisti
parents:
1135
diff
changeset
|
1162 |
dd57230ba8fe
6893268: additional dynamic language related optimizations in C2
twisti
parents:
1135
diff
changeset
|
1163 // Raw conversion: |
dd57230ba8fe
6893268: additional dynamic language related optimizations in C2
twisti
parents:
1135
diff
changeset
|
1164 static ID for_raw_conversion(BasicType src, BasicType dest); |
0 | 1165 }; |
1972 | 1166 |
1167 #endif // SHARE_VM_CLASSFILE_VMSYMBOLS_HPP |