Home
last modified time | relevance | path

Searched refs:vh (Results 1 – 7 of 7) sorted by relevance

/art/test/712-varhandle-invocations/src/
DVarHandleTypeConversionTests.java26 private static final VarHandle vh; field in VarHandleTypeConversionTests.VoidReturnTypeTest
31 vh = MethodHandles.lookup().findVarHandle(cls, "i", int.class);
40 vh.setVolatile(this, 33); in doTest()
41 vh.get(this); in doTest()
42 vh.compareAndSet(this, 33, 44); in doTest()
43 vh.compareAndSet(this, 27, 16); in doTest()
44 vh.weakCompareAndSet(this, 17, 19); in doTest()
45 vh.getAndSet(this, 200000); in doTest()
46 vh.getAndBitwiseXor(this, 0x5a5a5a5a); in doTest()
47 vh.getAndAdd(this, 99); in doTest()
[all …]
DVarHandleBadCoordinateTests.java25 private static final VarHandle vh; field in VarHandleBadCoordinateTests.FieldCoordinateTypeTest
39 vh = MethodHandles.lookup().findVarHandle(A.class, "field", byte.class);
47 vh.compareAndSet(new A(), (byte) 0, (byte) 3); in doTest()
48 vh.compareAndSet(new B(), (byte) 0, (byte) 3); in doTest()
50 vh.compareAndSet(new C(), (byte) 0, (byte) 3); in doTest()
55 vh.compareAndSet(0xbad0bad0, (byte) 0, (byte) 3); in doTest()
60 vh.compareAndSet(0xbad0bad0, (byte) 0, Integer.MAX_VALUE); in doTest()
65 vh.compareAndSet(0xbad0bad0, (byte) 0); in doTest()
70 vh.compareAndSet(new A(), (byte) 0, Integer.MAX_VALUE); in doTest()
75 vh.compareAndSet((A) null, (byte) 0, (byte) 3); in doTest()
[all …]
DVarHandleAccessorExceptionTests.java25 private static final VarHandle vh = null; field in VarHandleAccessorExceptionTests.NullReceiverTest
30 vh.set(3); in doTest()
43 private static final VarHandle vh; field in VarHandleAccessorExceptionTests.UnsupportedAccessModeTest
48 vh = MethodHandles.lookup().findStaticVarHandle(cls, "b", boolean.class);
58 vh.isAccessModeSupported(VarHandle.AccessMode.GET_AND_BITWISE_AND); in doTest()
61 vh.getAndBitwiseAnd(true); in doTest()
74 private static final VarHandle vh; field in VarHandleAccessorExceptionTests.WrongArgumentTypeCausingWrongMethodTypeTest
79 vh = MethodHandles.lookup().findVarHandle(cls, "s", short.class);
87 vh.set(this, (short) 0xcafe); in doTest()
89 vh.setVolatile(this, System.out); // System.out is a PrintStream, not short! in doTest()
[all …]
DVarHandleReflectiveTest.java24 private static final VarHandle vh; field in VarHandleReflectiveTest.ReflectiveAccessorInvocations
30 vh = MethodHandles.lookup().findStaticVarHandle(cls, "field", int.class);
42 accessorMethod.invoke(vh, new Object[] {new Object[] {}}); in doTest()
/art/runtime/mirror/
Dvar_handle_test.cc68 Handle<ArrayElementVarHandle> vh = hs.NewHandle( in CreateArrayElementVarHandle() local
76 InitializeVarHandle(vh.Get(), var_type, array_class, index_type, access_modes_bit_mask); in CreateArrayElementVarHandle()
77 return vh.Get(); in CreateArrayElementVarHandle()
133 static Class* GetVarType(VarHandle* vh) REQUIRES_SHARED(Locks::mutator_lock_) { in GetVarType() argument
134 return vh->GetVarType(); in GetVarType()
138 static Class* GetCoordinateType0(VarHandle* vh) REQUIRES_SHARED(Locks::mutator_lock_) { in GetCoordinateType0() argument
139 return vh->GetCoordinateType0(); in GetCoordinateType0()
143 static Class* GetCoordinateType1(VarHandle* vh) REQUIRES_SHARED(Locks::mutator_lock_) { in GetCoordinateType1() argument
144 return vh->GetCoordinateType1(); in GetCoordinateType1()
148 static int32_t GetAccessModesBitMask(VarHandle* vh) REQUIRES_SHARED(Locks::mutator_lock_) { in GetAccessModesBitMask() argument
[all …]
Dvar_handle.cc1431 Handle<VarHandle> vh(hs.NewHandle(this)); in IsMethodTypeCompatible() local
1432 Handle<Class> var_type(hs.NewHandle(vh->GetVarType())); in IsMethodTypeCompatible()
1471 Handle<VarHandle> vh(hs.NewHandle(this)); in IsInvokerMethodTypeCompatible() local
1472 Handle<Class> var_type(hs.NewHandle(vh->GetVarType())); in IsInvokerMethodTypeCompatible()
1515 Handle<VarHandle> vh = hs.NewHandle(var_handle); in GetMethodTypeForAccessMode() local
1516 Handle<Class> rtype = hs.NewHandle(GetReturnType(access_mode_template, vh->GetVarType())); in GetMethodTypeForAccessMode()
1518 vh->GetCoordinateType0(), in GetMethodTypeForAccessMode()
1519 vh->GetCoordinateType1()); in GetMethodTypeForAccessMode()
1528 vh->GetVarType(), in GetMethodTypeForAccessMode()
1529 vh->GetCoordinateType0(), in GetMethodTypeForAccessMode()
[all …]
/art/runtime/
Dmethod_handles.cc969 Handle<mirror::VarHandle> vh, in DoVarHandleInvokeTranslationUnchecked() argument
988 if (!vh->Access(access_mode, accessor_frame.get(), &accessor_operands, result)) { in DoVarHandleInvokeTranslationUnchecked()
1038 Handle<mirror::VarHandle> vh(hs.NewHandle(down_cast<mirror::VarHandle*>(receiver))); in DoVarHandleInvokeTranslation() local
1039 DCHECK(mirror::VarHandle::StaticClass()->IsAssignableFrom(vh->GetClass())); in DoVarHandleInvokeTranslation()
1047 hs.NewHandle(vh->GetMethodTypeForAccessMode(self, access_mode)); in DoVarHandleInvokeTranslation()
1071 vh, in DoVarHandleInvokeTranslation()