Mercurial > hg > graal-jvmci-8
comparison src/share/vm/prims/nativeLookup.cpp @ 6983:070d523b96a7
8001471: Klass::cast() does nothing
Summary: Remove function Klass::cast() and calls to it.
Reviewed-by: dholmes, coleenp
author | hseigel |
---|---|
date | Mon, 12 Nov 2012 16:15:05 -0500 |
parents | 18fb7da42534 |
children | 2cb439954abf db9981fd3124 |
comparison
equal
deleted
inserted
replaced
6981:8c413497f434 | 6983:070d523b96a7 |
---|---|
347 // we have a name for a wrapping method | 347 // we have a name for a wrapping method |
348 int wrapper_name_len = (int)strlen(wrapper_name); | 348 int wrapper_name_len = (int)strlen(wrapper_name); |
349 TempNewSymbol wrapper_symbol = SymbolTable::probe(wrapper_name, wrapper_name_len); | 349 TempNewSymbol wrapper_symbol = SymbolTable::probe(wrapper_name, wrapper_name_len); |
350 if (wrapper_symbol != NULL) { | 350 if (wrapper_symbol != NULL) { |
351 KlassHandle kh(method->method_holder()); | 351 KlassHandle kh(method->method_holder()); |
352 Method* wrapper_method = Klass::cast(kh())->lookup_method(wrapper_symbol, | 352 Method* wrapper_method = kh()->lookup_method(wrapper_symbol, |
353 method->signature()); | 353 method->signature()); |
354 if (wrapper_method != NULL && !wrapper_method->is_native()) { | 354 if (wrapper_method != NULL && !wrapper_method->is_native()) { |
355 // we found a wrapper method, use its native entry | 355 // we found a wrapper method, use its native entry |
356 method->set_is_prefixed_native(); | 356 method->set_is_prefixed_native(); |
357 return lookup_entry(wrapper_method, in_base_library, THREAD); | 357 return lookup_entry(wrapper_method, in_base_library, THREAD); |