src/share/vm/utilities/constantTag.cpp

changeset 5889
28ca974cc21a
parent 4643
f16e75e0cf11
child 6680
78bbf4d43a14
     1.1 --- a/src/share/vm/utilities/constantTag.cpp	Fri Oct 11 13:48:02 2013 +0200
     1.2 +++ b/src/share/vm/utilities/constantTag.cpp	Fri Oct 11 11:23:49 2013 -0400
     1.3 @@ -51,7 +51,9 @@
     1.4      case JVM_CONSTANT_ClassIndex :
     1.5      case JVM_CONSTANT_StringIndex :
     1.6      case JVM_CONSTANT_MethodHandle :
     1.7 +    case JVM_CONSTANT_MethodHandleInError :
     1.8      case JVM_CONSTANT_MethodType :
     1.9 +    case JVM_CONSTANT_MethodTypeInError :
    1.10        return T_OBJECT;
    1.11      default:
    1.12        ShouldNotReachHere();
    1.13 @@ -60,6 +62,19 @@
    1.14  }
    1.15  
    1.16  
    1.17 +jbyte constantTag::non_error_value() const {
    1.18 +  switch (_tag) {
    1.19 +  case JVM_CONSTANT_UnresolvedClassInError:
    1.20 +    return JVM_CONSTANT_UnresolvedClass;
    1.21 +  case JVM_CONSTANT_MethodHandleInError:
    1.22 +    return JVM_CONSTANT_MethodHandle;
    1.23 +  case JVM_CONSTANT_MethodTypeInError:
    1.24 +    return JVM_CONSTANT_MethodType;
    1.25 +  default:
    1.26 +    return _tag;
    1.27 +  }
    1.28 +}
    1.29 +
    1.30  
    1.31  const char* constantTag::internal_name() const {
    1.32    switch (_tag) {

mercurial