hotspot/src/share/vm/prims/methodHandles.cpp
changeset 21107 aa84c4d14e6c
parent 20391 7b146c5ebb18
child 22250 fe165bf76695
equal deleted inserted replaced
21106:37ad7041ff83 21107:aa84c4d14e6c
  1192   if (vmtarget == NULL) {
  1192   if (vmtarget == NULL) {
  1193     x = NULL;
  1193     x = NULL;
  1194   } else if (vmtarget->is_klass()) {
  1194   } else if (vmtarget->is_klass()) {
  1195     x = ((Klass*) vmtarget)->java_mirror();
  1195     x = ((Klass*) vmtarget)->java_mirror();
  1196   } else if (vmtarget->is_method()) {
  1196   } else if (vmtarget->is_method()) {
  1197     Handle mname2 = MethodHandles::new_MemberName(CHECK_NULL);
  1197     x = mname();
  1198     CallInfo info((Method*)vmtarget);
       
  1199     x = MethodHandles::init_method_MemberName(mname2, info);
       
  1200   }
  1198   }
  1201   result->obj_at_put(1, x);
  1199   result->obj_at_put(1, x);
  1202   return JNIHandles::make_local(env, result());
  1200   return JNIHandles::make_local(env, result());
  1203 }
  1201 }
  1204 JVM_END
  1202 JVM_END