/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | MethodHandle.java | 958 return asSpreader(type().parameterCount() - arrayLength, arrayType, arrayLength); in asSpreader() 1024 int nargs = type().parameterCount(); in asSpreaderChecks() 1177 return asCollector(type().parameterCount() - 1, arrayType, arrayLength); in asCollector() 1247 int nargs = type().parameterCount(); in asCollectorChecks() 1414 boolean lastMatch = asCollectorChecks(arrayType, type().parameterCount() - 1, 0); in asVarargsCollector()
|
D | TypeDescriptor.java | 112 int parameterCount(); in parameterCount() method
|
D | MethodHandles.java | 1783 adapterType.parameterType(adapterType.parameterCount() - 1)); in bind() 2652 if (leadingArgCount < 0 || leadingArgCount > type.parameterCount()) in spreadInvoker() 2656 int spreadArgCount = type.parameterCount() - leadingArgCount; in spreadInvoker() 2881 if (target.type().parameterCount() != newType.parameterCount()) { in explicitCastArgumentsChecks() 2962 if (reorder.length == oldType.parameterCount()) { in permuteArgumentChecks() 2963 int limit = newType.parameterCount(); in permuteArgumentChecks() 3209 int outargs = oldType.parameterCount(); in insertArgumentsChecks() 3291 int outargs = oldType.parameterCount(); in dropArgumentChecks() 3608 int maxPos = targetType.parameterCount(); in filterArgumentsCheckArity() 3616 if (filterType.parameterCount() != 1 in filterArgumentChecks() [all …]
|
D | MethodType.java | 420 return insertParameterTypes(parameterCount(), ptypesToInsert); in appendParameterTypes() 448 return insertParameterTypes(parameterCount(), ptypesToInsert); in appendParameterTypes() 484 assert(parameterCount() >= arrayLength); in asSpreaderType() 528 assert(parameterCount() >= 1); in asCollectorType() 661 return genericMethodType(parameterCount()); 731 public int parameterCount() {
|
D | CallSite.java | 115 if (type.parameterCount() > 0) { in CallSite()
|
D | Transformers.java | 177 target.type(), 0, (handler.type().parameterCount() - 1)); in CatchException() 294 EmulatedStackFrame.Range.of(target.type(), 0, test.type().parameterCount()); in GuardWithTest() 684 if (currentType.parameterCount() == newType.parameterCount() in asTypeUncached() 691 final int arrayLength = newType.parameterCount() - currentType.parameterCount() + 1; in asTypeUncached() 1210 final int parameterCount = callsiteType.parameterCount(); in exactMatch() local 1211 if (callsiteType.parameterCount() != targetType.parameterCount()) { in exactMatch() 1215 for (int i = 0; i < parameterCount; ++i) { in exactMatch() 1675 final int numFilterArgs = collector.type().parameterCount(); in CollectArguments() 1753 Range.of(type(), position, position + combiner.type().parameterCount()); in FoldArguments() 1834 range2 = Range.of(type, pos, type.parameterCount()); in InsertArguments()
|
D | MethodTypeForm.java | 278 public int parameterCount() { // # outgoing values in parameterCount() method in MethodTypeForm
|
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
D | MethodTypeTest.java | 115 assertEquals(0, mt.parameterCount()); in test_methodType_basicTestsReturnTypeOnly() 174 assertEquals(0, mt.parameterCount()); in testGenericMethodType() 180 assertEquals(3, mt.parameterCount()); in testGenericMethodType() 231 assertEquals(mt.parameterCount(), changed.parameterCount()); in testChangeParameterType() 425 assertEquals(0, dropAll.parameterCount()); in testDropParameterTypes() 510 assertEquals(generic, MethodType.genericMethodType(mt.parameterCount())); in testGeneric() 570 assertEquals(3, mt.parameterCount()); in testParameterListAndArray() 579 assertEquals(0, mt.parameterCount()); in testParameterListAndArray() 691 assertEquals(params.length, type.parameterCount()); in assertParameterTypes()
|
/libcore/ojluni/src/test/java/lang/invoke/ |
D | RicochetTest.java | 231 int outputs = lister.type().parameterCount(); in testIntCollects() 259 assert(mh.type().parameterCount() == inputs); in testIntCollects() 271 int outputs = lister.type().parameterCount(); in testByteCollects() 299 assert(mh.type().parameterCount() == inputs); in testByteCollects() 308 int collects = collector.type().parameterCount(); in collectArguments() 309 int outputs = lister.type().parameterCount(); in collectArguments() 377 assert(proj.type().parameterCount() == len); in testReturns() 395 assert(proj.type().parameterCount() == arg0 + len); in testReturns() 477 if (t.parameterCount() == 0) { in assertEqualFunction() 493 Object[] args = new Object[x.type().parameterCount()]; in assertEqualFunctionAt() [all …]
|
D | PermuteArgsTest.java | 178 int posArgs = mt.parameterCount() - 1; in test() 199 int posArgs = mt.parameterCount() - 1; in adjustArity() 202 while (mt1.parameterCount() < arity) { in adjustArity() 206 pt = mt1.parameterType(mt1.parameterCount() - posArgs); in adjustArity() 223 int mhArity = mh.type().parameterCount(); in findTestMH() 238 int[] perm = nullPerm(mt.parameterCount()); in testPermutations()
|
D | LoopCombinatorTest.java | 243 while (loop.type().parameterCount() > 1) loop = snip(loop); in testWhileLoop() 320 return snip(mh, mh.type().parameterCount()-1); in snip() 324 return MethodHandles.dropArguments(mh, mh.type().parameterCount(), addType); in slap() 347 while (loop.type().parameterCount() > 1) loop = snip(loop); in testDoWhileLoop() 546 if (expectType.parameterCount() == 0) in testCountedLoopBodyParameters() 696 int barity = body.type().parameterCount(); in testIterateLength() 719 int barity = body.type().parameterCount(); in testIterateMap() 741 int barity = body.type().parameterCount(); in testIteratePrint() 840 if (in.parameterCount() == 0) { in testIterateParameters() 847 } else if (it.parameterCount() > in.parameterCount()) { in testIterateParameters() [all …]
|
D | VarargsArrayTest.java | 152 assertEquals(elemType, vaType.parameterType(vaType.parameterCount()-1)); in testTypedVarargsArray()
|
D | MethodHandlesGeneralTest.java | 706 assertEquals((isStatic ? 0 : 1)+(isGetter ? 0 : 1), mh.type().parameterCount()); in testAccessor() 723 int last = mh.type().parameterCount() - 1; in testAccessor() 1373 while (test.type().parameterCount() > nargs) in testGuardWithTest() 1401 if (test1.type().parameterCount() > testArgs) { in testGuardWithTest() 1402 int pc = test1.type().parameterCount(); in testGuardWithTest()
|
D | MethodTypeTest.java | 322 int result = instance.parameterCount(); in testParameterCount()
|
/libcore/ojluni/src/test/java/lang/invoke/VarHandles/ |
D | VarHandleBaseTest.java | 475 assertEquals(mt.parameterType(mt.parameterCount() - 1), vh.varType()); in testTypes() 481 assertEquals(mt.parameterType(mt.parameterCount() - 1), vh.varType()); in testTypes() 482 assertEquals(mt.parameterType(mt.parameterCount() - 2), vh.varType()); in testTypes() 488 assertEquals(mt.parameterType(mt.parameterCount() - 1), vh.varType()); in testTypes() 489 assertEquals(mt.parameterType(mt.parameterCount() - 2), vh.varType()); in testTypes() 495 assertEquals(mt.parameterType(mt.parameterCount() - 1), vh.varType()); in testTypes()
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | EmulatedStackFrameTest.java | 82 final int parameterCount = stackFrame.getMethodType().parameterCount(); in testRandomReaderWriter_allParamTypes() local 84 int argumentIndex = (i * 13) % parameterCount; in testRandomReaderWriter_allParamTypes()
|
/libcore/ojluni/src/main/java/java/lang/constant/ |
D | MethodTypeDesc.java | 84 int parameterCount(); in parameterCount() method
|
D | MethodTypeDescImpl.java | 83 public int parameterCount() { in parameterCount() method in MethodTypeDescImpl
|
D | DirectMethodHandleDescImpl.java | 97 || type.parameterCount() != expectedParams in validateFieldType()
|
D | DynamicConstantDesc.java | 256 if (bsm.type().parameterCount() < 2 || in resolveConstantDesc()
|
/libcore/ojluni/src/lambda/java/java/lang/invoke/ |
D | MethodType.java | 89 public int parameterCount() { return 0; } in parameterCount() method in MethodType
|
/libcore/dalvik/src/main/java/dalvik/system/ |
D | EmulatedStackFrame.java | 115 return of(frameType, 0, frameType.parameterCount()); in all() 160 return of(frameType, startArg, frameType.parameterCount()); in from()
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/invoke/ |
D | MethodType.annotated.java | 78 public int parameterCount() { throw new RuntimeException("Stub!"); } in parameterCount() method in MethodType
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | ParameterTest.java | 1083 final int parameterCount = executable.getParameterCount(); in getParameterTestHelpers() local 1084 ParameterTestHelper[] parameterTestHelpers = new ParameterTestHelper[parameterCount]; in getParameterTestHelpers() 1085 for (int i = 0; i < parameterCount; i++) { in getParameterTestHelpers()
|
/libcore/ojluni/src/test/java/lang/invoke/common/test/java/lang/invoke/lib/ |
D | Helper.java | 173 int targetLen = target.type().parameterCount(); in addTrailingArgs()
|