Mercurial > hg > graal-jvmci-8
comparison src/share/vm/classfile/javaClasses.hpp @ 665:c89f86385056
6814659: separable cleanups and subroutines for 6655638
Summary: preparatory but separable changes for method handles
Reviewed-by: kvn, never
author | jrose |
---|---|
date | Fri, 20 Mar 2009 23:19:36 -0700 |
parents | 0fbdb4381b99 |
children | e5b0439ef4ae |
comparison
equal
deleted
inserted
replaced
647:bd441136a5ce | 665:c89f86385056 |
---|---|
105 static Handle externalize_classname(Handle java_string, TRAPS) { return char_converter(java_string, '/', '.', THREAD); } | 105 static Handle externalize_classname(Handle java_string, TRAPS) { return char_converter(java_string, '/', '.', THREAD); } |
106 static Handle internalize_classname(Handle java_string, TRAPS) { return char_converter(java_string, '.', '/', THREAD); } | 106 static Handle internalize_classname(Handle java_string, TRAPS) { return char_converter(java_string, '.', '/', THREAD); } |
107 | 107 |
108 // Conversion | 108 // Conversion |
109 static symbolHandle as_symbol(Handle java_string, TRAPS); | 109 static symbolHandle as_symbol(Handle java_string, TRAPS); |
110 static symbolOop as_symbol_or_null(oop java_string); | |
110 | 111 |
111 // Testers | 112 // Testers |
112 static bool is_instance(oop obj) { | 113 static bool is_instance(oop obj) { |
113 return obj != NULL && obj->klass() == SystemDictionary::string_klass(); | 114 return obj != NULL && obj->klass() == SystemDictionary::string_klass(); |
114 } | 115 } |
147 // Instance creation | 148 // Instance creation |
148 static oop create_mirror(KlassHandle k, TRAPS); | 149 static oop create_mirror(KlassHandle k, TRAPS); |
149 static oop create_basic_type_mirror(const char* basic_type_name, BasicType type, TRAPS); | 150 static oop create_basic_type_mirror(const char* basic_type_name, BasicType type, TRAPS); |
150 // Conversion | 151 // Conversion |
151 static klassOop as_klassOop(oop java_class); | 152 static klassOop as_klassOop(oop java_class); |
153 static BasicType as_BasicType(oop java_class, klassOop* reference_klass = NULL); | |
154 static symbolOop as_signature(oop java_class, bool intern_if_not_found, TRAPS); | |
155 static void print_signature(oop java_class, outputStream *st); | |
152 // Testing | 156 // Testing |
153 static bool is_instance(oop obj) { | 157 static bool is_instance(oop obj) { |
154 return obj != NULL && obj->klass() == SystemDictionary::class_klass(); | 158 return obj != NULL && obj->klass() == SystemDictionary::class_klass(); |
155 } | 159 } |
156 static bool is_primitive(oop java_class); | 160 static bool is_primitive(oop java_class); |
666 static BasicType get_value(oop box, jvalue* value); | 670 static BasicType get_value(oop box, jvalue* value); |
667 static BasicType set_value(oop box, jvalue* value); | 671 static BasicType set_value(oop box, jvalue* value); |
668 static BasicType basic_type(oop box); | 672 static BasicType basic_type(oop box); |
669 static bool is_instance(oop box) { return basic_type(box) != T_ILLEGAL; } | 673 static bool is_instance(oop box) { return basic_type(box) != T_ILLEGAL; } |
670 static bool is_instance(oop box, BasicType type) { return basic_type(box) == type; } | 674 static bool is_instance(oop box, BasicType type) { return basic_type(box) == type; } |
675 static void print(oop box, outputStream* st) { jvalue value; print(get_value(box, &value), &value, st); } | |
676 static void print(BasicType type, jvalue* value, outputStream* st); | |
671 | 677 |
672 static int value_offset_in_bytes(BasicType type) { | 678 static int value_offset_in_bytes(BasicType type) { |
673 return ( type == T_LONG || type == T_DOUBLE ) ? long_value_offset : | 679 return ( type == T_LONG || type == T_DOUBLE ) ? long_value_offset : |
674 value_offset; | 680 value_offset; |
675 } | 681 } |