src/share/vm/classfile/javaClasses.hpp

changeset 1100
c89f86385056
parent 1014
0fbdb4381b99
child 1145
e5b0439ef4ae
     1.1 --- a/src/share/vm/classfile/javaClasses.hpp	Thu Mar 19 09:13:24 2009 -0700
     1.2 +++ b/src/share/vm/classfile/javaClasses.hpp	Fri Mar 20 23:19:36 2009 -0700
     1.3 @@ -107,6 +107,7 @@
     1.4  
     1.5    // Conversion
     1.6    static symbolHandle as_symbol(Handle java_string, TRAPS);
     1.7 +  static symbolOop as_symbol_or_null(oop java_string);
     1.8  
     1.9    // Testers
    1.10    static bool is_instance(oop obj) {
    1.11 @@ -149,6 +150,9 @@
    1.12    static oop  create_basic_type_mirror(const char* basic_type_name, BasicType type, TRAPS);
    1.13    // Conversion
    1.14    static klassOop as_klassOop(oop java_class);
    1.15 +  static BasicType as_BasicType(oop java_class, klassOop* reference_klass = NULL);
    1.16 +  static symbolOop as_signature(oop java_class, bool intern_if_not_found, TRAPS);
    1.17 +  static void print_signature(oop java_class, outputStream *st);
    1.18    // Testing
    1.19    static bool is_instance(oop obj) {
    1.20      return obj != NULL && obj->klass() == SystemDictionary::class_klass();
    1.21 @@ -668,6 +672,8 @@
    1.22    static BasicType basic_type(oop box);
    1.23    static bool is_instance(oop box)                 { return basic_type(box) != T_ILLEGAL; }
    1.24    static bool is_instance(oop box, BasicType type) { return basic_type(box) == type; }
    1.25 +  static void print(oop box, outputStream* st)     { jvalue value;  print(get_value(box, &value), &value, st); }
    1.26 +  static void print(BasicType type, jvalue* value, outputStream* st);
    1.27  
    1.28    static int value_offset_in_bytes(BasicType type) {
    1.29      return ( type == T_LONG || type == T_DOUBLE ) ? long_value_offset :

mercurial