/dalvik/dx/tests/132-invoke-polymorphic/ |
D | TestInvokePolymorphic.java | 17 import java.lang.invoke.MethodHandle; 20 public static void testInvokeVoidReturnNoArgs(MethodHandle mh) throws Throwable { in testInvokeVoidReturnNoArgs() 24 public static void testInvokeExactVoidReturnNoArgs(MethodHandle mh) throws Throwable { in testInvokeExactVoidReturnNoArgs() 28 public static int testInvokeIntReturnNoArgs(MethodHandle mh) throws Throwable { in testInvokeIntReturnNoArgs() 32 public static int testInvokeExactIntReturnNoArgs(MethodHandle mh) throws Throwable { in testInvokeExactIntReturnNoArgs() 36 public static long testInvokeLongReturnNoArgs(MethodHandle mh) throws Throwable { in testInvokeLongReturnNoArgs() 40 public static long testInvokeExactLongReturnNoArgs(MethodHandle mh) throws Throwable { in testInvokeExactLongReturnNoArgs() 44 public static double testInvokeDoubleReturnNoArgs(MethodHandle mh) throws Throwable { in testInvokeDoubleReturnNoArgs() 48 public static double testInvokeExactDoubleReturnNoArgs(MethodHandle mh) throws Throwable { in testInvokeExactDoubleReturnNoArgs() 52 public static double testInvokeDoubleReturn2Arguments(MethodHandle mh, Object o, long l) in testInvokeDoubleReturn2Arguments() [all …]
|
D | expected.txt | 2 …n TestInvokePolymorphic.testInvokeVoidReturnNoArgs:(Ljava/lang/invoke/MethodHandle;)V: invoking a … 65 |[12] "Ljava/lang/invoke/MethodHandle;" 161 |[9] Ljava/lang/invoke/MethodHandle; 177 |[2] double proto(java.lang.invoke.MethodHandle) 181 … |[3] double proto(java.lang.invoke.MethodHandle, java.lang.Object, long) 193 |[6] int proto(java.lang.invoke.MethodHandle) 197 …|[7] int proto(java.lang.invoke.MethodHandle, java.lang.Object, long, double, float, java.lang.Str… 205 |[9] long proto(java.lang.invoke.MethodHandle) 225 |[e] void proto(java.lang.invoke.MethodHandle) 229 |[f] void proto(java.lang.invoke.MethodHandle, int, int, int) [all …]
|
/dalvik/dx/tests/137-dexmerger-dex38/src/invokecustom/ |
D | InvokeCustom.java | 21 import java.lang.invoke.MethodHandle; 100 private static void checkStaticFieldTest9(MethodHandle getter, MethodHandle setter) in checkStaticFieldTest9() 113 private void checkFieldTest9(MethodHandle getter, MethodHandle setter) in checkFieldTest9() 140 final MethodHandle targetMH = lookup.findStatic(lookup.lookupClass(), name, type); in bsmLookupStatic() 149 final MethodHandle targetMH = lookup.findStatic(lookup.lookupClass(), name, type); in bsmLookupStaticWithExtraArgs() 154 MethodHandles.Lookup caller, String name, MethodType type, MethodHandle mh) in bsmCreateCallSite() 161 MethodHandle staticGetter, MethodHandle staticSetter, in bsmLookupTest9() 162 MethodHandle fieldGetter, MethodHandle fieldSetter, in bsmLookupTest9() 163 MethodHandle instanceInvoke, MethodHandle constructor, in bsmLookupTest9() 164 MethodHandle interfaceInvoke) in bsmLookupTest9() [all …]
|
D | TestGenerator.java | 23 import java.lang.invoke.MethodHandle; 213 MethodHandle.class); in generateMethodTest4() 420 MethodHandle.class, in generateMethodTest9() 421 MethodHandle.class, in generateMethodTest9() 422 MethodHandle.class, in generateMethodTest9() 423 MethodHandle.class, in generateMethodTest9() 424 MethodHandle.class, in generateMethodTest9() 425 MethodHandle.class, in generateMethodTest9() 426 MethodHandle.class); in generateMethodTest9()
|
/dalvik/dx/tests/135-invoke-custom/src/invokecustom/ |
D | InvokeCustom.java | 21 import java.lang.invoke.MethodHandle; 104 private static void checkStaticFieldTest9(MethodHandle getter, MethodHandle setter) in checkStaticFieldTest9() 117 private void checkFieldTest9(MethodHandle getter, MethodHandle setter) in checkFieldTest9() 144 final MethodHandle targetMH = lookup.findStatic(lookup.lookupClass(), name, type); in bsmLookupStatic() 153 final MethodHandle targetMH = lookup.findStatic(lookup.lookupClass(), name, type); in bsmLookupStaticWithExtraArgs() 158 MethodHandles.Lookup caller, String name, MethodType type, MethodHandle mh) in bsmCreateCallSite() 169 MethodHandle staticGetter, MethodHandle staticSetter, in bsmLookupTest9() 170 MethodHandle fieldGetter, MethodHandle fieldSetter, in bsmLookupTest9() 171 MethodHandle instanceInvoke, MethodHandle constructor, in bsmLookupTest9() 172 MethodHandle interfaceInvoke, MethodHandle privateInvoke) in bsmLookupTest9() [all …]
|
D | TestGenerator.java | 23 import java.lang.invoke.MethodHandle; 165 MethodHandle.class); in generateMethodTest4() 321 MethodHandle.class, MethodHandle.class, in generateMethodTest9() 322 MethodHandle.class, MethodHandle.class, in generateMethodTest9() 323 MethodHandle.class, MethodHandle.class, in generateMethodTest9() 324 MethodHandle.class, MethodHandle.class); in generateMethodTest9()
|
/dalvik/dx/src/com/android/dex/ |
D | MethodHandle.java | 26 public class MethodHandle implements Comparable<MethodHandle> { class 77 public MethodHandle( in MethodHandle() method in MethodHandle 91 public int compareTo(MethodHandle o) { in compareTo()
|
D | Dex.java | 21 import com.android.dex.MethodHandle.MethodHandleType; 448 public MethodHandle readMethodHandle() { in readMethodHandle() 453 return new MethodHandle(Dex.this, methodHandleType, unused1, fieldOrMethodId, unused2); in readMethodHandle()
|
/dalvik/dx/tests/138-invoke-polymorphic-again/ |
D | Main.java | 17 import java.lang.invoke.MethodHandle; 41 MethodHandle mh0 = null; in $opt$BasicTest() 53 MethodHandle mh0 = null; in $opt$BasicTest2()
|
D | expected.txt | 26 …0027: invoke-polymorphic {v0, v2}, java.lang.invoke.MethodHandle.invokeExact:([Ljava/lang/Object;)… 39 0023: +local v17 mh0 java.lang.invoke.MethodHandle 70 …0027: invoke-polymorphic {v0, v2}, java.lang.invoke.MethodHandle.invokeExact:([Ljava/lang/Object;)… 84 0023: +local v17 mh0 java.lang.invoke.MethodHandle
|
/dalvik/dx/tests/142-const-method-handle/src/constmethodhandle/ |
D | ConstTest.java | 19 import java.lang.invoke.MethodHandle; 23 private static void displayMethodHandle(MethodHandle mh) throws Throwable { in displayMethodHandle()
|
D | TestGenerator.java | 23 import java.lang.invoke.MethodHandle;
|
/dalvik/dx/tests/142-const-method-handle/src/ |
D | Main.java | 18 import java.lang.invoke.MethodHandle; 26 MethodHandle generatedMain = MethodHandles.lookup() in main()
|
/dalvik/dx/tests/137-dexmerger-dex38/ |
D | expected.txt | 156 …okup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;)Ljava/lang/inv… 163 …okup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;)Ljava/lang/inv… 179 …0, v6}, Ljava/lang/invoke/ConstantCallSite;.<init>:(Ljava/lang/invoke/MethodHandle;)V // method@00… 189 0x0000 - 0x0024 reg=6 (null) Ljava/lang/invoke/MethodHandle; 208 …lass;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle; // method@00c7 211 …irtual {v0, v4}, Ljava/lang/invoke/MethodHandle;.asType:(Ljava/lang/invoke/MethodType;)Ljava/lang/… 213 …1, v0}, Ljava/lang/invoke/ConstantCallSite;.<init>:(Ljava/lang/invoke/MethodHandle;)V // method@00… 269 …lass;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle; // method@00c7 272 …irtual {v0, v5}, Ljava/lang/invoke/MethodHandle;.asType:(Ljava/lang/invoke/MethodType;)Ljava/lang/… 274 …1, v0}, Ljava/lang/invoke/ConstantCallSite;.<init>:(Ljava/lang/invoke/MethodHandle;)V // method@00… [all …]
|
/dalvik/dx/tests/135-invoke-custom/ |
D | expected.txt | 2 ….InvokeCustom.checkStaticFieldTest9:(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle… 147 |[3a] "Ljava/lang/invoke/MethodHandle;" 411 |[16] Ljava/lang/invoke/MethodHandle; 521 …MethodHandles$Lookup, java.lang.String, java.lang.invoke.MethodType, java.lang.invoke.MethodHandle) 525 …MethodHandle, java.lang.invoke.MethodHandle, java.lang.invoke.MethodHandle, java.lang.invoke.Metho… 529 …lang.invoke.MethodType, java.lang.invoke.MethodType, java.lang.invoke.MethodHandle, java.lang.invo… 533 …|[16] java.lang.invoke.MethodHandle proto(java.lang.Class, java.lang.String, java.lang.invoke.Meth… 535 0004b0: 1600 0000 | return_type_idx: 00000016 // java.lang.invoke.MethodHandle 537 … |[17] java.lang.invoke.MethodHandle proto(java.lang.invoke.MethodType) 539 0004bc: 1600 0000 | return_type_idx: 00000016 // java.lang.invoke.MethodHandle [all …]
|
/dalvik/dx/tests/142-const-method-handle/ |
D | info.txt | 1 This test checks the conversion of ldc with a MethodHandle operand
|
/dalvik/dx/tests/134-maindexlist-lambdas/ |
D | info.txt | 2 MethodType and MethodHandle entries in the constant pool.
|
/dalvik/dx/src/com/android/dx/merge/ |
D | IndexMap.java | 47 import com.android.dex.MethodHandle; 219 public MethodHandle adjust(MethodHandle methodHandle) { in adjust() 220 return new MethodHandle( in adjust()
|
D | DexMerger.java | 28 import com.android.dex.MethodHandle; 506 new IdMerger<MethodHandle>(idsDefsOut) { in mergeMethodHandles() 513 MethodHandle read(Dex.Section in, IndexMap indexMap, int index) { in mergeMethodHandles() 523 void write(MethodHandle value) { in mergeMethodHandles()
|
/dalvik/dx/tests/139-lambda-metafactory/ |
D | expected.txt | 65 |[13] "Ljava/lang/invoke/MethodHandle;" 141 |[c] Ljava/lang/invoke/MethodHandle; 165 …lang.invoke.MethodType, java.lang.invoke.MethodType, java.lang.invoke.MethodHandle, java.lang.invo… 241 …lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invo… 276 …lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invo… 281 …lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invo… 284 …lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invo… 357 …lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invo… 439 0003a4: 0c00 | 000c // java.lang.invoke.MethodHandle 529 0004d1: 4c6a 6176 612f 6c61 6e67|"Ljava/lang/invoke/MethodHandle;" [all …]
|