Mercurial > hg > truffle
comparison src/cpu/x86/vm/sharedRuntime_x86_64.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 | e522a00b91aa cd3d6a6b95d9 |
comparison
equal
deleted
inserted
replaced
6939:c284cf4781f0 | 6940:18fb7da42534 |
---|---|
2177 // Pre-load a static method's oop into r14. Used both by locking code and | 2177 // Pre-load a static method's oop into r14. Used both by locking code and |
2178 // the normal JNI call code. | 2178 // the normal JNI call code. |
2179 if (method->is_static() && !is_critical_native) { | 2179 if (method->is_static() && !is_critical_native) { |
2180 | 2180 |
2181 // load oop into a register | 2181 // load oop into a register |
2182 __ movoop(oop_handle_reg, JNIHandles::make_local(Klass::cast(method->method_holder())->java_mirror())); | 2182 __ movoop(oop_handle_reg, JNIHandles::make_local(method->method_holder()->java_mirror())); |
2183 | 2183 |
2184 // Now handlize the static class mirror it's known not-null. | 2184 // Now handlize the static class mirror it's known not-null. |
2185 __ movptr(Address(rsp, klass_offset), oop_handle_reg); | 2185 __ movptr(Address(rsp, klass_offset), oop_handle_reg); |
2186 map->set_oop(VMRegImpl::stack2reg(klass_slot_offset)); | 2186 map->set_oop(VMRegImpl::stack2reg(klass_slot_offset)); |
2187 | 2187 |