/art/test/710-varhandle-creation/src/ |
D | Main.java | 18 import java.lang.invoke.VarHandle; 19 import java.lang.invoke.VarHandle.AccessMode; 62 static final VarHandle vz; 63 static final VarHandle vb; 64 static final VarHandle vc; 65 static final VarHandle vs; 66 static final VarHandle vi; 67 static final VarHandle vj; 68 static final VarHandle vf; 69 static final VarHandle vd; [all …]
|
/art/runtime/mirror/ |
D | var_handle_test.cc | 131 static int32_t AccessModesBitMask(VarHandle::AccessMode mode) { in AccessModesBitMask() 136 static int32_t AccessModesBitMask(VarHandle::AccessMode first, Args... args) { in AccessModesBitMask() 141 static void InitializeVarHandle(ObjPtr<VarHandle> vh, in InitializeVarHandle() 145 vh->SetFieldObject<false>(VarHandle::VarTypeOffset(), var_type.Get()); in InitializeVarHandle() 146 vh->SetField32<false>(VarHandle::AccessModesBitMaskOffset(), access_modes_bit_mask); in InitializeVarHandle() 149 static void InitializeVarHandle(ObjPtr<VarHandle> vh, in InitializeVarHandle() 155 vh->SetFieldObject<false>(VarHandle::CoordinateType0Offset(), coordinate_type0.Get()); in InitializeVarHandle() 158 static void InitializeVarHandle(ObjPtr<VarHandle> vh, in InitializeVarHandle() 165 vh->SetFieldObject<false>(VarHandle::CoordinateType0Offset(), coordinate_type0.Get()); in InitializeVarHandle() 166 vh->SetFieldObject<false>(VarHandle::CoordinateType1Offset(), coordinate_type1.Get()); in InitializeVarHandle() [all …]
|
D | var_handle.cc | 44 VarHandle::AccessMode access_mode; 61 const VarHandleAccessorToAccessModeEntry kAccessorToAccessMode[VarHandle::kNumberOfAccessModes] = { 62 { "compareAndExchange", VarHandle::AccessMode::kCompareAndExchange }, 63 { "compareAndExchangeAcquire", VarHandle::AccessMode::kCompareAndExchangeAcquire }, 64 { "compareAndExchangeRelease", VarHandle::AccessMode::kCompareAndExchangeRelease }, 65 { "compareAndSet", VarHandle::AccessMode::kCompareAndSet }, 66 { "get", VarHandle::AccessMode::kGet }, 67 { "getAcquire", VarHandle::AccessMode::kGetAcquire }, 68 { "getAndAdd", VarHandle::AccessMode::kGetAndAdd }, 69 { "getAndAddAcquire", VarHandle::AccessMode::kGetAndAddAcquire }, [all …]
|
D | var_handle.h | 49 class MANAGED VarHandle : public Object { 177 return MemberOffset(OFFSETOF_MEMBER(VarHandle, var_type_)); in VarTypeOffset() 181 return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type0_)); in CoordinateType0Offset() 185 return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type1_)); in CoordinateType1Offset() 189 return MemberOffset(OFFSETOF_MEMBER(VarHandle, access_modes_bit_mask_)); in AccessModesBitMaskOffset() 197 ObjPtr<VarHandle> var_handle, 208 DISALLOW_IMPLICIT_CONSTRUCTORS(VarHandle); 213 class MANAGED FieldVarHandle : public VarHandle { 273 class MANAGED ArrayElementVarHandle : public VarHandle { 292 class MANAGED ByteArrayViewVarHandle : public VarHandle { [all …]
|
/art/test/567-checker-builder-intrinsics/src/ |
D | TestVarHandles.java | 17 import java.lang.invoke.VarHandle; 37 VarHandle.fullFence(); in fullFence() 46 VarHandle.acquireFence(); in acquireFence() 55 VarHandle.releaseFence(); in releaseFence() 64 VarHandle.loadLoadFence(); in loadLoadFence() 73 VarHandle.storeStoreFence(); in storeStoreFence()
|
/art/test/954-invoke-polymorphic-verifier/smali/ |
D | VarHandleHappyAccessors.smali | 24 invoke-static {}, LVarHandleHappyAccessors;->getVarHandle()Ljava/lang/invoke/VarHandle; 29 …invoke-polymorphic {v0, v1}, Ljava/lang/invoke/VarHandle;->compareAndExchange([Ljava/lang/Object;)… 30 …invoke-polymorphic {v0, v1}, Ljava/lang/invoke/VarHandle;->compareAndExchangeAcquire([Ljava/lang/O… 31 …invoke-polymorphic {v0, v1}, Ljava/lang/invoke/VarHandle;->compareAndExchangeRelease([Ljava/lang/O… 32 …invoke-polymorphic {v0, v1}, Ljava/lang/invoke/VarHandle;->compareAndSet([Ljava/lang/Object;)Z, ([… 33 …invoke-polymorphic {v0, v1}, Ljava/lang/invoke/VarHandle;->get([Ljava/lang/Object;)Ljava/lang/Obje… 34 …invoke-polymorphic {v0, v1}, Ljava/lang/invoke/VarHandle;->getAcquire([Ljava/lang/Object;)Ljava/la… 35 …invoke-polymorphic {v0, v1}, Ljava/lang/invoke/VarHandle;->getAndAdd([Ljava/lang/Object;)Ljava/lan… 36 …invoke-polymorphic {v0, v1}, Ljava/lang/invoke/VarHandle;->getAndAddAcquire([Ljava/lang/Object;)Lj… 37 …invoke-polymorphic {v0, v1}, Ljava/lang/invoke/VarHandle;->getAndAddRelease([Ljava/lang/Object;)Lj… [all …]
|
D | VarHandleUnhappyAccessors.smali | 24 invoke-static {}, LVarHandleUnhappyAccessors;->getVarHandle()Ljava/lang/invoke/VarHandle; 28 … v1}, LVarHandleUnhappyAccessors;->compareAndExchange(Ljava/lang/invoke/VarHandle;[Ljava/lang/Obje… 29 …-static {v0}, LVarHandleUnhappyAccessors;->compareAndExchangeAcquire(Ljava/lang/invoke/VarHandle;)V 30 …-static {v0}, LVarHandleUnhappyAccessors;->compareAndExchangeRelease(Ljava/lang/invoke/VarHandle;)V 31 invoke-static {v0}, LVarHandleUnhappyAccessors;->compareAndSet(Ljava/lang/invoke/VarHandle;)V 35 # The following methods all invoke VarHandle accessors but the targetted 38 .method public static compareAndExchange(Ljava/lang/invoke/VarHandle;[Ljava/lang/Object;)V 40 …invoke-polymorphic {p0, p1}, Ljava/lang/invoke/VarHandle;->compareAndExchange([Ljava/lang/Object;)… 43 .method public static compareAndExchangeAcquire(Ljava/lang/invoke/VarHandle;)V 46 …invoke-polymorphic {p0, v0}, Ljava/lang/invoke/VarHandle;->compareAndExchangeAcquire(I)Ljava/lang/… [all …]
|
D | VarHandleUnknownAccessor.smali | 24 invoke-static {}, LVarHandleUnknownAccessor;->getVarHandle()Ljava/lang/invoke/VarHandle; 28 # Attempt invoke-polymorphic on VarHandle.unknownAccessor(). 29 …invoke-polymorphic {v0, v1}, Ljava/lang/invoke/VarHandle;->unknownAccessor([Ljava/lang/Object;)Lja… 33 .method public static getVarHandle()Ljava/lang/invoke/VarHandle;
|
/art/runtime/ |
D | var_handles.cc | 32 Handle<mirror::VarHandle> var_handle, in VarHandleInvokeAccessorWithConversions() 34 const mirror::VarHandle::AccessMode access_mode, in VarHandleInvokeAccessorWithConversions() 63 Handle<mirror::VarHandle> var_handle, in VarHandleInvokeAccessor() 65 const mirror::VarHandle::AccessMode access_mode, in VarHandleInvokeAccessor() 78 mirror::VarHandle::MatchKind match_kind = in VarHandleInvokeAccessor() 80 if (LIKELY(match_kind == mirror::VarHandle::MatchKind::kExact)) { in VarHandleInvokeAccessor() 82 } else if (match_kind == mirror::VarHandle::MatchKind::kWithConversions) { in VarHandleInvokeAccessor() 91 DCHECK_EQ(match_kind, mirror::VarHandle::MatchKind::kNone); in VarHandleInvokeAccessor()
|
D | var_handles.h | 26 Handle<mirror::VarHandle> var_handle, 28 const mirror::VarHandle::AccessMode access_mode,
|
/art/test/954-invoke-polymorphic-verifier/ |
D | expected-stdout.txt | 12 …VarHandle, java.lang.Object[]) failed to verify: void VarHandleUnhappyAccessors.compareAndExchange… 13 …VarHandle) failed to verify: void VarHandleUnhappyAccessors.compareAndExchangeAcquire(java.lang.in… 14 …VarHandle) failed to verify: void VarHandleUnhappyAccessors.compareAndExchangeRelease(java.lang.in… 15 …VarHandle) failed to verify: void VarHandleUnhappyAccessors.compareAndSet(java.lang.invoke.VarHand… 16 …arHandleUnknownAccessor.<init>(): couldn't find method java.lang.invoke.VarHandle.unknownAccessor …
|
/art/test/712-varhandle-invocations/src/ |
D | VarHandleReflectiveTest.java | 18 import java.lang.invoke.VarHandle; 24 private static final VarHandle vh; 38 for (VarHandle.AccessMode accessMode : VarHandle.AccessMode.values()) { in doTest() 40 VarHandle.class.getMethod(accessMode.methodName(), Object[].class); in doTest()
|
D | VarHandleAccessorExceptionTests.java | 18 import java.lang.invoke.VarHandle; 25 private static final VarHandle vh = null; 43 private static final VarHandle vh; 58 vh.isAccessModeSupported(VarHandle.AccessMode.GET_AND_BITWISE_AND); in doTest() 74 private static final VarHandle vh; 103 private static final VarHandle vh; 131 private static final VarHandle vh; 162 private static final VarHandle vh; 194 private static final VarHandle vh; 208 boolean supported = vh.isAccessModeSupported(VarHandle.AccessMode.GET_AND_BITWISE_AND); in doTest()
|
D | VarHandleTypeConversionTests.java | 18 import java.lang.invoke.VarHandle; 26 private static final VarHandle vh; 59 private static final VarHandle vh; 111 private static final VarHandle vh; 139 private static final VarHandle vh; 166 private static final VarHandle vh; 193 private static final VarHandle vh; 222 private static final VarHandle vh; 250 private static final VarHandle vh; 279 private static final VarHandle vh; [all …]
|
D | VarHandleFpCasTests.java | 18 import java.lang.invoke.VarHandle; 22 private static final VarHandle vh; 52 private static final VarHandle vh;
|
D | VarHandleBadCoordinateTests.java | 18 import java.lang.invoke.VarHandle; 25 private static final VarHandle vh; 92 private static final VarHandle vh; 128 private static final VarHandle vh; 156 private static final VarHandle vh; 182 private static final VarHandle vh; 207 private static final VarHandle vh; 233 private static final VarHandle vh; 275 private static final VarHandle vh; 480 private static final VarHandle vh; [all …]
|
/art/test/716-jli-jit-samples/src-art/ |
D | Main.java | 20 import java.lang.invoke.VarHandle; 27 private static final VarHandle widgetIdVarHandle; 121 assertEquals(initialHotnessCounter, getHotnessCounter(VarHandle.class, "set")); in testVarHandleCounters() 122 assertEquals(initialHotnessCounter, getHotnessCounter(VarHandle.class, "get")); in testVarHandleCounters() 126 Method setMethod = VarHandle.class.getMethod(accessorName, Object[].class); in testVarHandleCounters() 134 assertEquals(initialHotnessCounter, getHotnessCounter(VarHandle.class, "set")); in testVarHandleCounters() 135 assertEquals(initialHotnessCounter, getHotnessCounter(VarHandle.class, "get")); in testVarHandleCounters() 142 initialHotnessCounter = getHotnessCounter(VarHandle.class, "set"); in main()
|
/art/test/1981-structural-redef-private-method-handles/src/art/ |
D | Test1981_Varhandles.java | 37 return ((VarHandle) vh).get(); in get() 41 ((VarHandle) vh).set(v); in set() 44 return v instanceof VarHandle; in instanceofVarHandle() 47 return ((VarHandle)v).varType().getName(); in getVarTypeName()
|
/art/compiler/optimizing/ |
D | intrinsics_utils.h | 105 mirror::VarHandle::AccessModeTemplate access_mode_template = in GetExpectedVarHandleCoordinatesCount() 106 mirror::VarHandle::GetAccessModeTemplateByIntrinsic(invoke->GetIntrinsic()); in GetExpectedVarHandleCoordinatesCount() 107 size_t var_type_count = mirror::VarHandle::GetNumberOfVarTypeParameters(access_mode_template); in GetExpectedVarHandleCoordinatesCount() 151 mirror::VarHandle::AccessModeTemplate access_mode = in IsVarHandleGet() 152 mirror::VarHandle::GetAccessModeTemplateByIntrinsic(invoke->GetIntrinsic()); in IsVarHandleGet() 153 return access_mode == mirror::VarHandle::AccessModeTemplate::kGet; in IsVarHandleGet() 181 mirror::VarHandle::AccessModeTemplate access_mode = in IsVarHandleCASFamily() 182 mirror::VarHandle::GetAccessModeTemplateByIntrinsic(invoke->GetIntrinsic()); in IsVarHandleCASFamily() 183 return access_mode == mirror::VarHandle::AccessModeTemplate::kCompareAndSet || in IsVarHandleCASFamily() 184 access_mode == mirror::VarHandle::AccessModeTemplate::kGetAndUpdate || in IsVarHandleCASFamily() [all …]
|
/art/test/713-varhandle-invokers/src/ |
D | Main.java | 22 import java.lang.invoke.VarHandle; 77 private static final VarHandle fieldVarHandle; 94 VarHandle.AccessMode.GET_AND_SET, in run() 137 VarHandle vhNull = null; in run() 170 VarHandle vhNull = null; in run() 182 private static final VarHandle fieldVarHandle; 201 VarHandle.AccessMode.COMPARE_AND_SET, in run() 222 private static final VarHandle fieldVarHandle; 237 VarHandle.AccessMode.GET_AND_SET, in run() 282 VarHandle vhNull = null; in run() [all …]
|
/art/test/710-varhandle-creation/ |
D | info.txt | 1 This test checks VarHandle creation and the VarHandle instance methods
|
/art/test/716-jli-jit-samples/ |
D | expected-stdout.txt | 3 VarHandle OK
|
D | info.txt | 1 Test MethodHandle and VarHandle invokes do not accumulate JIT samples
|
/art/test/2239-varhandle-perf/ |
D | info.txt | 1 Temporary benchmarks for VarHandle accessors and some alternatives.
|
/art/test/712-varhandle-invocations/ |
D | info.txt | 1 Generates and runs tests that invoke VarHandle accessor methods.
|