comparison src/share/vm/ci/ciType.cpp @ 7643:3ac7d10a6572

Merge with hsx25/hotspot.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Thu, 31 Jan 2013 15:42:25 +0100
parents f1de9dbc914e
children de6a9e811145
comparison
equal deleted inserted replaced
7573:17b6a63fe7c2 7643:3ac7d10a6572
58 return this->as_klass()->is_subtype_of(type->as_klass()); 58 return this->as_klass()->is_subtype_of(type->as_klass());
59 return false; 59 return false;
60 } 60 }
61 61
62 // ------------------------------------------------------------------ 62 // ------------------------------------------------------------------
63 // ciType::name
64 //
65 // Return the name of this type
66 const char* ciType::name() {
67 if (is_primitive_type()) {
68 return type2name(basic_type());
69 } else {
70 assert(is_klass(), "must be");
71 return as_klass()->name()->as_utf8();
72 }
73 }
74
75 // ------------------------------------------------------------------
63 // ciType::print_impl 76 // ciType::print_impl
64 // 77 //
65 // Implementation of the print method. 78 // Implementation of the print method.
66 void ciType::print_impl(outputStream* st) { 79 void ciType::print_impl(outputStream* st) {
67 st->print(" type="); 80 st->print(" type=");
71 // ------------------------------------------------------------------ 84 // ------------------------------------------------------------------
72 // ciType::print_name 85 // ciType::print_name
73 // 86 //
74 // Print the name of this type 87 // Print the name of this type
75 void ciType::print_name_on(outputStream* st) { 88 void ciType::print_name_on(outputStream* st) {
76 st->print(type2name(basic_type())); 89 ResourceMark rm;
90 st->print(name());
77 } 91 }
78 92
79 93
80 94
81 // ------------------------------------------------------------------ 95 // ------------------------------------------------------------------