< prev index next >

src/hotspot/share/utilities/constantTag.cpp

Print this page
@@ -32,11 +32,11 @@
  }
  
  #endif // PRODUCT
  
  BasicType constantTag::basic_type() const {
-   switch (_tag) {
+   switch (value()) {
      case JVM_CONSTANT_Integer :
        return T_INT;
      case JVM_CONSTANT_Float :
        return T_FLOAT;
      case JVM_CONSTANT_Long :

@@ -66,27 +66,27 @@
    }
  }
  
  
  jbyte constantTag::non_error_value() const {
-   switch (_tag) {
+   switch (value()) {
    case JVM_CONSTANT_UnresolvedClassInError:
      return JVM_CONSTANT_UnresolvedClass;
    case JVM_CONSTANT_MethodHandleInError:
      return JVM_CONSTANT_MethodHandle;
    case JVM_CONSTANT_MethodTypeInError:
      return JVM_CONSTANT_MethodType;
    case JVM_CONSTANT_DynamicInError:
      return JVM_CONSTANT_Dynamic;
    default:
-     return _tag;
+     return value();
    }
  }
  
  
  jbyte constantTag::error_value() const {
-   switch (_tag) {
+   switch (value()) {
    case JVM_CONSTANT_UnresolvedClass:
      return JVM_CONSTANT_UnresolvedClassInError;
    case JVM_CONSTANT_MethodHandle:
      return JVM_CONSTANT_MethodHandleInError;
    case JVM_CONSTANT_MethodType:

@@ -98,11 +98,11 @@
      return JVM_CONSTANT_Invalid;
    }
  }
  
  const char* constantTag::internal_name() const {
-   switch (_tag) {
+   switch (value()) {
      case JVM_CONSTANT_Invalid :
        return "Invalid index";
      case JVM_CONSTANT_Class :
        return "Class";
      case JVM_CONSTANT_Fieldref :
< prev index next >