comparison src/cpu/sparc/vm/sharedRuntime_sparc.cpp @ 6940:18fb7da42534

8000725: NPG: method_holder() and pool_holder() and pool_holder field should be InstanceKlass Summary: Change types of above methods and field to InstanceKlass and remove unneeded casts from the source files. Reviewed-by: dholmes, coleenp, zgu Contributed-by: harold.seigel@oracle.com
author coleenp
date Tue, 06 Nov 2012 15:09:37 -0500
parents 137868b7aa6f
children f0c2369fda5a
comparison
equal deleted inserted replaced
6939:c284cf4781f0 6940:18fb7da42534
2320 } 2320 }
2321 2321
2322 // Pre-load a static method's oop into O1. Used both by locking code and 2322 // Pre-load a static method's oop into O1. Used both by locking code and
2323 // the normal JNI call code. 2323 // the normal JNI call code.
2324 if (method->is_static() && !is_critical_native) { 2324 if (method->is_static() && !is_critical_native) {
2325 __ set_oop_constant(JNIHandles::make_local(Klass::cast(method->method_holder())->java_mirror()), O1); 2325 __ set_oop_constant(JNIHandles::make_local(method->method_holder()->java_mirror()), O1);
2326 2326
2327 // Now handlize the static class mirror in O1. It's known not-null. 2327 // Now handlize the static class mirror in O1. It's known not-null.
2328 __ st_ptr(O1, SP, klass_offset + STACK_BIAS); 2328 __ st_ptr(O1, SP, klass_offset + STACK_BIAS);
2329 map->set_oop(VMRegImpl::stack2reg(klass_slot_offset)); 2329 map->set_oop(VMRegImpl::stack2reg(klass_slot_offset));
2330 __ add(SP, klass_offset + STACK_BIAS, O1); 2330 __ add(SP, klass_offset + STACK_BIAS, O1);