/art/test/953-invoke-polymorphic-compiler/src/ |
D | Main.java | 115 mh = MethodHandles.lookup().findStatic( in $opt$BasicTest() 120 mh = MethodHandles.lookup().findStatic( in $opt$BasicTest() 127 mh = MethodHandles.lookup().findStatic( in $opt$BasicTest() 149 mh = MethodHandles.lookup().findStatic( in $opt$BasicTest() 227 MethodHandles.Lookup lookup = MethodHandles.lookup(); in $opt$ReturnBooleanTest() local 229 lookup.findStatic(Main.class, "And", in $opt$ReturnBooleanTest() 240 mh = lookup.findStatic(Main.class, "Xor", in $opt$ReturnBooleanTest() 255 MethodHandles.Lookup lookup = MethodHandles.lookup(); in $opt$ReturnCharTest() local 256 MethodHandle mh = lookup.findStatic(Main.class, "Next", in $opt$ReturnCharTest() 264 MethodHandles.Lookup lookup = MethodHandles.lookup(); in $opt$ReturnByteTest() local [all …]
|
/art/test/956-methodhandles/src/ |
D | Main.java | 41 public static final Lookup lookup = MethodHandles.lookup(); field in Main.A 49 public static final Lookup lookup = MethodHandles.lookup(); field in Main.B 53 public static final Lookup lookup = MethodHandles.lookup(); field in Main.C 61 public static final Lookup lookup = MethodHandles.lookup(); field in Main.D 65 public static final Lookup lookup = MethodHandles.lookup(); field in Main.E 87 MethodHandle mh1 = B.lookup.findSpecial(A.class /* refC */, "foo", in testfindSpecial_invokeSuperBehaviour() 117 MethodHandle mh2 = C.lookup.findSpecial(A.class /* refC */, "foo", in testfindSpecial_invokeSuperBehaviour() 123 C.lookup.findSpecial(A.class, "foo", in testfindSpecial_invokeSuperBehaviour() 131 B.lookup.findSpecial(A.class /* refC */, "foo", in testfindSpecial_invokeSuperBehaviour() 137 B.lookup.findSpecial(A.class /* refC */, "<init>", in testfindSpecial_invokeSuperBehaviour() [all …]
|
/art/test/959-invoke-polymorphic-accessors/src/ |
D | Main.java | 550 MethodHandles.Lookup lookup = MethodHandles.lookup(); in main() local 555 tryAccessor(lookup.findSetter(ValueHolder.class, "m_z", boolean.class), in main() 557 tryAccessor(lookup.findGetter(ValueHolder.class, "m_z", boolean.class), in main() 560 tryAccessor(lookup.findStaticSetter(ValueHolder.class, "s_z", boolean.class), in main() 562 tryAccessor(lookup.findStaticGetter(ValueHolder.class, "s_z", boolean.class), in main() 570 tryAccessor(lookup.findSetter(ValueHolder.class, "m_b", byte.class), in main() 572 tryAccessor(lookup.findGetter(ValueHolder.class, "m_b", byte.class), in main() 575 tryAccessor(lookup.findStaticSetter(ValueHolder.class, "s_b", byte.class), in main() 577 tryAccessor(lookup.findStaticGetter(ValueHolder.class, "s_b", byte.class), in main() 585 tryAccessor(lookup.findSetter(ValueHolder.class, "m_c", char.class), in main() [all …]
|
/art/test/957-methodhandle-transforms/src/ |
D | Main.java | 72 MethodHandle delegate = MethodHandles.lookup().findStatic(Main.class, in testDropArguments() 158 MethodHandle target = MethodHandles.lookup().findStatic(Main.class, in testCatchException() 162 MethodHandle handler = MethodHandles.lookup().findStatic(Main.class, in testCatchException() 186 handler = MethodHandles.lookup().findStatic(Main.class, in testCatchException() 200 handler = MethodHandles.lookup().findVirtual(IllegalArgumentException.class, in testCatchException() 233 MethodHandle test = MethodHandles.lookup().findStatic(Main.class, in testGuardWithTest() 240 final MethodHandle target = MethodHandles.lookup().findStatic(Main.class, in testGuardWithTest() 242 final MethodHandle fallback = MethodHandles.lookup().findStatic(Main.class, in testGuardWithTest() 685 MethodHandle stringCharAt = MethodHandles.lookup().findVirtual( in testBindTo() 712 MethodHandle integerParseInt = MethodHandles.lookup().findStatic( in testBindTo() [all …]
|
/art/test/958-methodhandle-stackframe/src-art/ |
D | Main.java | 84 MethodHandle specialFunctionHandle = MethodHandles.lookup().findStatic( in main() 118 MethodHandle returner = MethodHandles.lookup().findStatic( in main() 126 returner = MethodHandles.lookup().findStatic( in main() 134 returner = MethodHandles.lookup().findStatic( in main() 142 returner = MethodHandles.lookup().findStatic( in main() 150 returner = MethodHandles.lookup().findStatic( in main() 158 returner = MethodHandles.lookup().findStatic( in main() 166 returner = MethodHandles.lookup().findStatic( in main()
|
/art/runtime/mirror/ |
D | method_handles_lookup.cc | 61 ArtMethod* lookup = jni::DecodeArtMethod(WellKnownClasses::java_lang_invoke_MethodHandles_lookup); in GetDefault() local 63 lookup->Invoke(self, nullptr, 0, &result, "L"); in GetDefault()
|
/art/test/656-annotation-lookup-generic-jni/ |
D | info.txt | 7 annotation lookup).
|
/art/test/990-method-handle-and-mr/src/ |
D | Main.java | 32 this.handle = MethodHandles.lookup().findVirtual(A.class, "binaryFunction", in Test()
|
/art/test/VerifierDeps/ |
D | Main.smali | 417 # be called with invoke-virtual. However, the lookup type does not depend 419 # TODO: Maybe we should not record dependency if the invoke type does not match the lookup type. 427 …# However, the lookup type does not depend on the invoke type, so it shall be resolved here anyway. 428 # TODO: Maybe we should not record dependency if the invoke type does not match the lookup type.
|
/art/test/955-methodhandles-smali/smali/ |
D | Main.smali | 21 # the public lookup object. 25 # Get a reference to the public lookup object (MethodHandles.publicLookup()). 38 # the public lookup object. 42 # Get a reference to the public lookup object (MethodHandles.publicLookup()).
|
/art/runtime/interpreter/ |
D | interpreter_common.cc | 670 ObjPtr<mirror::MethodHandlesLookup> lookup = in InvokeBootstrapMethod() local 672 if (lookup.IsNull()) { in InvokeBootstrapMethod() 676 bootstrap_frame->SetVRegReference(vreg++, lookup.Ptr()); in InvokeBootstrapMethod()
|
/art/test/ |
D | Android.bp | 410 "656-annotation-lookup-generic-jni/test.cc",
|
/art/test/dexdump/ |
D | invoke-custom.txt | 267 … |0007: invoke-static {}, Ljava/lang/invoke/MethodHandles;.lookup:()Ljava/lang/invok… 328 … |003c: invoke-static {}, Ljava/lang/invoke/MethodHandles;.lookup:()Ljava/lang/invok… 415 … |0071: invoke-static {}, Ljava/lang/invoke/MethodHandles;.lookup:()Ljava/lang/invok…
|
/art/runtime/ |
D | class_linker.cc | 8548 Handle<mirror::MethodHandlesLookup> lookup = in ResolveMethodHandleForMethod() local 8550 return lookup->FindConstructor(self, constructor_class, method_type); in ResolveMethodHandleForMethod()
|