hotspot/src/share/vm/utilities/constantTag.cpp
changeset 24334 36096f7271f4
parent 20677 ff4fc393de4c
child 24424 2658d7834c6e
equal deleted inserted replaced
24333:c7214442139d 24334:36096f7271f4
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2014, 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.
    74     return _tag;
    74     return _tag;
    75   }
    75   }
    76 }
    76 }
    77 
    77 
    78 
    78 
       
    79 jbyte constantTag::error_value() const {
       
    80   switch (_tag) {
       
    81   case JVM_CONSTANT_UnresolvedClass:
       
    82     return JVM_CONSTANT_UnresolvedClassInError;
       
    83   case JVM_CONSTANT_MethodHandle:
       
    84     return JVM_CONSTANT_MethodHandleInError;
       
    85   case JVM_CONSTANT_MethodType:
       
    86     return JVM_CONSTANT_MethodTypeInError;
       
    87   default:
       
    88     ShouldNotReachHere();
       
    89     return JVM_CONSTANT_Invalid;
       
    90   }
       
    91 }
       
    92 
    79 const char* constantTag::internal_name() const {
    93 const char* constantTag::internal_name() const {
    80   switch (_tag) {
    94   switch (_tag) {
    81     case JVM_CONSTANT_Invalid :
    95     case JVM_CONSTANT_Invalid :
    82       return "Invalid index";
    96       return "Invalid index";
    83     case JVM_CONSTANT_Class :
    97     case JVM_CONSTANT_Class :