Mercurial > hg > graal-jvmci-8
comparison src/share/vm/graal/graalEnv.cpp @ 6989:2afd99933ae6
Remove Klass::cast from graalEnv
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Mon, 19 Nov 2012 15:42:58 +0100 |
parents | e522a00b91aa |
children | bf2ea3ed3bce |
comparison
equal
deleted
inserted
replaced
6988:2cb439954abf | 6989:2afd99933ae6 |
---|---|
135 if (found_klass.is_null() && !cpool.is_null() && cpool->has_preresolution()) { | 135 if (found_klass.is_null() && !cpool.is_null() && cpool->has_preresolution()) { |
136 // Look inside the constant pool for pre-resolved class entries. | 136 // Look inside the constant pool for pre-resolved class entries. |
137 for (int i = cpool->length() - 1; i >= 1; i--) { | 137 for (int i = cpool->length() - 1; i >= 1; i--) { |
138 if (cpool->tag_at(i).is_klass()) { | 138 if (cpool->tag_at(i).is_klass()) { |
139 Klass* kls = cpool->resolved_klass_at(i); | 139 Klass* kls = cpool->resolved_klass_at(i); |
140 if (Klass::cast(kls)->name() == sym) { | 140 if (kls->name() == sym) { |
141 return kls; | 141 return kls; |
142 } | 142 } |
143 } | 143 } |
144 } | 144 } |
145 } | 145 } |