HomeSort by relevance Sort by last modified time
    Searched refs:MethodHandle (Results 1 - 25 of 86) sorted by null

1 2 3 4

  /art/runtime/mirror/
call_site-inl.h 27 inline ObjPtr<MethodHandle> CallSite::GetTarget() {
28 return GetFieldObject<MethodHandle>(TargetOffset());
method_handle_impl-inl.h 28 inline ObjPtr<mirror::MethodType> MethodHandle::GetMethodType() {
29 return GetFieldObject<mirror::MethodType>(OFFSET_OF_OBJECT_MEMBER(MethodHandle, method_type_));
32 inline ObjPtr<mirror::MethodType> MethodHandle::GetNominalType() {
33 return GetFieldObject<mirror::MethodType>(OFFSET_OF_OBJECT_MEMBER(MethodHandle, nominal_type_));
36 inline ObjPtr<mirror::Class> MethodHandle::GetTargetClass() {
call_site.h 32 ObjPtr<MethodHandle> GetTarget() REQUIRES_SHARED(Locks::mutator_lock_);
39 HeapReference<mirror::MethodHandle> target_;
method_handle_impl.h 34 // C++ mirror of java.lang.invoke.MethodHandle
35 class MANAGED MethodHandle : public Object {
42 // java.lang.invoke.MethodHandle.
64 const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_));
76 GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_)));
81 GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_)));
95 HeapReference<mirror::MethodHandle> cached_spread_invoker_;
103 return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_));
106 return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_));
109 return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_))
    [all...]
