0N/A/*
4170N/A * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
0N/A * published by the Free Software Foundation.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1472N/A * or visit www.oracle.com if you need additional information or have any
1472N/A * questions.
0N/A *
0N/A */
0N/A
1879N/A#ifndef SHARE_VM_CLASSFILE_VMSYMBOLS_HPP
1879N/A#define SHARE_VM_CLASSFILE_VMSYMBOLS_HPP
1879N/A
2062N/A#include "oops/symbol.hpp"
2062N/A#include "memory/iterator.hpp"
3677N/A#include "trace/traceMacros.hpp"
1879N/A
2062N/A// The class vmSymbols is a name space for fast lookup of
2062N/A// symbols commonly used in the VM.
0N/A//
0N/A// Sample usage:
0N/A//
2062N/A// Symbol* obj = vmSymbols::java_lang_Object();
0N/A
0N/A
0N/A// Useful sub-macros exported by this header file:
0N/A
0N/A#define VM_SYMBOL_ENUM_NAME(name) name##_enum
0N/A#define VM_INTRINSIC_IGNORE(id, class, name, sig, flags) /*ignored*/
0N/A#define VM_SYMBOL_IGNORE(id, name) /*ignored*/
0N/A#define VM_ALIAS_IGNORE(id, id2) /*ignored*/
0N/A
0N/A
0N/A// Mapping function names to values. New entries should be added below.
0N/A
0N/A#define VM_SYMBOLS_DO(template, do_alias) \
0N/A /* commonly used class names */ \
0N/A template(java_lang_System, "java/lang/System") \
0N/A template(java_lang_Object, "java/lang/Object") \
0N/A template(java_lang_Class, "java/lang/Class") \
0N/A template(java_lang_String, "java/lang/String") \
669N/A template(java_lang_StringValue, "java/lang/StringValue") \
675N/A template(java_lang_StringCache, "java/lang/StringValue$StringCache") \
0N/A template(java_lang_Thread, "java/lang/Thread") \
0N/A template(java_lang_ThreadGroup, "java/lang/ThreadGroup") \
0N/A template(java_lang_Cloneable, "java/lang/Cloneable") \
0N/A template(java_lang_Throwable, "java/lang/Throwable") \
0N/A template(java_lang_ClassLoader, "java/lang/ClassLoader") \
0N/A template(java_lang_ClassLoader_NativeLibrary, "java/lang/ClassLoader\x024NativeLibrary") \
0N/A template(java_lang_ThreadDeath, "java/lang/ThreadDeath") \
0N/A template(java_lang_Boolean, "java/lang/Boolean") \
0N/A template(java_lang_Character, "java/lang/Character") \
17N/A template(java_lang_Character_CharacterCache, "java/lang/Character$CharacterCache") \
0N/A template(java_lang_Float, "java/lang/Float") \
0N/A template(java_lang_Double, "java/lang/Double") \
0N/A template(java_lang_Byte, "java/lang/Byte") \
17N/A template(java_lang_Byte_Cache, "java/lang/Byte$ByteCache") \
0N/A template(java_lang_Short, "java/lang/Short") \
17N/A template(java_lang_Short_ShortCache, "java/lang/Short$ShortCache") \
0N/A template(java_lang_Integer, "java/lang/Integer") \
17N/A template(java_lang_Integer_IntegerCache, "java/lang/Integer$IntegerCache") \
0N/A template(java_lang_Long, "java/lang/Long") \
17N/A template(java_lang_Long_LongCache, "java/lang/Long$LongCache") \
0N/A template(java_lang_Shutdown, "java/lang/Shutdown") \
0N/A template(java_lang_ref_Reference, "java/lang/ref/Reference") \
0N/A template(java_lang_ref_SoftReference, "java/lang/ref/SoftReference") \
0N/A template(java_lang_ref_WeakReference, "java/lang/ref/WeakReference") \
0N/A template(java_lang_ref_FinalReference, "java/lang/ref/FinalReference") \
0N/A template(java_lang_ref_PhantomReference, "java/lang/ref/PhantomReference") \
0N/A template(java_lang_ref_Finalizer, "java/lang/ref/Finalizer") \
0N/A template(java_lang_reflect_AccessibleObject, "java/lang/reflect/AccessibleObject") \
0N/A template(java_lang_reflect_Method, "java/lang/reflect/Method") \
0N/A template(java_lang_reflect_Constructor, "java/lang/reflect/Constructor") \
0N/A template(java_lang_reflect_Field, "java/lang/reflect/Field") \
0N/A template(java_lang_reflect_Array, "java/lang/reflect/Array") \
0N/A template(java_lang_StringBuffer, "java/lang/StringBuffer") \
1080N/A template(java_lang_StringBuilder, "java/lang/StringBuilder") \
0N/A template(java_lang_CharSequence, "java/lang/CharSequence") \
0N/A template(java_security_AccessControlContext, "java/security/AccessControlContext") \
0N/A template(java_security_ProtectionDomain, "java/security/ProtectionDomain") \
4564N/A template(impliesCreateAccessControlContext_name, "impliesCreateAccessControlContext") \
0N/A template(java_io_OutputStream, "java/io/OutputStream") \
0N/A template(java_io_Reader, "java/io/Reader") \
0N/A template(java_io_BufferedReader, "java/io/BufferedReader") \
0N/A template(java_io_FileInputStream, "java/io/FileInputStream") \
0N/A template(java_io_ByteArrayInputStream, "java/io/ByteArrayInputStream") \
0N/A template(java_io_Serializable, "java/io/Serializable") \
0N/A template(java_util_Arrays, "java/util/Arrays") \
0N/A template(java_util_Properties, "java/util/Properties") \
0N/A template(java_util_Vector, "java/util/Vector") \
0N/A template(java_util_AbstractList, "java/util/AbstractList") \
0N/A template(java_util_Hashtable, "java/util/Hashtable") \
18N/A template(java_util_HashMap, "java/util/HashMap") \
0N/A template(java_lang_Compiler, "java/lang/Compiler") \
0N/A template(sun_misc_Signal, "sun/misc/Signal") \
0N/A template(java_lang_AssertionStatusDirectives, "java/lang/AssertionStatusDirectives") \
0N/A template(getBootClassPathEntryForClass_name, "getBootClassPathEntryForClass") \
2014N/A template(sun_misc_PostVMInitHook, "sun/misc/PostVMInitHook") \
4056N/A template(sun_misc_Launcher_ExtClassLoader, "sun/misc/Launcher$ExtClassLoader") \
0N/A \
3847N/A /* Java runtime version access */ \
3847N/A template(sun_misc_Version, "sun/misc/Version") \
3847N/A template(java_runtime_name_name, "java_runtime_name") \
4063N/A template(java_runtime_version_name, "java_runtime_version") \
3847N/A \
0N/A /* class file format tags */ \
0N/A template(tag_source_file, "SourceFile") \
0N/A template(tag_inner_classes, "InnerClasses") \
0N/A template(tag_constant_value, "ConstantValue") \
0N/A template(tag_code, "Code") \
0N/A template(tag_exceptions, "Exceptions") \
0N/A template(tag_line_number_table, "LineNumberTable") \
0N/A template(tag_local_variable_table, "LocalVariableTable") \
0N/A template(tag_local_variable_type_table, "LocalVariableTypeTable") \
0N/A template(tag_stack_map_table, "StackMapTable") \
0N/A template(tag_synthetic, "Synthetic") \
0N/A template(tag_deprecated, "Deprecated") \
0N/A template(tag_source_debug_extension, "SourceDebugExtension") \
0N/A template(tag_signature, "Signature") \
0N/A template(tag_runtime_visible_annotations, "RuntimeVisibleAnnotations") \
0N/A template(tag_runtime_invisible_annotations, "RuntimeInvisibleAnnotations") \
0N/A template(tag_runtime_visible_parameter_annotations, "RuntimeVisibleParameterAnnotations") \
0N/A template(tag_runtime_invisible_parameter_annotations,"RuntimeInvisibleParameterAnnotations") \
0N/A template(tag_annotation_default, "AnnotationDefault") \
0N/A template(tag_enclosing_method, "EnclosingMethod") \
1918N/A template(tag_bootstrap_methods, "BootstrapMethods") \
0N/A \
0N/A /* exception klasses: at least all exceptions thrown by the VM have entries here */ \
0N/A template(java_lang_ArithmeticException, "java/lang/ArithmeticException") \
0N/A template(java_lang_ArrayIndexOutOfBoundsException, "java/lang/ArrayIndexOutOfBoundsException") \
0N/A template(java_lang_ArrayStoreException, "java/lang/ArrayStoreException") \
0N/A template(java_lang_ClassCastException, "java/lang/ClassCastException") \
0N/A template(java_lang_ClassNotFoundException, "java/lang/ClassNotFoundException") \
0N/A template(java_lang_CloneNotSupportedException, "java/lang/CloneNotSupportedException") \
0N/A template(java_lang_IllegalAccessException, "java/lang/IllegalAccessException") \
0 Error!

 

There was an error!

null

java.lang.NullPointerException