Home
last modified time | relevance | path

Searched refs:reorder (Results 1 – 5 of 5) sorted by relevance

/libcore/ojluni/src/test/java/lang/invoke/
DMethodHandlesPermuteArgumentsTest.java94 int[] reorder = new int[outargs]; in testPermuteArguments() local
98 Arrays.fill(reorder, i); in testPermuteArguments()
99 testPermuteArguments(args, types, reorder); in testPermuteArguments()
103 reorder[j] += 1; in testPermuteArguments()
104 testPermuteArguments(args, types, reorder); in testPermuteArguments()
105 testPermuteArguments(args, types, reverse(reorder)); in testPermuteArguments()
112 reorder[j] = (i + (j % len)) % inargs; in testPermuteArguments()
113 testPermuteArguments(args, types, reorder); in testPermuteArguments()
114 testPermuteArguments(args, types, reverse(reorder)); in testPermuteArguments()
127 int[] reorder = new int[outargs]; in testPermuteArguments() local
[all …]
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandles.java2947 MethodHandle permuteArguments(MethodHandle target, MethodType newType, int... reorder) { in permuteArguments() argument
2948 reorder = reorder.clone(); // get a private copy in permuteArguments()
2950 permuteArgumentChecks(reorder, newType, oldType); in permuteArguments()
2952 return new Transformers.PermuteArguments(newType, target, reorder); in permuteArguments()
2958 …private static boolean permuteArgumentChecks(int[] reorder, MethodType newType, MethodType oldType… in permuteArgumentChecks() argument
2962 if (reorder.length == oldType.parameterCount()) { in permuteArgumentChecks()
2965 for (int j = 0; j < reorder.length; j++) { in permuteArgumentChecks()
2966 int i = reorder[j]; in permuteArgumentChecks()
2978 throw newIllegalArgumentException("bad reorder array: "+Arrays.toString(reorder)); in permuteArgumentChecks()
DTransformers.java607 private final int[] reorder; field in Transformers.PermuteArguments
609 PermuteArguments(MethodType type, MethodHandle target, int[] reorder) { in PermuteArguments() argument
613 this.reorder = reorder; in PermuteArguments()
626 for (int i = 0; i < reorder.length; ++i) { in transform()
627 final int readerIndex = reorder[i]; in transform()
/libcore/ojluni/src/lambda/java/java/lang/invoke/
DMethodHandles.java112 …MethodHandle permuteArguments(MethodHandle target, MethodType newType, int... reorder) { return nu… in permuteArguments() argument
/libcore/ojluni/annotations/hiddenapi/java/lang/invoke/
DMethodHandles.java197 int... reorder) { in permuteArguments() argument
202 int[] reorder, in permuteArgumentChecks() argument