Home
last modified time | relevance | path

Searched refs:parameterCount (Results 1 – 25 of 31) sorted by relevance

12

/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandle.java958 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()
DTypeDescriptor.java112 int parameterCount(); in parameterCount() method
DMethodHandles.java1783 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 …]
DMethodType.java420 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() {
DCallSite.java115 if (type.parameterCount() > 0) { in CallSite()
DTransformers.java177 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()
DMethodTypeForm.java278 public int parameterCount() { // # outgoing values in parameterCount() method in MethodTypeForm
/libcore/luni/src/test/java/libcore/java/lang/invoke/
DMethodTypeTest.java115 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/
DRicochetTest.java231 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 …]
DPermuteArgsTest.java178 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()
DLoopCombinatorTest.java243 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 …]
DVarargsArrayTest.java152 assertEquals(elemType, vaType.parameterType(vaType.parameterCount()-1)); in testTypedVarargsArray()
DMethodHandlesGeneralTest.java706 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()
DMethodTypeTest.java322 int result = instance.parameterCount(); in testParameterCount()
/libcore/ojluni/src/test/java/lang/invoke/VarHandles/
DVarHandleBaseTest.java475 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/
DEmulatedStackFrameTest.java82 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/
DMethodTypeDesc.java84 int parameterCount(); in parameterCount() method
DMethodTypeDescImpl.java83 public int parameterCount() { in parameterCount() method in MethodTypeDescImpl
DDirectMethodHandleDescImpl.java97 || type.parameterCount() != expectedParams in validateFieldType()
DDynamicConstantDesc.java256 if (bsm.type().parameterCount() < 2 || in resolveConstantDesc()
/libcore/ojluni/src/lambda/java/java/lang/invoke/
DMethodType.java89 public int parameterCount() { return 0; } in parameterCount() method in MethodType
/libcore/dalvik/src/main/java/dalvik/system/
DEmulatedStackFrame.java115 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/
DMethodType.annotated.java78 public int parameterCount() { throw new RuntimeException("Stub!"); } in parameterCount() method in MethodType
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DParameterTest.java1083 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/
DHelper.java173 int targetLen = target.type().parameterCount(); in addTrailingArgs()

12