Lines Matching refs:mh
66 MethodHandle mh = SimpleMethodHandle.make(srcType, form);
68 mh = mh.bindTo(arrayClass);
70 mh = mh.asType(ArrayAccessor.correctType(arrayClass, isSetter));
71 return mh;
373 MethodHandle mh = super.viewAsType(newType);
375 MethodType type = mh.type();
377 return mh.asVarargsCollector(type.parameterType(arity-1));
516 // Incoming LF args to copy are: [ (mh) headArgs collectArgs tailArgs ].
761 MethodHandle mh = THROW_EXCEPTION;
762 if (mh != null) return mh;
764 mh
770 THROW_EXCEPTION = mh;
771 return mh;
780 MethodHandle mh = FAKE_METHOD_HANDLE_INVOKE;
781 if (mh != null) return mh;
782 mh = throwException(type.insertParameterTypes(0, UnsupportedOperationException.class));
783 mh = mh.bindTo(new UnsupportedOperationException("cannot reflectively invoke MethodHandle"));
784 FAKE_METHOD_HANDLE_INVOKE = mh;
785 return mh;
797 MethodHandle bindCaller(MethodHandle mh, Class<?> hostClass) {
798 return BindCaller.bindCaller(mh, hostClass);
805 MethodHandle bindCaller(MethodHandle mh, Class<?> hostClass) {
814 // For simplicity, convert mh to a varargs-like method.
815 MethodHandle vamh = prepareForInvoker(mh);
818 return restoreToType(bccInvoker.bindTo(vamh), mh.type());
862 // Adapt mh so that it can be called directly from an injected invoker:
863 private static MethodHandle prepareForInvoker(MethodHandle mh) {
864 mh = mh.asFixedArity();
865 MethodType mt = mh.type();
867 MethodHandle vamh = mh.asType(mt.generic());