< prev index next >

src/hotspot/share/utilities/constantTag.hpp

Print this page




   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  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_UTILITIES_CONSTANTTAG_HPP
  26 #define SHARE_VM_UTILITIES_CONSTANTTAG_HPP
  27 
  28 #include "jvm.h"
  29 #include "memory/allocation.hpp"
  30 
  31 // constant tags in Java .class files
  32 
  33 
  34 enum {
  35   // See jvm.h for shared JVM_CONSTANT_XXX tags
  36   // NOTE: replicated in SA in vm/agent/sun/jvm/hotspot/utilities/ConstantTag.java
  37   // Hotspot specific tags
  38   JVM_CONSTANT_Invalid                  = 0,    // For bad value initialization
  39   JVM_CONSTANT_InternalMin              = 100,  // First implementation tag (aside from bad value of course)
  40   JVM_CONSTANT_UnresolvedClass          = 100,  // Temporary tag until actual use
  41   JVM_CONSTANT_ClassIndex               = 101,  // Temporary tag while constructing constant pool
  42   JVM_CONSTANT_StringIndex              = 102,  // Temporary tag while constructing constant pool
  43   JVM_CONSTANT_UnresolvedClassInError   = 103,  // Error tag due to resolution error
  44   JVM_CONSTANT_MethodHandleInError      = 104,  // Error tag due to resolution error
  45   JVM_CONSTANT_MethodTypeInError        = 105,  // Error tag due to resolution error
  46   JVM_CONSTANT_DynamicInError           = 106,  // Error tag due to resolution error
  47   JVM_CONSTANT_InternalMax              = 106   // Last implementation tag
  48 };
  49 




   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  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_UTILITIES_CONSTANTTAG_HPP
  26 #define SHARE_VM_UTILITIES_CONSTANTTAG_HPP
  27 
  28 #include "jvm.h"
  29 #include "utilities/globalDefinitions.hpp"
  30 
  31 // constant tags in Java .class files
  32 
  33 
  34 enum {
  35   // See jvm.h for shared JVM_CONSTANT_XXX tags
  36   // NOTE: replicated in SA in vm/agent/sun/jvm/hotspot/utilities/ConstantTag.java
  37   // Hotspot specific tags
  38   JVM_CONSTANT_Invalid                  = 0,    // For bad value initialization
  39   JVM_CONSTANT_InternalMin              = 100,  // First implementation tag (aside from bad value of course)
  40   JVM_CONSTANT_UnresolvedClass          = 100,  // Temporary tag until actual use
  41   JVM_CONSTANT_ClassIndex               = 101,  // Temporary tag while constructing constant pool
  42   JVM_CONSTANT_StringIndex              = 102,  // Temporary tag while constructing constant pool
  43   JVM_CONSTANT_UnresolvedClassInError   = 103,  // Error tag due to resolution error
  44   JVM_CONSTANT_MethodHandleInError      = 104,  // Error tag due to resolution error
  45   JVM_CONSTANT_MethodTypeInError        = 105,  // Error tag due to resolution error
  46   JVM_CONSTANT_DynamicInError           = 106,  // Error tag due to resolution error
  47   JVM_CONSTANT_InternalMax              = 106   // Last implementation tag
  48 };
  49 


< prev index next >