equal
deleted
inserted
replaced
1934 // Pre-load a static method's oop into rsi. Used both by locking code and |
1934 // Pre-load a static method's oop into rsi. Used both by locking code and |
1935 // the normal JNI call code. |
1935 // the normal JNI call code. |
1936 if (method->is_static() && !is_critical_native) { |
1936 if (method->is_static() && !is_critical_native) { |
1937 |
1937 |
1938 // load opp into a register |
1938 // load opp into a register |
1939 __ movoop(oop_handle_reg, JNIHandles::make_local(Klass::cast(method->method_holder())->java_mirror())); |
1939 __ movoop(oop_handle_reg, JNIHandles::make_local(method->method_holder()->java_mirror())); |
1940 |
1940 |
1941 // Now handlize the static class mirror it's known not-null. |
1941 // Now handlize the static class mirror it's known not-null. |
1942 __ movptr(Address(rsp, klass_offset), oop_handle_reg); |
1942 __ movptr(Address(rsp, klass_offset), oop_handle_reg); |
1943 map->set_oop(VMRegImpl::stack2reg(klass_slot_offset)); |
1943 map->set_oop(VMRegImpl::stack2reg(klass_slot_offset)); |
1944 |
1944 |