Home
last modified time | relevance | path

Searched refs:loop (Results 1 – 12 of 12) sorted by relevance

/libcore/ojluni/src/test/java/lang/invoke/
DLoopCombinatorTest.java65 MethodHandle loop = MethodHandles.loop(counterClause, accumulatorClause); in testLoopFac() local
66 assertEquals(Fac.MT_fac, loop.type()); in testLoopFac()
67 assertEquals(120, loop.invoke(5)); in testLoopFac()
75 MethodHandle loop = MethodHandles.loop(counterClause, accumulatorClause); in testLoopFacNullInit() local
76 assertEquals(Fac.MT_fac, loop.type()); in testLoopFacNullInit()
77 assertEquals(120, loop.invoke(5)); in testLoopFacNullInit()
84 MethodHandle loop = MethodHandles.loop(counterClause); in testLoopNullInit() local
85 assertEquals(Loop.MT_loop, loop.type()); in testLoopNullInit()
86 assertEquals(10, loop.invoke(10)); in testLoopNullInit()
92 …MethodHandle loop = MethodHandles.loop(new MethodHandle[]{Empty.MH_f, Empty.MH_f, Empty.MH_pred, n… in testLoopVoid1() local
[all …]
DJavaDocExamplesTest.java709 MethodHandle loop = MethodHandles.loop(counterClause, accumulatorClause); in testLoop() local
710 assertEquals(120, loop.invoke(5)); in testLoop()
734 MethodHandle loop = MethodHandles.loop(counterClause, accumulatorClause); in testSimplerLoop() local
735 assertEquals(720, loop.invoke(6)); in testSimplerLoop()
769 MethodHandle loop = MethodHandles.loop(instanceClause, counterClause, accumulatorClause); in testFacLoop() local
770 assertEquals(5040, loop.invoke(7)); in testFacLoop()
793 MethodHandle loop = MethodHandles.whileLoop(MH_initZip, MH_zipPred, MH_zipStep); in testWhileLoop() local
797 assertEquals(zipped, (List<String>) loop.invoke(a.iterator(), b.iterator())); in testWhileLoop()
815 MethodHandle loop = MethodHandles.doWhileLoop(MH_zero, MH_step, MH_pred); in testDoWhileLoop() local
816 assertEquals(23, loop.invoke(23)); in testDoWhileLoop()
[all …]
DCountedLoopIterationCountsTest.java61 MethodHandle loop = MethodHandles.countedLoop( in run() local
67 int r = (int) loop.invoke(); in run()
DMethodHandlesGeneralTest.java1556 MethodHandle pre = MethodHandles.loop(preClauses); in testGenericLoopCombinator()
1557 MethodHandle post = MethodHandles.loop(postClauses); in testGenericLoopCombinator()
/libcore/ojluni/src/test/java/util/DoubleStreamSums/
DCompensatedSums.java64 for (int loop = 0; loop < 15; loop++) { in testCompensatedSums()
/libcore/ojluni/src/test/java/lang/invoke/VarHandles/
DVarHandleBaseTest.java395 final boolean loop; field in VarHandleBaseTest.AccessTestCase
397 AccessTestCase(String desc, AccessTestAction<T> ata, boolean loop) { in AccessTestCase() argument
400 this.loop = loop; in AccessTestCase()
404 return loop; in requiresLoop()
426 …VarHandleAccessTestCase(String desc, VarHandle vh, AccessTestAction<VarHandle> ata, boolean loop) { in VarHandleAccessTestCase() argument
427 super("VarHandle -> " + desc, ata, loop); in VarHandleAccessTestCase()
445 …tring desc, VarHandle vh, VarHandleToMethodHandle f, AccessTestAction<Handles> ata, boolean loop) { in MethodHandleAccessTestCase() argument
446 super("VarHandle -> " + f.toString() + " -> " + desc, ata, loop); in MethodHandleAccessTestCase()
DVarHandleBaseByteArrayTest.java187 …eArrayViewSource<?> bs, VarHandleSource vhs, AccessTestAction<VarHandleSource> ata, boolean loop) { in VarHandleSourceAccessTestCase() argument
188 super(vhs + " -> " + bs + " " + desc, ata, loop); in VarHandleSourceAccessTestCase()
/libcore/ojluni/src/main/java/java/io/
DDataInputStream.java514 loop: while (true) { in readLine()
518 break loop; in readLine() local
528 break loop; in readLine() local
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandles.java4489 public static MethodHandle loop(MethodHandle[]... clauses) { in loop() method in MethodHandles
4777 return loop(checkExit, varBody); in whileLoop()
4880 return loop(clause); in doWhileLoop()
5205 return loop(loopLimit, bodyClause, indexVar); in countedLoop()
5444 return loop(iterVar, bodyClause); in iteratedLoop()
/libcore/ojluni/src/main/java/java/nio/
DX-Buffer.java.template782 * the loop
860 * has exactly the same effect as the following loop except that it first
993 * {@code dst.put(src)} has exactly the same effect as the loop
1055 * has exactly the same effect as the loop
1258 * the loop
1341 * has exactly the same effect as the following loop except that it first
1486 * as the loop
1749 * write was incomplete. The following loop, for example, copies bytes
/libcore/ojluni/src/main/java/java/nio/charset/
DCharset-X-Coder.java.template121 * encapsulates the basic $coding$ loop. A subclass that maintains internal
766 * <p> This method encapsulates the basic $coding$ loop, $coding$ as many
/libcore/api/
Dcurrent.txt4707 method public static java.lang.invoke.MethodHandle loop(java.lang.invoke.MethodHandle[]...);