Mercurial > hg > graal-jvmci-8
comparison src/share/vm/ci/ciType.cpp @ 7604:f1de9dbc914e
8006109: test/java/util/AbstractSequentialList/AddAll.java fails: assert(rtype == ctype) failed: mismatched return types
Reviewed-by: kvn
author | twisti |
---|---|
date | Tue, 15 Jan 2013 12:06:18 -0800 |
parents | 070d523b96a7 |
children | de6a9e811145 |
comparison
equal
deleted
inserted
replaced
7603:d92fa52a5d03 | 7604:f1de9dbc914e |
---|---|
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 // ------------------------------------------------------------------ |