Mercurial > hg > truffle
comparison src/share/vm/classfile/vmSymbols.hpp @ 1930:2d26b0046e0d
Merge.
author | Thomas Wuerthinger <wuerthinger@ssw.jku.at> |
---|---|
date | Tue, 30 Nov 2010 14:53:30 +0100 |
parents | 6b7001391c97 d257356e35f0 |
children | 79d04223b8a5 |
comparison
equal
deleted
inserted
replaced
1484:6b7001391c97 | 1930:2d26b0046e0d |
---|---|
1 /* | 1 /* |
2 * Copyright 1997-2010 Sun Microsystems, Inc. All Rights Reserved. | 2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 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 | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
14 * | 14 * |
15 * You should have received a copy of the GNU General Public License version | 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, | 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. | 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
18 * | 18 * |
19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, | 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
20 * CA 95054 USA or visit www.sun.com if you need additional information or | 20 * or visit www.oracle.com if you need additional information or have any |
21 * have any questions. | 21 * questions. |
22 * | 22 * |
23 */ | 23 */ |
24 | 24 |
25 // The classes vmSymbols and vmSymbolHandles are a name spaces for fast lookup of | 25 // The classes vmSymbols and vmSymbolHandles are a name spaces for fast lookup of |
26 // symbols commonly used in the VM. The first class return a symbolOop, while the | 26 // symbols commonly used in the VM. The first class return a symbolOop, while the |
135 template(java_lang_ClassCastException, "java/lang/ClassCastException") \ | 135 template(java_lang_ClassCastException, "java/lang/ClassCastException") \ |
136 template(java_lang_ClassNotFoundException, "java/lang/ClassNotFoundException") \ | 136 template(java_lang_ClassNotFoundException, "java/lang/ClassNotFoundException") \ |
137 template(java_lang_CloneNotSupportedException, "java/lang/CloneNotSupportedException") \ | 137 template(java_lang_CloneNotSupportedException, "java/lang/CloneNotSupportedException") \ |
138 template(java_lang_IllegalAccessException, "java/lang/IllegalAccessException") \ | 138 template(java_lang_IllegalAccessException, "java/lang/IllegalAccessException") \ |
139 template(java_lang_IllegalArgumentException, "java/lang/IllegalArgumentException") \ | 139 template(java_lang_IllegalArgumentException, "java/lang/IllegalArgumentException") \ |
140 template(java_lang_IllegalStateException, "java/lang/IllegalStateException") \ | |
140 template(java_lang_IllegalMonitorStateException, "java/lang/IllegalMonitorStateException") \ | 141 template(java_lang_IllegalMonitorStateException, "java/lang/IllegalMonitorStateException") \ |
141 template(java_lang_IllegalThreadStateException, "java/lang/IllegalThreadStateException") \ | 142 template(java_lang_IllegalThreadStateException, "java/lang/IllegalThreadStateException") \ |
142 template(java_lang_IndexOutOfBoundsException, "java/lang/IndexOutOfBoundsException") \ | 143 template(java_lang_IndexOutOfBoundsException, "java/lang/IndexOutOfBoundsException") \ |
143 template(java_lang_InstantiationException, "java/lang/InstantiationException") \ | 144 template(java_lang_InstantiationException, "java/lang/InstantiationException") \ |
144 template(java_lang_InstantiationError, "java/lang/InstantiationError") \ | 145 template(java_lang_InstantiationError, "java/lang/InstantiationError") \ |
199 template(newConstructor_signature, "(Lsun/reflect/MethodInfo;)Ljava/lang/reflect/Constructor;") \ | 200 template(newConstructor_signature, "(Lsun/reflect/MethodInfo;)Ljava/lang/reflect/Constructor;") \ |
200 template(newField_name, "newField") \ | 201 template(newField_name, "newField") \ |
201 template(newField_signature, "(Lsun/reflect/FieldInfo;)Ljava/lang/reflect/Field;") \ | 202 template(newField_signature, "(Lsun/reflect/FieldInfo;)Ljava/lang/reflect/Field;") \ |
202 template(newMethod_name, "newMethod") \ | 203 template(newMethod_name, "newMethod") \ |
203 template(newMethod_signature, "(Lsun/reflect/MethodInfo;)Ljava/lang/reflect/Method;") \ | 204 template(newMethod_signature, "(Lsun/reflect/MethodInfo;)Ljava/lang/reflect/Method;") \ |
205 /* the following two names must be in order: */ \ | |
206 template(invokeExact_name, "invokeExact") \ | |
207 template(invokeGeneric_name, "invokeGeneric") \ | |
208 template(invokeVarargs_name, "invokeVarargs") \ | |
209 template(star_name, "*") /*not really a name*/ \ | |
204 template(invoke_name, "invoke") \ | 210 template(invoke_name, "invoke") \ |
205 template(override_name, "override") \ | 211 template(override_name, "override") \ |
206 template(parameterTypes_name, "parameterTypes") \ | 212 template(parameterTypes_name, "parameterTypes") \ |
207 template(returnType_name, "returnType") \ | 213 template(returnType_name, "returnType") \ |
208 template(signature_name, "signature") \ | 214 template(signature_name, "signature") \ |
229 template(java_dyn_MethodHandle_signature, "Ljava/dyn/MethodHandle;") \ | 235 template(java_dyn_MethodHandle_signature, "Ljava/dyn/MethodHandle;") \ |
230 /* internal classes known only to the JVM: */ \ | 236 /* internal classes known only to the JVM: */ \ |
231 template(java_dyn_MethodTypeForm, "java/dyn/MethodTypeForm") \ | 237 template(java_dyn_MethodTypeForm, "java/dyn/MethodTypeForm") \ |
232 template(java_dyn_MethodTypeForm_signature, "Ljava/dyn/MethodTypeForm;") \ | 238 template(java_dyn_MethodTypeForm_signature, "Ljava/dyn/MethodTypeForm;") \ |
233 template(sun_dyn_MemberName, "sun/dyn/MemberName") \ | 239 template(sun_dyn_MemberName, "sun/dyn/MemberName") \ |
240 template(sun_dyn_MemberName_signature, "Lsun/dyn/MemberName;") \ | |
234 template(sun_dyn_MethodHandleImpl, "sun/dyn/MethodHandleImpl") \ | 241 template(sun_dyn_MethodHandleImpl, "sun/dyn/MethodHandleImpl") \ |
242 template(sun_dyn_MethodHandleNatives, "sun/dyn/MethodHandleNatives") \ | |
235 template(sun_dyn_AdapterMethodHandle, "sun/dyn/AdapterMethodHandle") \ | 243 template(sun_dyn_AdapterMethodHandle, "sun/dyn/AdapterMethodHandle") \ |
236 template(sun_dyn_BoundMethodHandle, "sun/dyn/BoundMethodHandle") \ | 244 template(sun_dyn_BoundMethodHandle, "sun/dyn/BoundMethodHandle") \ |
237 template(sun_dyn_DirectMethodHandle, "sun/dyn/DirectMethodHandle") \ | 245 template(sun_dyn_DirectMethodHandle, "sun/dyn/DirectMethodHandle") \ |
238 template(makeImpl_name, "makeImpl") /*MethodType::makeImpl*/ \ | 246 /* internal up-calls made only by the JVM, via class sun.dyn.MethodHandleNatives: */ \ |
239 template(makeImpl_signature, "(Ljava/lang/Class;[Ljava/lang/Class;ZZ)Ljava/dyn/MethodType;") \ | 247 template(findMethodHandleType_name, "findMethodHandleType") \ |
240 template(makeSite_name, "makeSite") /*CallSite::makeSite*/ \ | 248 template(findMethodHandleType_signature, "(Ljava/lang/Class;[Ljava/lang/Class;)Ljava/dyn/MethodType;") \ |
241 template(makeSite_signature, "(Ljava/lang/Class;Ljava/lang/String;Ljava/dyn/MethodType;II)Ljava/dyn/CallSite;") \ | 249 template(notifyGenericMethodType_name, "notifyGenericMethodType") \ |
242 template(findBootstrapMethod_name, "findBootstrapMethod") \ | 250 template(notifyGenericMethodType_signature, "(Ljava/dyn/MethodType;)V") \ |
243 template(findBootstrapMethod_signature, "(Ljava/lang/Class;Ljava/lang/Class;)Ljava/dyn/MethodHandle;") \ | 251 template(linkMethodHandleConstant_name, "linkMethodHandleConstant") \ |
252 template(linkMethodHandleConstant_signature, "(Ljava/lang/Class;ILjava/lang/Class;Ljava/lang/String;Ljava/lang/Object;)Ljava/dyn/MethodHandle;") \ | |
253 template(makeDynamicCallSite_name, "makeDynamicCallSite") \ | |
254 template(makeDynamicCallSite_signature, "(Ljava/dyn/MethodHandle;Ljava/lang/String;Ljava/dyn/MethodType;Ljava/lang/Object;Lsun/dyn/MemberName;I)Ljava/dyn/CallSite;") \ | |
244 NOT_LP64( do_alias(machine_word_signature, int_signature) ) \ | 255 NOT_LP64( do_alias(machine_word_signature, int_signature) ) \ |
245 LP64_ONLY( do_alias(machine_word_signature, long_signature) ) \ | 256 LP64_ONLY( do_alias(machine_word_signature, long_signature) ) \ |
246 \ | 257 \ |
247 /* support for C1X */ \ | 258 /* support for C1X */ \ |
248 template(com_sun_hotspot_c1x_VMExits, "com/sun/hotspot/c1x/VMExits") \ | 259 template(com_sun_hotspot_c1x_VMExits, "com/sun/hotspot/c1x/VMExits") \ |
397 template(conversion_name, "conversion") \ | 408 template(conversion_name, "conversion") \ |
398 template(rtype_name, "rtype") \ | 409 template(rtype_name, "rtype") \ |
399 template(ptypes_name, "ptypes") \ | 410 template(ptypes_name, "ptypes") \ |
400 template(form_name, "form") \ | 411 template(form_name, "form") \ |
401 template(erasedType_name, "erasedType") \ | 412 template(erasedType_name, "erasedType") \ |
413 template(genericInvoker_name, "genericInvoker") \ | |
402 template(append_name, "append") \ | 414 template(append_name, "append") \ |
403 template(id_name, "id") \ | 415 template(id_name, "id") \ |
404 \ | 416 \ |
405 /* non-intrinsic name/signature pairs: */ \ | 417 /* non-intrinsic name/signature pairs: */ \ |
406 template(register_method_name, "register") \ | 418 template(register_method_name, "register") \ |
470 template(int_int_void_signature, "(II)V") \ | 482 template(int_int_void_signature, "(II)V") \ |
471 template(long_long_void_signature, "(JJ)V") \ | 483 template(long_long_void_signature, "(JJ)V") \ |
472 template(void_classloader_signature, "()Ljava/lang/ClassLoader;") \ | 484 template(void_classloader_signature, "()Ljava/lang/ClassLoader;") \ |
473 template(void_object_signature, "()Ljava/lang/Object;") \ | 485 template(void_object_signature, "()Ljava/lang/Object;") \ |
474 template(void_class_signature, "()Ljava/lang/Class;") \ | 486 template(void_class_signature, "()Ljava/lang/Class;") \ |
475 template(void_string_signature, "()Ljava/lang/String;") \ | 487 template(void_string_signature, "()Ljava/lang/String;") \ |
476 template(object_array_object_object_signature, "(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;")\ | 488 template(object_array_object_signature, "([Ljava/lang/Object;)Ljava/lang/Object;") \ |
489 template(object_object_array_object_signature, "(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;")\ | |
477 template(exception_void_signature, "(Ljava/lang/Exception;)V") \ | 490 template(exception_void_signature, "(Ljava/lang/Exception;)V") \ |
478 template(protectiondomain_signature, "[Ljava/security/ProtectionDomain;") \ | 491 template(protectiondomain_signature, "[Ljava/security/ProtectionDomain;") \ |
479 template(accesscontrolcontext_signature, "Ljava/security/AccessControlContext;") \ | 492 template(accesscontrolcontext_signature, "Ljava/security/AccessControlContext;") \ |
480 template(class_protectiondomain_signature, "(Ljava/lang/Class;Ljava/security/ProtectionDomain;)V") \ | 493 template(class_protectiondomain_signature, "(Ljava/lang/Class;Ljava/security/ProtectionDomain;)V") \ |
481 template(thread_signature, "Ljava/lang/Thread;") \ | 494 template(thread_signature, "Ljava/lang/Thread;") \ |
925 do_intrinsic(_String_String, java_lang_String, object_initializer_name, string_void_signature, F_R) \ | 938 do_intrinsic(_String_String, java_lang_String, object_initializer_name, string_void_signature, F_R) \ |
926 \ | 939 \ |
927 do_intrinsic(_Object_init, java_lang_Object, object_initializer_name, void_method_signature, F_R) \ | 940 do_intrinsic(_Object_init, java_lang_Object, object_initializer_name, void_method_signature, F_R) \ |
928 /* (symbol object_initializer_name defined above) */ \ | 941 /* (symbol object_initializer_name defined above) */ \ |
929 \ | 942 \ |
930 do_intrinsic(_invoke, java_lang_reflect_Method, invoke_name, object_array_object_object_signature, F_R) \ | 943 do_intrinsic(_invoke, java_lang_reflect_Method, invoke_name, object_object_array_object_signature, F_R) \ |
931 /* (symbols invoke_name and invoke_signature defined above) */ \ | 944 /* (symbols invoke_name and invoke_signature defined above) */ \ |
932 do_intrinsic(_checkSpreadArgument, sun_dyn_MethodHandleImpl, checkSpreadArgument_name, checkSpreadArgument_signature, F_S) \ | 945 do_intrinsic(_checkSpreadArgument, sun_dyn_MethodHandleImpl, checkSpreadArgument_name, checkSpreadArgument_signature, F_S) \ |
933 do_name( checkSpreadArgument_name, "checkSpreadArgument") \ | 946 do_name( checkSpreadArgument_name, "checkSpreadArgument") \ |
934 do_name( checkSpreadArgument_signature, "(Ljava/lang/Object;I)V") \ | 947 do_name( checkSpreadArgument_signature, "(Ljava/lang/Object;I)V") \ |
948 do_intrinsic(_invokeExact, java_dyn_MethodHandle, invokeExact_name, object_array_object_signature, F_RN) \ | |
949 do_intrinsic(_invokeGeneric, java_dyn_MethodHandle, invokeGeneric_name, object_array_object_signature, F_RN) \ | |
950 do_intrinsic(_invokeVarargs, java_dyn_MethodHandle, invokeVarargs_name, object_array_object_signature, F_R) \ | |
951 do_intrinsic(_invokeDynamic, java_dyn_InvokeDynamic, star_name, object_array_object_signature, F_SN) \ | |
935 \ | 952 \ |
936 /* unboxing methods: */ \ | 953 /* unboxing methods: */ \ |
937 do_intrinsic(_booleanValue, java_lang_Boolean, booleanValue_name, void_boolean_signature, F_R) \ | 954 do_intrinsic(_booleanValue, java_lang_Boolean, booleanValue_name, void_boolean_signature, F_R) \ |
938 do_name( booleanValue_name, "booleanValue") \ | 955 do_name( booleanValue_name, "booleanValue") \ |
939 do_intrinsic(_byteValue, java_lang_Byte, byteValue_name, void_byte_signature, F_R) \ | 956 do_intrinsic(_byteValue, java_lang_Byte, byteValue_name, void_byte_signature, F_R) \ |