< prev index next >

src/hotspot/share/oops/symbol.cpp

Print this page

        

@@ -198,70 +198,10 @@
     }
   }
   return str;
 }
 
-static void print_class(outputStream *os, char *class_str, int len) {
-  for (int i = 0; i < len; ++i) {
-    if (class_str[i] == '/') {
-      os->put('.');
-    } else {
-      os->put(class_str[i]);
-    }
-  }
-}
-
-static void print_array(outputStream *os, char *array_str, int len) {
-  int dimensions = 0;
-  for (int i = 0; i < len; ++i) {
-    if (array_str[i] == '[') {
-      dimensions++;
-    } else if (array_str[i] == 'L') {
-      // Expected format: L<type name>;. Skip 'L' and ';' delimiting the type name.
-      print_class(os, array_str+i+1, len-i-2);
-      break;
-    } else {
-      os->print("%s", type2name(char2type(array_str[i])));
-    }
-  }
-  for (int i = 0; i < dimensions; ++i) {
-    os->print("[]");
-  }
-}
-
-void Symbol::print_as_signature_external_return_type(outputStream *os) {
-  for (SignatureStream ss(this); !ss.is_done(); ss.next()) {
-    if (ss.at_return_type()) {
-      if (ss.is_array()) {
-        print_array(os, (char*)ss.raw_bytes(), (int)ss.raw_length());
-      } else if (ss.is_object()) {
-        // Expected format: L<type name>;. Skip 'L' and ';' delimiting the class name.
-        print_class(os, (char*)ss.raw_bytes()+1, (int)ss.raw_length()-2);
-      } else {
-        os->print("%s", type2name(ss.type()));
-      }
-    }
-  }
-}
-
-void Symbol::print_as_signature_external_parameters(outputStream *os) {
-  bool first = true;
-  for (SignatureStream ss(this); !ss.is_done(); ss.next()) {
-    if (ss.at_return_type()) break;
-    if (!first) { os->print(", "); }
-    if (ss.is_array()) {
-      print_array(os, (char*)ss.raw_bytes(), (int)ss.raw_length());
-    } else if (ss.is_object()) {
-      // Skip 'L' and ';'.
-      print_class(os, (char*)ss.raw_bytes()+1, (int)ss.raw_length()-2);
-    } else {
-      os->print("%s", type2name(ss.type()));
-    }
-    first = false;
-  }
-}
-
 // Increment refcount while checking for zero.  If the Symbol's refcount becomes zero
 // a thread could be concurrently removing the Symbol.  This is used during SymbolTable
 // lookup to avoid reviving a dead Symbol.
 bool Symbol::try_increment_refcount() {
   uint32_t found = _length_and_refcount;
< prev index next >