method_handles_lookup.h 32 class MethodHandle;
46 ObjPtr<mirror::MethodHandle> FindConstructor(Thread* const self,
method_handle_impl.cc 25 const char* MethodHandle::GetReturnTypeDescriptor(const char* invoke_method_name) {
33 void MethodHandle::Initialize(uintptr_t art_field_or_method,
47 MethodHandle::Kind kind,
  /dalvik/dx/tests/132-invoke-polymorphic/
TestInvokePolymorphic.java 17 import java.lang.invoke.MethodHandle;
20 public static void testInvokeVoidReturnNoArgs(MethodHandle mh) throws Throwable {
24 public static void testInvokeExactVoidReturnNoArgs(MethodHandle mh) throws Throwable {
28 public static int testInvokeIntReturnNoArgs(MethodHandle mh) throws Throwable {
32 public static int testInvokeExactIntReturnNoArgs(MethodHandle mh) throws Throwable {
36 public static long testInvokeLongReturnNoArgs(MethodHandle mh) throws Throwable {
40 public static long testInvokeExactLongReturnNoArgs(MethodHandle mh) throws Throwable {
44 public static double testInvokeDoubleReturnNoArgs(MethodHandle mh) throws Throwable {
48 public static double testInvokeExactDoubleReturnNoArgs(MethodHandle mh) throws Throwable {
52 public static double testInvokeDoubleReturn2Arguments(MethodHandle mh, Object o, long l
    [all...]
  /art/test/1948-obsolete-const-method-handle/util-src/src/art/constmethodhandle/
TestInvoke.java 19 import java.lang.invoke.MethodHandle;
30 // MethodHandle handle = CONSTANT_MH<Responses.sayHi>;
  /dalvik/dx/tests/142-const-method-handle/src/
Main.java 18 import java.lang.invoke.MethodHandle;
26 MethodHandle generatedMain = MethodHandles.lookup()
  /dalvik/dx/tests/142-const-method-handle/src/constmethodhandle/
ConstTest.java 19 import java.lang.invoke.MethodHandle;
23 private static void displayMethodHandle(MethodHandle mh) throws Throwable {
24 System.out.println("MethodHandle " + mh + " => " +
  /external/robolectric-shadows/sandbox/src/main/java/org/robolectric/internal/bytecode/
MethodCallSite.java 5 import java.lang.invoke.MethodHandle;
10 private final MethodHandle original;
13 public MethodCallSite(Class<?> theClass, MethodType type, String name, MethodHandle original,
25 public MethodHandle getOriginal() {
InvokeDynamicSupport.java 16 import java.lang.invoke.MethodHandle;
27 private static final MethodHandle BIND_CALL_SITE;
28 private static final MethodHandle BIND_INIT_CALL_SITE;
29 private static final MethodHandle EXCEPTION_HANDLER;
30 private static final MethodHandle GET_SHADOW;
37 methodType(MethodHandle.class, MethodCallSite.class));
39 methodType(MethodHandle.class, RoboCallSite.class));
40 MethodHandle cleanStackTrace = lookup.findStatic(RobolectricInternals.class, "cleanStackTrace",
60 MethodHandle original) throws IllegalAccessException {
70 MethodHandle original) throws IllegalAccessException
    [all...]
ClassHandler.java 3 import java.lang.invoke.MethodHandle;
61 * The returned {@link MethodHandle} will be invoked after the new object has been allocated
71 * @see ShadowInvalidator for invalidating the returned {@link MethodHandle}
73 MethodHandle getShadowCreator(Class<?> theClass);
78 * Implementations should return an {@link MethodHandle}, which will be invoked with details about
90 * @see ShadowInvalidator for invalidating the returned {@link MethodHandle}
92 MethodHandle findShadowMethodHandle(Class<?> theClass, String name, MethodType methodType,
Interceptor.java 3 import java.lang.invoke.MethodHandle;
22 abstract public MethodHandle getMethodHandle(String methodName, MethodType type) throws NoSuchMethodException, IllegalAccessException;
  /art/test/954-invoke-polymorphic-verifier/smali/
MethodHandleToString.smali 24 invoke-static {}, LMethodHandleToString;->getMethodHandle()Ljava/lang/invoke/MethodHandle;
26 # Attempt invoke-polymorphic on MethodHandle.toString().
27 invoke-polymorphic {v0}, Ljava/lang/invoke/MethodHandle;->toString()Ljava/lang/String;, ()Ljava/lang/Object;
31 .method public static getMethodHandle()Ljava/lang/invoke/MethodHandle;
MethodHandleNotInvoke.smali 24 invoke-static {}, LMethodHandleNotInvoke;->getMethodHandle()Ljava/lang/invoke/MethodHandle;
28 # Attempt invoke-polymorphic on MethodHandle.notInvoke().
29 invoke-polymorphic {v0, v1}, Ljava/lang/invoke/MethodHandle;->notInvoke([Ljava/lang/Object;)Ljava/lang/Object;, ([Ljava/lang/Object;)Ljava/lang/Object;
33 .method public static getMethodHandle()Ljava/lang/invoke/MethodHandle;
TooFewArguments.smali 24 # Set up v0 as a null MethodHandle
27 invoke-virtual {v0}, Ljava/lang/invoke/MethodHandle;->asFixedArity()Ljava/lang/invoke/MethodHandle;
31 invoke-polymorphic {v0, v1}, Ljava/lang/invoke/MethodHandle;->invoke([Ljava/lang/Object;)Ljava/lang/Object;, (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
TooManyArguments.smali 24 # Set up v0 as a null MethodHandle
27 invoke-virtual {v0}, Ljava/lang/invoke/MethodHandle;->asFixedArity()Ljava/lang/invoke/MethodHandle;
33 invoke-polymorphic {v0, v1, v2, v3}, Ljava/lang/invoke/MethodHandle;->invoke([Ljava/lang/Object;)Ljava/lang/Object;, (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
  /dalvik/dx/tests/138-invoke-polymorphic-again/
Main.java 17 import java.lang.invoke.MethodHandle;
41 MethodHandle mh0 = null;
53 MethodHandle mh0 = null;
  /art/test/716-jli-jit-samples/src-art/
Main.java 17 import java.lang.invoke.MethodHandle;
80 // Regular MethodHandle invocations
81 MethodHandle mh =
87 assertEquals(0, getHotnessCounter(MethodHandle.class, "invoke"));
88 assertEquals(0, getHotnessCounter(MethodHandle.class, "invokeExact"));
90 // Reflective MethodHandle invocations
93 Method invokeMethod = MethodHandle.class.getMethod(methodName, Object[].class);
94 MethodHandle instance =
105 assertEquals(0, getHotnessCounter(MethodHandle.class, "invoke"));
106 assertEquals(0, getHotnessCounter(MethodHandle.class, "invokeExact"))
    [all...]
  /art/test/952-invoke-custom/src/
UnrelatedBSM.java 19 import java.lang.invoke.MethodHandle;
27 MethodHandle mh = lookup.findStatic(target, name, methodType);
  /dalvik/dx/tests/135-invoke-custom/src/invokecustom/
InvokeCustom.java 21 import java.lang.invoke.MethodHandle;
104 private static void checkStaticFieldTest9(MethodHandle getter, MethodHandle setter)
117 private void checkFieldTest9(MethodHandle getter, MethodHandle setter)
144 final MethodHandle targetMH = lookup.findStatic(lookup.lookupClass(), name, type);
153 final MethodHandle targetMH = lookup.findStatic(lookup.lookupClass(), name, type);
158 MethodHandles.Lookup caller, String name, MethodType type, MethodHandle mh)
169 MethodHandle staticGetter, MethodHandle staticSetter
    [all...]
  /dalvik/dx/tests/137-dexmerger-dex38/src/invokecustom/
InvokeCustom.java 21 import java.lang.invoke.MethodHandle;
100 private static void checkStaticFieldTest9(MethodHandle getter, MethodHandle setter)
113 private void checkFieldTest9(MethodHandle getter, MethodHandle setter)
140 final MethodHandle targetMH = lookup.findStatic(lookup.lookupClass(), name, type);
149 final MethodHandle targetMH = lookup.findStatic(lookup.lookupClass(), name, type);
154 MethodHandles.Lookup caller, String name, MethodType type, MethodHandle mh)
161 MethodHandle staticGetter, MethodHandle staticSetter
    [all...]
  /dalvik/dx/src/com/android/dex/
MethodHandle.java 26 public class MethodHandle implements Comparable<MethodHandle> {
77 public MethodHandle(
91 public int compareTo(MethodHandle o) {
  /art/test/1948-obsolete-const-method-handle/util-src/src/art/
Test1948.java 21 import java.lang.invoke.MethodHandle;
35 MethodHandle getClassBase64 = MethodHandles.lookup().findStatic(
37 MethodHandle getDexBase64 = MethodHandles.lookup().findStatic(

Completed in 445 milliseconds

1 2 3 4