Searched refs:ptypes (Results 1 - 25 of 38) sorted by relevance

12

/openjdk10/jdk/src/java.base/share/classes/java/lang/invoke/
H A DMethodType.java97 // The rtype and ptypes fields define the structural identity of the method type:
99 private final @Stable Class<?>[] ptypes; field in class:MethodType
110 private MethodType(Class<?> rtype, Class<?>[] ptypes, boolean trusted) { argument
112 checkPtypes(ptypes);
115 this.ptypes = trusted ? ptypes : Arrays.copyOf(ptypes, ptypes.length);
124 private MethodType(Class<?>[] ptypes, Class<?> rtype) { argument
126 this.ptypes
131 /*trusted*/ Class<?>[] ptypes() { return ptypes; } method in class:MethodType
174 checkPtypes(Class<?>[] ptypes) argument
212 methodType(Class<?> rtype, Class<?>[] ptypes) argument
226 methodType(Class<?> rtype, List<Class<?>> ptypes) argument
231 listToArray(List<Class<?>> ptypes) argument
249 methodType(Class<?> rtype, Class<?> ptype0, Class<?>... ptypes) argument
295 methodType(Class<?> rtype, MethodType ptypes) argument
307 makeImpl(Class<?> rtype, Class<?>[] ptypes, boolean trusted) argument
1230 MethodType_init(Class<?> rtype, Class<?>[] ptypes) argument
[all...]
H A DMethodTypeForm.java160 Class<?>[] ptypes = erasedType.ptypes();
161 int ptypeCount = ptypes.length;
170 Class<?>[] epts = ptypes;
343 Class<?>[] ptypes = mt.ptypes();
344 Class<?>[] ptc = MethodTypeForm.canonicalizeAll(ptypes, howArgs);
353 if (ptc == null) ptc = ptypes;
H A DStringConcatFactory.java651 Class<?>[] ptypes = null;
657 if (ptypes == null) {
658 ptypes = args.parameterArray();
660 ptypes[i] = Object.class;
664 return (ptypes != null)
665 ? MethodType.methodType(args.returnType(), ptypes)
1244 Class<?>[] ptypes = mt.parameterArray();
1245 MethodHandle[] filters = new MethodHandle[ptypes.length];
1246 for (int i = 0; i < ptypes.length; i++) {
1254 filter = Stringifiers.forMost(ptypes[
1753 lookupStatic(Lookup lookup, Class<?> refc, String name, Class<?> rtype, Class<?>... ptypes) argument
1761 lookupVirtual(Lookup lookup, Class<?> refc, String name, Class<?> rtype, Class<?>... ptypes) argument
1769 lookupConstructor(Lookup lookup, Class<?> refc, Class<?> ptypes) argument
[all...]
H A DBoundMethodHandle.java839 Class<?> ptypes[] = new Class<?>[length + 2];
840 ptypes[0] = MethodType.class;
841 ptypes[1] = LambdaForm.class;
843 ptypes[i + 2] = BasicType.basicType(types.charAt(i)).basicTypeClass();
845 return MethodType.makeImpl(BoundMethodHandle.class, ptypes, true);
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/linker/
H A DInvokeByName.java82 * @param ptypes the parameter types of the function.
84 public InvokeByName(final String name, final Class<?> targetClass, final Class<?> rtype, final Class<?>... ptypes) { argument
89 final int plength = ptypes.length;
96 System.arraycopy(ptypes, 0, finalPtypes, 2, plength);
H A DBootstrap.java347 * @param ptypes the parameter types for the operation
350 public static MethodHandle createDynamicInvoker(final String name, final int flags, final Class<?> rtype, final Class<?>... ptypes) { argument
351 return bootstrap(MethodHandles.publicLookup(), name, MethodType.methodType(rtype, ptypes), flags).dynamicInvoker();
358 * @param ptypes the parameter types for the operation
361 public static MethodHandle createDynamicCallInvoker(final Class<?> rtype, final Class<?>... ptypes) { argument
362 return createDynamicInvoker("", NashornCallSiteDescriptor.CALL, rtype, ptypes);
/openjdk10/jdk/test/java/lang/invoke/
H A DTestCatchExceptionWithVarargs.java85 List<Class<?>> ptypes = new LinkedList<>();
86 ptypes.add(Object[].class);
90 ptypes.add(0, Object.class);
93 MethodType.methodType(Object.class, ptypes));
95 MethodType.methodType(Object.class, ptypes));
108 Object o = gwc2.asSpreader(Object[].class, ptypes.size() - 1)
H A DPrivateInvokeTest.java104 private static Method getMethod(Class<?> defc, String name, Class<?>... ptypes) { argument
106 return defc.getDeclaredMethod(name, ptypes);
110 return defc.getMethod(name, ptypes);
226 private Object[] makeArguments(Class<?>... ptypes) { argument
227 Object[] args = new Object[ptypes.length];
229 args[i] = makeArgument(ptypes[i]);
H A DMethodHandleConstants.java64 private static void testCase(MethodHandle mh, Class<?> defc, String name, Class<?> rtype, Class<?>... ptypes) throws Throwable { argument
67 MethodType mt = methodType(rtype, ptypes);
H A DMethodTypeTest.java48 private Class<?>[] ptypes; field in class:MethodTypeTest
60 ptypes = new Class<?>[] { int.class, String.class };
120 MethodType result = MethodType.methodType(rtype, ptypes);
130 MethodType result = MethodType.methodType(rtype, Arrays.asList(ptypes));
140 MethodType result = MethodType.methodType(rtype, ptypes[0], ptypes[1]);
294 for (int num = 0; num < ptypes.length; num++) {
296 Class<?> expResult = ptypes[num];
333 List<Class<?>> expResult = Arrays.asList(ptypes);
345 Class<?>[] expResult = ptypes;
[all...]
H A DPermuteArgsTest.java347 static Object[] junkArgs(Class<?>[] ptypes) { argument
348 Object[] args = new Object[ptypes.length];
349 for (int i = 0; i < ptypes.length; i++) {
350 Class<?> pt = ptypes[i];
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/
H A DCompilerConstants.java306 * @param ptypes parameter types
310 public static String methodDescriptor(final Class<?> rtype, final Class<?>... ptypes) { argument
311 return Type.getMethodDescriptor(rtype, ptypes);
342 * @param ptypes the parameter types for the constructor
346 public static Call constructorNoLookup(final String className, final Class<?>... ptypes) { argument
347 return specialCallNoLookup(className, INIT.symbolName(), methodDescriptor(void.class, ptypes));
355 * @param ptypes the parameter types for the constructor
359 public static Call constructorNoLookup(final Class<?> clazz, final Class<?>... ptypes) { argument
360 return specialCallNoLookup(clazz, INIT.symbolName(), void.class, ptypes);
394 * @param ptypes th
398 specialCallNoLookup(final Class<?> clazz, final String name, final Class<?> rtype, final Class<?>... ptypes) argument
437 staticCallNoLookup(final Class<?> clazz, final String name, final Class<?> rtype, final Class<?>... ptypes) argument
452 virtualCallNoLookup(final Class<?> clazz, final String name, final Class<?> rtype, final Class<?>... ptypes) argument
477 interfaceCallNoLookup(final Class<?> clazz, final String name, final Class<?> rtype, final Class<?>... ptypes) argument
578 staticCall(final MethodHandles.Lookup lookup, final Class<?> clazz, final String name, final Class<?> rtype, final Class<?>... ptypes) argument
603 virtualCall(final MethodHandles.Lookup lookup, final Class<?> clazz, final String name, final Class<?> rtype, final Class<?>... ptypes) argument
629 specialCall(final MethodHandles.Lookup lookup, final Class<?> clazz, final String name, final Class<?> rtype, final Class<?>... ptypes) argument
[all...]
H A DClassEmitter.java490 * @param ptypes parameter types the method
494 MethodEmitter method(final String methodName, final Class<?> rtype, final Class<?>... ptypes) { argument
495 return method(DEFAULT_METHOD_FLAGS, methodName, rtype, ptypes); //TODO why public default ?
504 * @param ptypes parameter types the method
508 MethodEmitter method(final EnumSet<Flag> methodFlags, final String methodName, final Class<?> rtype, final Class<?>... ptypes) { argument
511 return new MethodEmitter(this, methodVisitor(methodFlags, methodName, rtype, ptypes));
607 * @param ptypes parameter types for constructor
610 MethodEmitter init(final Class<?>... ptypes) { argument
612 return method(INIT.symbolName(), void.class, ptypes);
619 * @param ptypes paramete
623 init(final EnumSet<Flag> flags, final Class<?>... ptypes) argument
739 methodVisitor(final EnumSet<Flag> flags, final String methodName, final Class<?> rtype, final Class<?>... ptypes) argument
[all...]
/openjdk10/jdk/src/java.base/share/classes/sun/invoke/util/
H A DBytecodeDescriptor.java56 ArrayList<Class<?>> ptypes = new ArrayList<Class<?>>();
63 ptypes.add(pt);
72 ptypes.add(rtype);
73 return ptypes;
127 public static String unparseMethod(Class<?> rtype, List<Class<?>> ptypes) { argument
130 for (Class<?> pt : ptypes)
137 public static String unparseMethod(Class<?> rtype, Class<?>[] ptypes) { argument
140 for (Class<?> pt : ptypes)
/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/
H A DTypeCheckHints.java114 ProfiledType[] ptypes = profile.getTypes();
115 if (notRecordedTypes < (1D - minHintHitProbability) && ptypes != null && ptypes.length > 0) {
116 hintsBuf = new Hint[ptypes.length];
118 for (ProfiledType ptype : ptypes) {
/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.phases.common/src/org/graalvm/compiler/phases/common/inlining/info/
H A DMultiTypeGuardInlineInfo.java78 private final ArrayList<ProfiledType> ptypes; field in class:MultiTypeGuardInlineInfo
82 public MultiTypeGuardInlineInfo(Invoke invoke, ArrayList<ResolvedJavaMethod> concretes, ArrayList<ProfiledType> ptypes, ArrayList<Integer> typesToConcretes, double notRecordedTypeProbability) { argument
85 assert ptypes.size() == typesToConcretes.size() : "array lengths must match";
88 this.ptypes = ptypes;
95 assert assertUniqueTypes(ptypes);
98 private static boolean assertUniqueTypes(ArrayList<ProfiledType> ptypes) { argument
100 for (ProfiledType ptype : ptypes) {
103 return set.size() == ptypes.size();
110 double probability = ptypes
[all...]
/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.replacements.test/src/org/graalvm/compiler/replacements/test/
H A DTypeCheckTest.java67 ProfiledType[] ptypes = new ProfiledType[types.length];
69 ptypes[i] = new ProfiledType(getMetaAccess().lookupJavaType(types[i]), 1.0D / types.length);
71 return new JavaTypeProfile(nullSeen, 0.0D, ptypes);
/openjdk10/jdk/src/java.base/share/classes/java/lang/
H A DPublicMethods.java94 private final Class<?>[] ptypes; field in class:PublicMethods.Key
98 ptypes = reflectionFactory.getExecutableSharedParameterTypes(method);
103 Class<?>[] ptypes) {
107 ptypes
118 Arrays.equals(ptypes, that.ptypes);
124 31 * Arrays.hashCode(ptypes);
143 * {@code ptypes} and including or excluding static methods as
147 Class<?>[] ptypes, boolean includeStatic) {
151 Key.matches(method, name, ptypes)) {
101 matches(Method method, String name, Class<?>[] ptypes) argument
146 filter(Method[] methods, String name, Class<?>[] ptypes, boolean includeStatic) argument
[all...]
/openjdk10/nashorn/src/jdk.dynalink/share/classes/jdk/dynalink/linker/support/
H A DLookup.java349 * @param ptypes the parameter types of the method
352 public static MethodHandle findOwnSpecial(final MethodHandles.Lookup lookup, final String name, final Class<?> rtype, final Class<?>... ptypes) { argument
353 return new Lookup(lookup).findOwnSpecial(name, rtype, ptypes);
365 * @param ptypes the parameter types of the method
368 public MethodHandle findOwnSpecial(final String name, final Class<?> rtype, final Class<?>... ptypes) { argument
369 return findSpecial(lookup.lookupClass(), name, MethodType.methodType(rtype, ptypes));
381 * @param ptypes the parameter types of the method
384 public static MethodHandle findOwnStatic(final MethodHandles.Lookup lookup, final String name, final Class<?> rtype, final Class<?>... ptypes) { argument
385 return new Lookup(lookup).findOwnStatic(name, rtype, ptypes);
396 * @param ptypes th
399 findOwnStatic(final String name, final Class<?> rtype, final Class<?>... ptypes) argument
[all...]
/openjdk10/jdk/test/java/lang/invoke/modules/m1/p1/
H A DMain.java347 Class<?>... ptypes) throws Exception {
349 findConstructor(lookup, clazz, rtype, ptypes);
361 Class<?>... ptypes) throws Exception {
362 MethodType mt = MethodType.methodType(rtype, ptypes);
344 findConstructorExpectingIAE(Lookup lookup, Class<?> clazz, Class<?> rtype, Class<?>... ptypes) argument
358 findConstructor(Lookup lookup, Class<?> clazz, Class<?> rtype, Class<?>... ptypes) argument
/openjdk10/nashorn/src/jdk.dynalink/share/classes/jdk/dynalink/beans/
H A DCallerSensitiveDynamicMethod.java142 final Class<?>[] ptypes = isMethod ? ((Method)ao).getParameterTypes() : ((Constructor<?>)ao).getParameterTypes();
143 final MethodType type = MethodType.methodType(rtype, ptypes);
/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.phases.common/src/org/graalvm/compiler/phases/common/inlining/walker/
H A DInliningData.java263 JavaTypeProfile.ProfiledType[] ptypes = typeProfile.getTypes();
264 if (ptypes == null || ptypes.length <= 0) {
272 if (ptypes.length == 1 && notRecordedTypeProbability == 0) {
278 ResolvedJavaType type = ptypes[0].getType();
289 InliningUtil.logNotInlinedInvoke(invoke, inliningDepth(), targetMethod, "inlining polymorphic calls is disabled (%d types)", ptypes.length);
295 InliningUtil.logNotInlinedInvoke(invoke, inliningDepth(), targetMethod, "inlining megamorphic calls is disabled (%d types, %f %% not recorded types)", ptypes.length,
303 for (int i = 0; i < ptypes.length; i++) {
304 ResolvedJavaMethod concrete = ptypes[i].getType().resolveConcreteMethod(targetMethod, contextType);
310 double curProbability = ptypes[
[all...]
/openjdk10/jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/
H A DGenerateJLIClassesPlugin.java491 Class<?>[] ptypes = new Class<?>[parameters.length()];
492 for (int i = 0; i < ptypes.length; i++) {
493 ptypes[i] = simpleType(parameters.charAt(i));
495 return MethodType.methodType(rtype, ptypes);
/openjdk10/hotspot/src/share/vm/runtime/
H A Dreflection.cpp1058 objArrayHandle ptypes,
1151 assert(ptypes->is_objArray(), "just checking");
1154 if (ptypes->length() != args_len) {
1167 oop type_mirror = ptypes->obj_at(i);
1238 objArrayHandle ptypes(THREAD, objArrayOop(java_lang_reflect_Method::parameter_types(method_mirror)));
1255 return invoke(klass, method, receiver, override, ptypes, rtype, args, true, THREAD);
1263 objArrayHandle ptypes(THREAD, objArrayOop(java_lang_reflect_Constructor::parameter_types(constructor_mirror)));
1281 invoke(klass, method, receiver, override, ptypes, T_VOID, args, false, CHECK_NULL);
1054 invoke(InstanceKlass* klass, const methodHandle& reflected_method, Handle receiver, bool override, objArrayHandle ptypes, BasicType rtype, objArrayHandle args, bool is_method_invoke, TRAPS) argument
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/
H A DListAdapter.java399 private static Callable<MethodHandle> invokerCreator(final Class<?> rtype, final Class<?>... ptypes) { argument
403 return Bootstrap.createDynamicCallInvoker(rtype, ptypes);

Completed in 216 milliseconds

12