35 // Sample usage:
36 //
37 // Symbol* obj = vmSymbols::java_lang_Object();
38
39
40 // Useful sub-macros exported by this header file:
41
42 #define VM_SYMBOL_ENUM_NAME(name) name##_enum
43 #define VM_INTRINSIC_IGNORE(id, class, name, sig, flags) /*ignored*/
44 #define VM_SYMBOL_IGNORE(id, name) /*ignored*/
45 #define VM_ALIAS_IGNORE(id, id2) /*ignored*/
46
47
48 // Mapping function names to values. New entries should be added below.
49
50 #define VM_SYMBOLS_DO(template, do_alias) \
51 /* commonly used class names */ \
52 template(java_lang_System, "java/lang/System") \
53 template(java_lang_Object, "java/lang/Object") \
54 template(java_lang_Class, "java/lang/Class") \
55 template(java_lang_String, "java/lang/String") \
56 template(java_lang_Thread, "java/lang/Thread") \
57 template(java_lang_ThreadGroup, "java/lang/ThreadGroup") \
58 template(java_lang_Cloneable, "java/lang/Cloneable") \
59 template(java_lang_Throwable, "java/lang/Throwable") \
60 template(java_lang_ClassLoader, "java/lang/ClassLoader") \
61 template(java_lang_ClassLoader_NativeLibrary, "java/lang/ClassLoader\x024NativeLibrary") \
62 template(java_lang_ThreadDeath, "java/lang/ThreadDeath") \
63 template(java_lang_Boolean, "java/lang/Boolean") \
64 template(java_lang_Character, "java/lang/Character") \
65 template(java_lang_Character_CharacterCache, "java/lang/Character$CharacterCache") \
66 template(java_lang_Float, "java/lang/Float") \
67 template(java_lang_Double, "java/lang/Double") \
68 template(java_lang_Byte, "java/lang/Byte") \
69 template(java_lang_Byte_ByteCache, "java/lang/Byte$ByteCache") \
70 template(java_lang_Short, "java/lang/Short") \
71 template(java_lang_Short_ShortCache, "java/lang/Short$ShortCache") \
72 template(java_lang_Integer, "java/lang/Integer") \
73 template(java_lang_Integer_IntegerCache, "java/lang/Integer$IntegerCache") \
74 template(java_lang_Long, "java/lang/Long") \
90 template(java_lang_StringBuilder, "java/lang/StringBuilder") \
91 template(java_lang_CharSequence, "java/lang/CharSequence") \
92 template(java_lang_SecurityManager, "java/lang/SecurityManager") \
93 template(java_security_AccessControlContext, "java/security/AccessControlContext") \
94 template(java_security_CodeSource, "java/security/CodeSource") \
95 template(java_security_ProtectionDomain, "java/security/ProtectionDomain") \
96 template(java_security_SecureClassLoader, "java/security/SecureClassLoader") \
97 template(java_net_URLClassLoader, "java/net/URLClassLoader") \
98 template(java_net_URL, "java/net/URL") \
99 template(java_util_jar_Manifest, "java/util/jar/Manifest") \
100 template(impliesCreateAccessControlContext_name, "impliesCreateAccessControlContext") \
101 template(java_io_OutputStream, "java/io/OutputStream") \
102 template(java_io_Reader, "java/io/Reader") \
103 template(java_io_BufferedReader, "java/io/BufferedReader") \
104 template(java_io_File, "java/io/File") \
105 template(java_io_FileInputStream, "java/io/FileInputStream") \
106 template(java_io_ByteArrayInputStream, "java/io/ByteArrayInputStream") \
107 template(java_io_Serializable, "java/io/Serializable") \
108 template(java_util_Arrays, "java/util/Arrays") \
109 template(java_util_Properties, "java/util/Properties") \
110 template(java_util_Vector, "java/util/Vector") \
111 template(java_util_AbstractList, "java/util/AbstractList") \
112 template(java_util_Hashtable, "java/util/Hashtable") \
113 template(java_lang_Compiler, "java/lang/Compiler") \
114 template(sun_misc_Signal, "sun/misc/Signal") \
115 template(sun_misc_Launcher, "sun/misc/Launcher") \
116 template(java_lang_AssertionStatusDirectives, "java/lang/AssertionStatusDirectives") \
117 template(getBootClassPathEntryForClass_name, "getBootClassPathEntryForClass") \
118 template(sun_misc_PostVMInitHook, "sun/misc/PostVMInitHook") \
119 template(sun_misc_Launcher_ExtClassLoader, "sun/misc/Launcher$ExtClassLoader") \
120 \
121 /* Java runtime version access */ \
122 template(sun_misc_Version, "sun/misc/Version") \
123 template(java_runtime_name_name, "java_runtime_name") \
124 template(java_runtime_version_name, "java_runtime_version") \
125 \
126 /* class file format tags */ \
127 template(tag_source_file, "SourceFile") \
128 template(tag_inner_classes, "InnerClasses") \
129 template(tag_constant_value, "ConstantValue") \
130 template(tag_code, "Code") \
|
35 // Sample usage:
36 //
37 // Symbol* obj = vmSymbols::java_lang_Object();
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_Class_ClassData, "java/lang/Class$ClassData") \
56 template(java_lang_String, "java/lang/String") \
57 template(java_lang_Thread, "java/lang/Thread") \
58 template(java_lang_ThreadGroup, "java/lang/ThreadGroup") \
59 template(java_lang_Cloneable, "java/lang/Cloneable") \
60 template(java_lang_Throwable, "java/lang/Throwable") \
61 template(java_lang_ClassLoader, "java/lang/ClassLoader") \
62 template(java_lang_ClassLoader_NativeLibrary, "java/lang/ClassLoader\x024NativeLibrary") \
63 template(java_lang_ThreadDeath, "java/lang/ThreadDeath") \
64 template(java_lang_Boolean, "java/lang/Boolean") \
65 template(java_lang_Character, "java/lang/Character") \
66 template(java_lang_Character_CharacterCache, "java/lang/Character$CharacterCache") \
67 template(java_lang_Float, "java/lang/Float") \
68 template(java_lang_Double, "java/lang/Double") \
69 template(java_lang_Byte, "java/lang/Byte") \
70 template(java_lang_Byte_ByteCache, "java/lang/Byte$ByteCache") \
71 template(java_lang_Short, "java/lang/Short") \
72 template(java_lang_Short_ShortCache, "java/lang/Short$ShortCache") \
73 template(java_lang_Integer, "java/lang/Integer") \
74 template(java_lang_Integer_IntegerCache, "java/lang/Integer$IntegerCache") \
75 template(java_lang_Long, "java/lang/Long") \
91 template(java_lang_StringBuilder, "java/lang/StringBuilder") \
92 template(java_lang_CharSequence, "java/lang/CharSequence") \
93 template(java_lang_SecurityManager, "java/lang/SecurityManager") \
94 template(java_security_AccessControlContext, "java/security/AccessControlContext") \
95 template(java_security_CodeSource, "java/security/CodeSource") \
96 template(java_security_ProtectionDomain, "java/security/ProtectionDomain") \
97 template(java_security_SecureClassLoader, "java/security/SecureClassLoader") \
98 template(java_net_URLClassLoader, "java/net/URLClassLoader") \
99 template(java_net_URL, "java/net/URL") \
100 template(java_util_jar_Manifest, "java/util/jar/Manifest") \
101 template(impliesCreateAccessControlContext_name, "impliesCreateAccessControlContext") \
102 template(java_io_OutputStream, "java/io/OutputStream") \
103 template(java_io_Reader, "java/io/Reader") \
104 template(java_io_BufferedReader, "java/io/BufferedReader") \
105 template(java_io_File, "java/io/File") \
106 template(java_io_FileInputStream, "java/io/FileInputStream") \
107 template(java_io_ByteArrayInputStream, "java/io/ByteArrayInputStream") \
108 template(java_io_Serializable, "java/io/Serializable") \
109 template(java_util_Arrays, "java/util/Arrays") \
110 template(java_util_Properties, "java/util/Properties") \
111 template(java_util_AbstractList, "java/util/AbstractList") \
112 template(java_util_Hashtable, "java/util/Hashtable") \
113 template(java_lang_Compiler, "java/lang/Compiler") \
114 template(sun_misc_Signal, "sun/misc/Signal") \
115 template(sun_misc_Launcher, "sun/misc/Launcher") \
116 template(java_lang_AssertionStatusDirectives, "java/lang/AssertionStatusDirectives") \
117 template(getBootClassPathEntryForClass_name, "getBootClassPathEntryForClass") \
118 template(sun_misc_PostVMInitHook, "sun/misc/PostVMInitHook") \
119 template(sun_misc_Launcher_ExtClassLoader, "sun/misc/Launcher$ExtClassLoader") \
120 \
121 /* Java runtime version access */ \
122 template(sun_misc_Version, "sun/misc/Version") \
123 template(java_runtime_name_name, "java_runtime_name") \
124 template(java_runtime_version_name, "java_runtime_version") \
125 \
126 /* class file format tags */ \
127 template(tag_source_file, "SourceFile") \
128 template(tag_inner_classes, "InnerClasses") \
129 template(tag_constant_value, "ConstantValue") \
130 template(tag_code, "Code") \
|