41 // Symbol* obj = vmSymbols::java_lang_Object();
42
43
44 // Useful sub-macros exported by this header file:
45
46 #define VM_SYMBOL_ENUM_NAME(name) name##_enum
47 #define VM_INTRINSIC_IGNORE(id, class, name, sig, flags) /*ignored*/
48 #define VM_SYMBOL_IGNORE(id, name) /*ignored*/
49 #define VM_ALIAS_IGNORE(id, id2) /*ignored*/
50
51 // Mapping function names to values. New entries should be added below.
52
53 #define VM_SYMBOLS_DO(template, do_alias) \
54 /* commonly used class, package, module names */ \
55 template(java_base, JAVA_BASE_NAME) \
56 template(java_lang_System, "java/lang/System") \
57 template(java_lang_Object, "java/lang/Object") \
58 template(java_lang_Class, "java/lang/Class") \
59 template(java_lang_Package, "java/lang/Package") \
60 template(java_lang_Module, "java/lang/Module") \
61 template(java_lang_String, "java/lang/String") \
62 template(java_lang_StringLatin1, "java/lang/StringLatin1") \
63 template(java_lang_StringUTF16, "java/lang/StringUTF16") \
64 template(java_lang_Thread, "java/lang/Thread") \
65 template(java_lang_ThreadGroup, "java/lang/ThreadGroup") \
66 template(java_lang_Cloneable, "java/lang/Cloneable") \
67 template(java_lang_Throwable, "java/lang/Throwable") \
68 template(java_lang_ClassLoader, "java/lang/ClassLoader") \
69 template(java_lang_ClassLoader_NativeLibrary, "java/lang/ClassLoader\x024NativeLibrary") \
70 template(java_lang_ThreadDeath, "java/lang/ThreadDeath") \
71 template(java_lang_Boolean, "java/lang/Boolean") \
72 template(java_lang_Character, "java/lang/Character") \
73 template(java_lang_Character_CharacterCache, "java/lang/Character$CharacterCache") \
74 template(java_lang_CharacterDataLatin1, "java/lang/CharacterDataLatin1") \
75 template(java_lang_Float, "java/lang/Float") \
76 template(java_lang_Double, "java/lang/Double") \
77 template(java_lang_Byte, "java/lang/Byte") \
78 template(java_lang_Byte_ByteCache, "java/lang/Byte$ByteCache") \
79 template(java_lang_Short, "java/lang/Short") \
80 template(java_lang_Short_ShortCache, "java/lang/Short$ShortCache") \
413 template(flags_name, "flags") \
414 template(basicType_name, "basicType") \
415 template(append_name, "append") \
416 template(klass_name, "klass") \
417 template(array_klass_name, "array_klass") \
418 template(mid_name, "mid") \
419 template(cpref_name, "cpref") \
420 template(version_name, "version") \
421 template(methodName_name, "methodName") \
422 template(fileName_name, "fileName") \
423 template(lineNumber_name, "lineNumber") \
424 template(oop_size_name, "oop_size") \
425 template(static_oop_field_count_name, "static_oop_field_count") \
426 template(protection_domain_name, "protection_domain") \
427 template(signers_name, "signers_name") \
428 template(source_file_name, "source_file") \
429 template(loader_data_name, "loader_data") \
430 template(vmdependencies_name, "vmdependencies") \
431 template(last_cleanup_name, "last_cleanup") \
432 template(loader_name, "loader") \
433 template(getModule_name, "getModule") \
434 template(input_stream_void_signature, "(Ljava/io/InputStream;)V") \
435 template(input_stream_signature, "Ljava/io/InputStream;") \
436 template(print_stream_signature, "Ljava/io/PrintStream;") \
437 template(security_manager_signature, "Ljava/lang/SecurityManager;") \
438 template(definePackage_name, "definePackage") \
439 template(definePackage_signature, "(Ljava/lang/String;Ljava/lang/Module;)Ljava/lang/Package;") \
440 template(defineOrCheckPackage_name, "defineOrCheckPackage") \
441 template(defineOrCheckPackage_signature, "(Ljava/lang/String;Ljava/util/jar/Manifest;Ljava/net/URL;)Ljava/lang/Package;") \
442 template(fileToEncodedURL_name, "fileToEncodedURL") \
443 template(fileToEncodedURL_signature, "(Ljava/io/File;)Ljava/net/URL;") \
444 template(getProtectionDomain_name, "getProtectionDomain") \
445 template(getProtectionDomain_signature, "(Ljava/security/CodeSource;)Ljava/security/ProtectionDomain;") \
446 template(java_lang_Integer_array_signature, "[Ljava/lang/Integer;") \
447 template(url_code_signer_array_void_signature, "(Ljava/net/URL;[Ljava/security/CodeSigner;)V") \
448 template(module_entry_name, "module_entry") \
449 template(resolved_references_name, "<resolved_references>") \
450 template(init_lock_name, "<init_lock>") \
451 \
452 /* name symbols needed by intrinsics */ \
453 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, template, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \
526 template(object_array_object_signature, "([Ljava/lang/Object;)Ljava/lang/Object;") \
527 template(object_object_array_object_signature, "(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;")\
528 template(exception_void_signature, "(Ljava/lang/Exception;)V") \
529 template(protectiondomain_signature, "[Ljava/security/ProtectionDomain;") \
530 template(accesscontrolcontext_signature, "Ljava/security/AccessControlContext;") \
531 template(class_protectiondomain_signature, "(Ljava/lang/Class;Ljava/security/ProtectionDomain;)V") \
532 template(thread_signature, "Ljava/lang/Thread;") \
533 template(thread_array_signature, "[Ljava/lang/Thread;") \
534 template(threadgroup_signature, "Ljava/lang/ThreadGroup;") \
535 template(threadgroup_array_signature, "[Ljava/lang/ThreadGroup;") \
536 template(class_array_signature, "[Ljava/lang/Class;") \
537 template(classloader_signature, "Ljava/lang/ClassLoader;") \
538 template(object_signature, "Ljava/lang/Object;") \
539 template(object_array_signature, "[Ljava/lang/Object;") \
540 template(class_signature, "Ljava/lang/Class;") \
541 template(string_signature, "Ljava/lang/String;") \
542 template(string_array_signature, "[Ljava/lang/String;") \
543 template(reference_signature, "Ljava/lang/ref/Reference;") \
544 template(executable_signature, "Ljava/lang/reflect/Executable;") \
545 template(module_signature, "Ljava/lang/Module;") \
546 template(concurrenthashmap_signature, "Ljava/util/concurrent/ConcurrentHashMap;") \
547 template(String_StringBuilder_signature, "(Ljava/lang/String;)Ljava/lang/StringBuilder;") \
548 template(int_StringBuilder_signature, "(I)Ljava/lang/StringBuilder;") \
549 template(char_StringBuilder_signature, "(C)Ljava/lang/StringBuilder;") \
550 template(String_StringBuffer_signature, "(Ljava/lang/String;)Ljava/lang/StringBuffer;") \
551 template(int_StringBuffer_signature, "(I)Ljava/lang/StringBuffer;") \
552 template(char_StringBuffer_signature, "(C)Ljava/lang/StringBuffer;") \
553 template(int_String_signature, "(I)Ljava/lang/String;") \
554 template(boolean_boolean_int_signature, "(ZZ)I") \
555 /* signature symbols needed by intrinsics */ \
556 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, template, VM_ALIAS_IGNORE) \
557 \
558 /* symbol aliases needed by intrinsics */ \
559 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, do_alias) \
560 \
561 /* returned by the C1 compiler in case there's not enough memory to allocate a new symbol*/ \
562 template(dummy_symbol, "illegal symbol") \
563 \
564 /* used by ClassFormatError when class name is not known yet */ \
565 template(unknown_class_name, "<Unknown>") \
|
41 // Symbol* obj = vmSymbols::java_lang_Object();
42
43
44 // Useful sub-macros exported by this header file:
45
46 #define VM_SYMBOL_ENUM_NAME(name) name##_enum
47 #define VM_INTRINSIC_IGNORE(id, class, name, sig, flags) /*ignored*/
48 #define VM_SYMBOL_IGNORE(id, name) /*ignored*/
49 #define VM_ALIAS_IGNORE(id, id2) /*ignored*/
50
51 // Mapping function names to values. New entries should be added below.
52
53 #define VM_SYMBOLS_DO(template, do_alias) \
54 /* commonly used class, package, module names */ \
55 template(java_base, JAVA_BASE_NAME) \
56 template(java_lang_System, "java/lang/System") \
57 template(java_lang_Object, "java/lang/Object") \
58 template(java_lang_Class, "java/lang/Class") \
59 template(java_lang_Package, "java/lang/Package") \
60 template(java_lang_Module, "java/lang/Module") \
61 template(java_lang_module_ModuleDescriptor, "java/lang/module/ModuleDescriptor") \
62 template(java_lang_module_ModuleDescriptor_Version, "java/lang/module/ModuleDescriptor$Version")\
63 template(java_lang_String, "java/lang/String") \
64 template(java_lang_StringLatin1, "java/lang/StringLatin1") \
65 template(java_lang_StringUTF16, "java/lang/StringUTF16") \
66 template(java_lang_Thread, "java/lang/Thread") \
67 template(java_lang_ThreadGroup, "java/lang/ThreadGroup") \
68 template(java_lang_Cloneable, "java/lang/Cloneable") \
69 template(java_lang_Throwable, "java/lang/Throwable") \
70 template(java_lang_ClassLoader, "java/lang/ClassLoader") \
71 template(java_lang_ClassLoader_NativeLibrary, "java/lang/ClassLoader\x024NativeLibrary") \
72 template(java_lang_ThreadDeath, "java/lang/ThreadDeath") \
73 template(java_lang_Boolean, "java/lang/Boolean") \
74 template(java_lang_Character, "java/lang/Character") \
75 template(java_lang_Character_CharacterCache, "java/lang/Character$CharacterCache") \
76 template(java_lang_CharacterDataLatin1, "java/lang/CharacterDataLatin1") \
77 template(java_lang_Float, "java/lang/Float") \
78 template(java_lang_Double, "java/lang/Double") \
79 template(java_lang_Byte, "java/lang/Byte") \
80 template(java_lang_Byte_ByteCache, "java/lang/Byte$ByteCache") \
81 template(java_lang_Short, "java/lang/Short") \
82 template(java_lang_Short_ShortCache, "java/lang/Short$ShortCache") \
415 template(flags_name, "flags") \
416 template(basicType_name, "basicType") \
417 template(append_name, "append") \
418 template(klass_name, "klass") \
419 template(array_klass_name, "array_klass") \
420 template(mid_name, "mid") \
421 template(cpref_name, "cpref") \
422 template(version_name, "version") \
423 template(methodName_name, "methodName") \
424 template(fileName_name, "fileName") \
425 template(lineNumber_name, "lineNumber") \
426 template(oop_size_name, "oop_size") \
427 template(static_oop_field_count_name, "static_oop_field_count") \
428 template(protection_domain_name, "protection_domain") \
429 template(signers_name, "signers_name") \
430 template(source_file_name, "source_file") \
431 template(loader_data_name, "loader_data") \
432 template(vmdependencies_name, "vmdependencies") \
433 template(last_cleanup_name, "last_cleanup") \
434 template(loader_name, "loader") \
435 template(descriptor_name, "descriptor") \
436 template(getModule_name, "getModule") \
437 template(raw_version_string_name, "rawVersionString") \
438 template(input_stream_void_signature, "(Ljava/io/InputStream;)V") \
439 template(input_stream_signature, "Ljava/io/InputStream;") \
440 template(print_stream_signature, "Ljava/io/PrintStream;") \
441 template(security_manager_signature, "Ljava/lang/SecurityManager;") \
442 template(definePackage_name, "definePackage") \
443 template(definePackage_signature, "(Ljava/lang/String;Ljava/lang/Module;)Ljava/lang/Package;") \
444 template(defineOrCheckPackage_name, "defineOrCheckPackage") \
445 template(defineOrCheckPackage_signature, "(Ljava/lang/String;Ljava/util/jar/Manifest;Ljava/net/URL;)Ljava/lang/Package;") \
446 template(fileToEncodedURL_name, "fileToEncodedURL") \
447 template(fileToEncodedURL_signature, "(Ljava/io/File;)Ljava/net/URL;") \
448 template(getProtectionDomain_name, "getProtectionDomain") \
449 template(getProtectionDomain_signature, "(Ljava/security/CodeSource;)Ljava/security/ProtectionDomain;") \
450 template(java_lang_Integer_array_signature, "[Ljava/lang/Integer;") \
451 template(url_code_signer_array_void_signature, "(Ljava/net/URL;[Ljava/security/CodeSigner;)V") \
452 template(module_entry_name, "module_entry") \
453 template(resolved_references_name, "<resolved_references>") \
454 template(init_lock_name, "<init_lock>") \
455 \
456 /* name symbols needed by intrinsics */ \
457 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, template, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \
530 template(object_array_object_signature, "([Ljava/lang/Object;)Ljava/lang/Object;") \
531 template(object_object_array_object_signature, "(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;")\
532 template(exception_void_signature, "(Ljava/lang/Exception;)V") \
533 template(protectiondomain_signature, "[Ljava/security/ProtectionDomain;") \
534 template(accesscontrolcontext_signature, "Ljava/security/AccessControlContext;") \
535 template(class_protectiondomain_signature, "(Ljava/lang/Class;Ljava/security/ProtectionDomain;)V") \
536 template(thread_signature, "Ljava/lang/Thread;") \
537 template(thread_array_signature, "[Ljava/lang/Thread;") \
538 template(threadgroup_signature, "Ljava/lang/ThreadGroup;") \
539 template(threadgroup_array_signature, "[Ljava/lang/ThreadGroup;") \
540 template(class_array_signature, "[Ljava/lang/Class;") \
541 template(classloader_signature, "Ljava/lang/ClassLoader;") \
542 template(object_signature, "Ljava/lang/Object;") \
543 template(object_array_signature, "[Ljava/lang/Object;") \
544 template(class_signature, "Ljava/lang/Class;") \
545 template(string_signature, "Ljava/lang/String;") \
546 template(string_array_signature, "[Ljava/lang/String;") \
547 template(reference_signature, "Ljava/lang/ref/Reference;") \
548 template(executable_signature, "Ljava/lang/reflect/Executable;") \
549 template(module_signature, "Ljava/lang/Module;") \
550 template(module_descriptor_signature, "Ljava/lang/module/ModuleDescriptor;") \
551 template(module_descriptor_version_signature, "Ljava/lang/module/ModuleDescriptor$Version;") \
552 template(concurrenthashmap_signature, "Ljava/util/concurrent/ConcurrentHashMap;") \
553 template(String_StringBuilder_signature, "(Ljava/lang/String;)Ljava/lang/StringBuilder;") \
554 template(int_StringBuilder_signature, "(I)Ljava/lang/StringBuilder;") \
555 template(char_StringBuilder_signature, "(C)Ljava/lang/StringBuilder;") \
556 template(String_StringBuffer_signature, "(Ljava/lang/String;)Ljava/lang/StringBuffer;") \
557 template(int_StringBuffer_signature, "(I)Ljava/lang/StringBuffer;") \
558 template(char_StringBuffer_signature, "(C)Ljava/lang/StringBuffer;") \
559 template(int_String_signature, "(I)Ljava/lang/String;") \
560 template(boolean_boolean_int_signature, "(ZZ)I") \
561 /* signature symbols needed by intrinsics */ \
562 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, template, VM_ALIAS_IGNORE) \
563 \
564 /* symbol aliases needed by intrinsics */ \
565 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, do_alias) \
566 \
567 /* returned by the C1 compiler in case there's not enough memory to allocate a new symbol*/ \
568 template(dummy_symbol, "illegal symbol") \
569 \
570 /* used by ClassFormatError when class name is not known yet */ \
571 template(unknown_class_name, "<Unknown>") \
|