Searched refs:changeReturnType (Results 1 - 25 of 48) sorted by relevance

12

/openjdk10/nashorn/src/jdk.dynalink/share/classes/jdk/dynalink/linker/
H A DLinkerServices.java146 fromType : fromType.changeReturnType(handleReturnType));
/openjdk10/jdk/test/java/lang/invoke/
H A DThrowExceptionsTest.java53 MethodHandle mh1 = mh.asType(mh.type().changeReturnType(void.class));
62 MethodHandle callee1 = callee.asType(callee.type().changeReturnType(void.class));
73 MethodHandle callee1 = callee.asType(callee.type().changeReturnType(void.class));
/openjdk10/nashorn/src/jdk.dynalink/share/classes/jdk/dynalink/linker/support/
H A DGuards.java225 type.parameterCount()).changeReturnType(boolean.class);
236 type.changeReturnType(Boolean.TYPE), new int[] { pos });
336 type.changeReturnType(Boolean.TYPE));
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/
H A DOptimisticReturnFilters.java78 ENSURE_INT[VOID_TYPE_INDEX].asType(ENSURE_INT[VOID_TYPE_INDEX].type().changeReturnType(double.class)),
79 ENSURE_INT[BOOLEAN_TYPE_INDEX].asType(ENSURE_INT[BOOLEAN_TYPE_INDEX].type().changeReturnType(double.class)),
80 ENSURE_INT[CHAR_TYPE_INDEX].asType(ENSURE_INT[CHAR_TYPE_INDEX].type().changeReturnType(double.class)),
H A DWithObject.java255 linkType.changeReturnType(
290 changeReturnType(receiverType));
297 return MH.filterArguments(mh, 0, receiverFilter.asType(receiverFilter.type().changeReturnType(mh.type().parameterType(0))));
H A DCompiledFunction.java258 final MethodHandle returnsObject = MH.asType(swapped, swapped.type().changeReturnType(Object.class));
706 inv = changeReturnType(inv, callSiteReturnType);
715 inv = changeReturnType(inv, callSiteReturnType);
720 final MethodHandle typedHandleRewriteException = changeReturnType(handleRewriteException, inv.type().returnType());
730 private static MethodHandle changeReturnType(final MethodHandle mh, final Class<?> newReturnType) { method in class:CompiledFunction
731 return Bootstrap.getLinkerServices().asType(mh, mh.type().changeReturnType(newReturnType));
876 invoker = newInvoker.asType(type.changeReturnType(newInvoker.type().returnType()));
897 changeReturnType(
H A DFindProperty.java135 superGetter = MH.filterArguments(superGetter, 0, wrapFilter.asType(wrapFilter.type().changeReturnType(superGetter.type().parameterType(0))));
H A DGlobalConstants.java387 final MethodHandle invalidator = MH.asType(boundInvalidator, boundInvalidator.type().changeParameterType(0, receiverType).changeReturnType(receiverType));
462 mh = MH.asType(cmh, cmh.type().changeReturnType(retType));
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/arrays/
H A DContinuousArrayData.java183 mh = MH.asType(mh, mh.type().changeReturnType(returnType).changeParameterType(0, clazz));
243 getElement = MH.filterArguments(getElement, 0, MH.asType(getArray, getArray.type().changeReturnType(clazz)));
274 getArray = MH.asType(getArray, getArray.type().changeReturnType(getClass()));
/openjdk10/nashorn/src/jdk.dynalink/share/classes/jdk/dynalink/beans/
H A DAbstractJavaLinker.java457 assert handler.type().changeReturnType(type.returnType()).equals(type);
560 final MethodType type = origType.returnType() == void.class ? origType : origType.changeReturnType(Object.class);
580 final MethodHandle typedGetter = linkerServices.asType(boundGetter, type.changeReturnType(
647 final MethodType type = callSiteDescriptor.getMethodType().changeReturnType(Object.class);
658 final MethodHandle typedGetter = linkerServices.asType(getPropertyGetterHandle, type.changeReturnType(
684 nextType.changeReturnType(Object.class)), 0, AnnotatedDynamicMethod.class);
753 return req.getDescriptor().getMethodType().changeReturnType(Object.class);
779 assert nextComponentInvocation.type().changeReturnType(type.returnType()).equals(type);
787 nextCombinedInvocation.asType(nextCombinedInvocation.type().changeReturnType(Object.class))),
829 m1.asType(type1.changeReturnType(commonRetTyp
[all...]
H A DOverloadedMethod.java125 this.callSiteType = callSiteType.changeReturnType(commonRetType);
148 callSiteType.changeReturnType(MethodHandle.class));
H A DSingleDynamicMethod.java245 MethodType.genericMethodType(fixParamsLen).parameterList()).asType(callSiteType.changeReturnType(boolean.class));
H A DStaticClassLinker.java135 boundArrayCtor.asType(boundArrayCtor.type().changeReturnType(clazz))), clazz, "<init>");
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/linker/
H A DPrimitiveLookup.java147 method = MH.filterArguments(method, 0, MH.asType(wrapFilter, wrapType.changeReturnType(receiverType)));
158 MethodHandle filter = MH.asType(wrapFilter, wrapFilter.type().changeReturnType(ScriptObject.class));
H A DJavaArgumentConverters.java266 CONVERTERS.put(primitive, MH.explicitCastArguments(JSType.TO_NUMBER.methodHandle(), JSType.TO_NUMBER.methodHandle().type().changeReturnType(primitive)));
272 CONVERTERS.put(primitive, MH.explicitCastArguments(TO_LONG_PRIMITIVE, TO_LONG_PRIMITIVE.type().changeReturnType(primitive)));
H A DLinkerCallSite.java131 return MH.asType(missCounterWithDesc, missCounterWithDesc.type().changeParameterType(0, type).changeReturnType(type));
366 return MH.foldArguments(relink, MH.asType(MH.asCollector(MH.insertArguments(TRACEMISS, 0, this, "MISS " + getScriptLocation() + " "), Object[].class, type.parameterCount()), type.changeReturnType(void.class)));
H A DNashornLinker.java245 return MH.asType(typeBoundConverter, typeBoundConverter.type().changeReturnType(type));
343 return mh.asType(mh.type().changeReturnType(nrtype));
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/
H A DObjectClassGenerator.java517 final MethodHandle mh = MH.asType(sameTypeGetter, sameTypeGetter.type().changeReturnType(Object.class));
536 return MH.explicitCastArguments(primitiveGetter, primitiveGetter.type().changeReturnType(int.class));
572 getter.type().changeReturnType(type));
587 return MH.asType(tgetter, tgetter.type().changeReturnType(type));
618 objectGetter.type().changeReturnType(type));
636 return MH.asType(tgetter, tgetterType.changeReturnType(type));
646 return MH.asType(tgetter, tgetterType.changeReturnType(Object.class));
/openjdk10/jdk/src/java.base/share/classes/java/lang/invoke/
H A DVarForm.java107 table[i] = mt.changeReturnType(void.class);
H A DMethodHandleProxies.java177 checkTarget = checkTarget.asType(checkTarget.type().changeReturnType(Object.class));
H A DMethodHandleImpl.java722 assert(test.type().equals(type.changeReturnType(boolean.class)) && fallback.type().equals(type));
931 MethodType testType = basicType.changeReturnType(boolean.class).basicType();
1006 MethodType collectArgsType = basicType.changeReturnType(Object.class);
1036 MethodType varargsType = type.changeReturnType(Object[].class);
1407 .changeReturnType(rtype)
1818 MethodType varargsType = type.changeReturnType(Object[].class);
1894 MethodType collectArgsType = basicType.changeReturnType(Object.class);
2063 MethodType varargsType = type.changeReturnType(Object[].class);
2131 MethodType collectArgsType = basicType.changeReturnType(Object.class);
H A DInvokerBytecodeGenerator.java1155 .changeReturnType(returnType);
1270 .changeReturnType(returnType);
1425 .changeReturnType(returnType);
1427 MethodType predType = loopHandleType.changeReturnType(boolean.class);
1449 MethodType cInitType = loopType.changeReturnType(loopClauseTypes[c].basicTypeClass());
1464 MethodType stepType = loopHandleType.changeReturnType(loopClauseTypes[c].basicTypeClass());
/openjdk10/nashorn/src/jdk.dynalink/share/classes/jdk/dynalink/
H A DDynamicLinker.java245 type.changeReturnType(MethodHandle.class)));
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/lookup/
H A DLookup.java221 return MH.explicitCastArguments(mh, mh.type().changeReturnType(type));
/openjdk10/jdk/test/java/util/Arrays/
H A DArraysEqCmpTest.java120 eqt.changeReturnType(int.class));
122 eqrt.changeReturnType(int.class));
125 eqt.changeReturnType(int.class));
127 eqrt.changeReturnType(int.class));
153 eqt.changeReturnType(int.class));
155 eqrt.changeReturnType(int.class));
332 eqc = l.findStatic(Arrays.class, "equals", cmpt.changeReturnType(boolean.class));
333 eqcr = l.findStatic(Arrays.class, "equals", cmprt.changeReturnType(boolean.class));

Completed in 294 milliseconds

12