Lines Matching refs:VarHandle
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 },
70 { "getAndAddRelease", VarHandle::AccessMode::kGetAndAddRelease },
71 { "getAndBitwiseAnd", VarHandle::AccessMode::kGetAndBitwiseAnd },
72 { "getAndBitwiseAndAcquire", VarHandle::AccessMode::kGetAndBitwiseAndAcquire },
73 { "getAndBitwiseAndRelease", VarHandle::AccessMode::kGetAndBitwiseAndRelease },
74 { "getAndBitwiseOr", VarHandle::AccessMode::kGetAndBitwiseOr },
75 { "getAndBitwiseOrAcquire", VarHandle::AccessMode::kGetAndBitwiseOrAcquire },
76 { "getAndBitwiseOrRelease", VarHandle::AccessMode::kGetAndBitwiseOrRelease },
77 { "getAndBitwiseXor", VarHandle::AccessMode::kGetAndBitwiseXor },
78 { "getAndBitwiseXorAcquire", VarHandle::AccessMode::kGetAndBitwiseXorAcquire },
79 { "getAndBitwiseXorRelease", VarHandle::AccessMode::kGetAndBitwiseXorRelease },
80 { "getAndSet", VarHandle::AccessMode::kGetAndSet },
81 { "getAndSetAcquire", VarHandle::AccessMode::kGetAndSetAcquire },
82 { "getAndSetRelease", VarHandle::AccessMode::kGetAndSetRelease },
83 { "getOpaque", VarHandle::AccessMode::kGetOpaque },
84 { "getVolatile", VarHandle::AccessMode::kGetVolatile },
85 { "set", VarHandle::AccessMode::kSet },
86 { "setOpaque", VarHandle::AccessMode::kSetOpaque },
87 { "setRelease", VarHandle::AccessMode::kSetRelease },
88 { "setVolatile", VarHandle::AccessMode::kSetVolatile },
89 { "weakCompareAndSet", VarHandle::AccessMode::kWeakCompareAndSet },
90 { "weakCompareAndSetAcquire", VarHandle::AccessMode::kWeakCompareAndSetAcquire },
91 { "weakCompareAndSetPlain", VarHandle::AccessMode::kWeakCompareAndSetPlain },
92 { "weakCompareAndSetRelease", VarHandle::AccessMode::kWeakCompareAndSetRelease },
107 AccessModeTemplate GetAccessModeTemplate(VarHandle::AccessMode access_mode) { in GetAccessModeTemplate()
109 case VarHandle::AccessMode::kGet: in GetAccessModeTemplate()
111 case VarHandle::AccessMode::kSet: in GetAccessModeTemplate()
113 case VarHandle::AccessMode::kGetVolatile: in GetAccessModeTemplate()
115 case VarHandle::AccessMode::kSetVolatile: in GetAccessModeTemplate()
117 case VarHandle::AccessMode::kGetAcquire: in GetAccessModeTemplate()
119 case VarHandle::AccessMode::kSetRelease: in GetAccessModeTemplate()
121 case VarHandle::AccessMode::kGetOpaque: in GetAccessModeTemplate()
123 case VarHandle::AccessMode::kSetOpaque: in GetAccessModeTemplate()
125 case VarHandle::AccessMode::kCompareAndSet: in GetAccessModeTemplate()
127 case VarHandle::AccessMode::kCompareAndExchange: in GetAccessModeTemplate()
129 case VarHandle::AccessMode::kCompareAndExchangeAcquire: in GetAccessModeTemplate()
131 case VarHandle::AccessMode::kCompareAndExchangeRelease: in GetAccessModeTemplate()
133 case VarHandle::AccessMode::kWeakCompareAndSetPlain: in GetAccessModeTemplate()
135 case VarHandle::AccessMode::kWeakCompareAndSet: in GetAccessModeTemplate()
137 case VarHandle::AccessMode::kWeakCompareAndSetAcquire: in GetAccessModeTemplate()
139 case VarHandle::AccessMode::kWeakCompareAndSetRelease: in GetAccessModeTemplate()
141 case VarHandle::AccessMode::kGetAndSet: in GetAccessModeTemplate()
143 case VarHandle::AccessMode::kGetAndSetAcquire: in GetAccessModeTemplate()
145 case VarHandle::AccessMode::kGetAndSetRelease: in GetAccessModeTemplate()
147 case VarHandle::AccessMode::kGetAndAdd: in GetAccessModeTemplate()
149 case VarHandle::AccessMode::kGetAndAddAcquire: in GetAccessModeTemplate()
151 case VarHandle::AccessMode::kGetAndAddRelease: in GetAccessModeTemplate()
153 case VarHandle::AccessMode::kGetAndBitwiseOr: in GetAccessModeTemplate()
155 case VarHandle::AccessMode::kGetAndBitwiseOrRelease: in GetAccessModeTemplate()
157 case VarHandle::AccessMode::kGetAndBitwiseOrAcquire: in GetAccessModeTemplate()
159 case VarHandle::AccessMode::kGetAndBitwiseAnd: in GetAccessModeTemplate()
161 case VarHandle::AccessMode::kGetAndBitwiseAndRelease: in GetAccessModeTemplate()
163 case VarHandle::AccessMode::kGetAndBitwiseAndAcquire: in GetAccessModeTemplate()
165 case VarHandle::AccessMode::kGetAndBitwiseXor: in GetAccessModeTemplate()
167 case VarHandle::AccessMode::kGetAndBitwiseXorRelease: in GetAccessModeTemplate()
169 case VarHandle::AccessMode::kGetAndBitwiseXorAcquire: in GetAccessModeTemplate()
227 bool IsReadOnlyAccessMode(VarHandle::AccessMode access_mode) { in IsReadOnlyAccessMode()
236 int32_t BuildParameterArray(ObjPtr<Class> (¶meters)[VarHandle::kMaxAccessorParameters], in BuildParameterArray()
866 static bool Dispatch(VarHandle::AccessMode access_mode,
876 bool FieldAccessor<T>::Dispatch(VarHandle::AccessMode access_mode, in Dispatch()
882 case VarHandle::AccessMode::kGet: { in Dispatch()
887 case VarHandle::AccessMode::kSet: { in Dispatch()
893 case VarHandle::AccessMode::kGetAcquire: in Dispatch()
894 case VarHandle::AccessMode::kGetOpaque: in Dispatch()
895 case VarHandle::AccessMode::kGetVolatile: { in Dispatch()
900 case VarHandle::AccessMode::kSetOpaque: in Dispatch()
901 case VarHandle::AccessMode::kSetRelease: in Dispatch()
902 case VarHandle::AccessMode::kSetVolatile: { in Dispatch()
908 case VarHandle::AccessMode::kCompareAndSet: { in Dispatch()
915 case VarHandle::AccessMode::kCompareAndExchange: in Dispatch()
916 case VarHandle::AccessMode::kCompareAndExchangeAcquire: in Dispatch()
917 case VarHandle::AccessMode::kCompareAndExchangeRelease: { in Dispatch()
924 case VarHandle::AccessMode::kWeakCompareAndSet: in Dispatch()
925 case VarHandle::AccessMode::kWeakCompareAndSetAcquire: in Dispatch()
926 case VarHandle::AccessMode::kWeakCompareAndSetPlain: in Dispatch()
927 case VarHandle::AccessMode::kWeakCompareAndSetRelease: { in Dispatch()
934 case VarHandle::AccessMode::kGetAndSet: in Dispatch()
935 case VarHandle::AccessMode::kGetAndSetAcquire: in Dispatch()
936 case VarHandle::AccessMode::kGetAndSetRelease: { in Dispatch()
942 case VarHandle::AccessMode::kGetAndAdd: in Dispatch()
943 case VarHandle::AccessMode::kGetAndAddAcquire: in Dispatch()
944 case VarHandle::AccessMode::kGetAndAddRelease: { in Dispatch()
950 case VarHandle::AccessMode::kGetAndBitwiseOr: in Dispatch()
951 case VarHandle::AccessMode::kGetAndBitwiseOrAcquire: in Dispatch()
952 case VarHandle::AccessMode::kGetAndBitwiseOrRelease: { in Dispatch()
958 case VarHandle::AccessMode::kGetAndBitwiseAnd: in Dispatch()
959 case VarHandle::AccessMode::kGetAndBitwiseAndAcquire: in Dispatch()
960 case VarHandle::AccessMode::kGetAndBitwiseAndRelease: { in Dispatch()
966 case VarHandle::AccessMode::kGetAndBitwiseXor: in Dispatch()
967 case VarHandle::AccessMode::kGetAndBitwiseXorAcquire: in Dispatch()
968 case VarHandle::AccessMode::kGetAndBitwiseXorRelease: { in Dispatch()
980 bool FieldAccessor<ObjPtr<Object>>::Dispatch(VarHandle::AccessMode access_mode, in Dispatch()
990 case VarHandle::AccessMode::kGet: { in Dispatch()
994 case VarHandle::AccessMode::kSet: { in Dispatch()
1003 case VarHandle::AccessMode::kGetAcquire: in Dispatch()
1004 case VarHandle::AccessMode::kGetOpaque: in Dispatch()
1005 case VarHandle::AccessMode::kGetVolatile: { in Dispatch()
1009 case VarHandle::AccessMode::kSetOpaque: in Dispatch()
1010 case VarHandle::AccessMode::kSetRelease: in Dispatch()
1011 case VarHandle::AccessMode::kSetVolatile: { in Dispatch()
1020 case VarHandle::AccessMode::kCompareAndSet: { in Dispatch()
1041 case VarHandle::AccessMode::kWeakCompareAndSet: in Dispatch()
1042 case VarHandle::AccessMode::kWeakCompareAndSetAcquire: in Dispatch()
1043 case VarHandle::AccessMode::kWeakCompareAndSetPlain: in Dispatch()
1044 case VarHandle::AccessMode::kWeakCompareAndSetRelease: { in Dispatch()
1066 case VarHandle::AccessMode::kCompareAndExchange: in Dispatch()
1067 case VarHandle::AccessMode::kCompareAndExchangeAcquire: in Dispatch()
1068 case VarHandle::AccessMode::kCompareAndExchangeRelease: { in Dispatch()
1085 case VarHandle::AccessMode::kGetAndSet: in Dispatch()
1086 case VarHandle::AccessMode::kGetAndSetAcquire: in Dispatch()
1087 case VarHandle::AccessMode::kGetAndSetRelease: { in Dispatch()
1099 case VarHandle::AccessMode::kGetAndAdd: in Dispatch()
1100 case VarHandle::AccessMode::kGetAndAddAcquire: in Dispatch()
1101 case VarHandle::AccessMode::kGetAndAddRelease: in Dispatch()
1102 case VarHandle::AccessMode::kGetAndBitwiseOr: in Dispatch()
1103 case VarHandle::AccessMode::kGetAndBitwiseOrAcquire: in Dispatch()
1104 case VarHandle::AccessMode::kGetAndBitwiseOrRelease: in Dispatch()
1105 case VarHandle::AccessMode::kGetAndBitwiseAnd: in Dispatch()
1106 case VarHandle::AccessMode::kGetAndBitwiseAndAcquire: in Dispatch()
1107 case VarHandle::AccessMode::kGetAndBitwiseAndRelease: in Dispatch()
1108 case VarHandle::AccessMode::kGetAndBitwiseXor: in Dispatch()
1109 case VarHandle::AccessMode::kGetAndBitwiseXorAcquire: in Dispatch()
1110 case VarHandle::AccessMode::kGetAndBitwiseXorRelease: { in Dispatch()
1130 static bool Dispatch(VarHandle::AccessMode access_mode, in Dispatch()
1138 case VarHandle::AccessMode::kGet: { in Dispatch()
1143 case VarHandle::AccessMode::kSet: { in Dispatch()
1149 case VarHandle::AccessMode::kGetAcquire: in Dispatch()
1150 case VarHandle::AccessMode::kGetOpaque: in Dispatch()
1151 case VarHandle::AccessMode::kGetVolatile: { in Dispatch()
1156 case VarHandle::AccessMode::kSetOpaque: in Dispatch()
1157 case VarHandle::AccessMode::kSetRelease: in Dispatch()
1158 case VarHandle::AccessMode::kSetVolatile: { in Dispatch()
1164 case VarHandle::AccessMode::kCompareAndSet: { in Dispatch()
1171 case VarHandle::AccessMode::kCompareAndExchange: in Dispatch()
1172 case VarHandle::AccessMode::kCompareAndExchangeAcquire: in Dispatch()
1173 case VarHandle::AccessMode::kCompareAndExchangeRelease: { in Dispatch()
1180 case VarHandle::AccessMode::kWeakCompareAndSet: in Dispatch()
1181 case VarHandle::AccessMode::kWeakCompareAndSetAcquire: in Dispatch()
1182 case VarHandle::AccessMode::kWeakCompareAndSetPlain: in Dispatch()
1183 case VarHandle::AccessMode::kWeakCompareAndSetRelease: { in Dispatch()
1190 case VarHandle::AccessMode::kGetAndSet: in Dispatch()
1191 case VarHandle::AccessMode::kGetAndSetAcquire: in Dispatch()
1192 case VarHandle::AccessMode::kGetAndSetRelease: { in Dispatch()
1198 case VarHandle::AccessMode::kGetAndAdd: in Dispatch()
1199 case VarHandle::AccessMode::kGetAndAddAcquire: in Dispatch()
1200 case VarHandle::AccessMode::kGetAndAddRelease: { in Dispatch()
1206 case VarHandle::AccessMode::kGetAndBitwiseOr: in Dispatch()
1207 case VarHandle::AccessMode::kGetAndBitwiseOrAcquire: in Dispatch()
1208 case VarHandle::AccessMode::kGetAndBitwiseOrRelease: { in Dispatch()
1214 case VarHandle::AccessMode::kGetAndBitwiseAnd: in Dispatch()
1215 case VarHandle::AccessMode::kGetAndBitwiseAndAcquire: in Dispatch()
1216 case VarHandle::AccessMode::kGetAndBitwiseAndRelease: { in Dispatch()
1222 case VarHandle::AccessMode::kGetAndBitwiseXor: in Dispatch()
1223 case VarHandle::AccessMode::kGetAndBitwiseXorAcquire: in Dispatch()
1224 case VarHandle::AccessMode::kGetAndBitwiseXorRelease: { in Dispatch()
1253 static bool Dispatch(const VarHandle::AccessMode access_mode, in Dispatch()
1263 case VarHandle::AccessMode::kGet: { in Dispatch()
1270 case VarHandle::AccessMode::kSet: { in Dispatch()
1286 case VarHandle::AccessMode::kGet: { in Dispatch()
1292 case VarHandle::AccessMode::kSet: { in Dispatch()
1299 case VarHandle::AccessMode::kGetAcquire: in Dispatch()
1300 case VarHandle::AccessMode::kGetOpaque: in Dispatch()
1301 case VarHandle::AccessMode::kGetVolatile: { in Dispatch()
1307 case VarHandle::AccessMode::kSetOpaque: in Dispatch()
1308 case VarHandle::AccessMode::kSetRelease: in Dispatch()
1309 case VarHandle::AccessMode::kSetVolatile: { in Dispatch()
1316 case VarHandle::AccessMode::kCompareAndSet: { in Dispatch()
1325 case VarHandle::AccessMode::kCompareAndExchange: in Dispatch()
1326 case VarHandle::AccessMode::kCompareAndExchangeAcquire: in Dispatch()
1327 case VarHandle::AccessMode::kCompareAndExchangeRelease: { in Dispatch()
1337 case VarHandle::AccessMode::kWeakCompareAndSet: in Dispatch()
1338 case VarHandle::AccessMode::kWeakCompareAndSetAcquire: in Dispatch()
1339 case VarHandle::AccessMode::kWeakCompareAndSetPlain: in Dispatch()
1340 case VarHandle::AccessMode::kWeakCompareAndSetRelease: { in Dispatch()
1349 case VarHandle::AccessMode::kGetAndSet: in Dispatch()
1350 case VarHandle::AccessMode::kGetAndSetAcquire: in Dispatch()
1351 case VarHandle::AccessMode::kGetAndSetRelease: { in Dispatch()
1359 case VarHandle::AccessMode::kGetAndAdd: in Dispatch()
1360 case VarHandle::AccessMode::kGetAndAddAcquire: in Dispatch()
1361 case VarHandle::AccessMode::kGetAndAddRelease: { in Dispatch()
1372 case VarHandle::AccessMode::kGetAndBitwiseOr: in Dispatch()
1373 case VarHandle::AccessMode::kGetAndBitwiseOrAcquire: in Dispatch()
1374 case VarHandle::AccessMode::kGetAndBitwiseOrRelease: { in Dispatch()
1382 case VarHandle::AccessMode::kGetAndBitwiseAnd: in Dispatch()
1383 case VarHandle::AccessMode::kGetAndBitwiseAndAcquire: in Dispatch()
1384 case VarHandle::AccessMode::kGetAndBitwiseAndRelease: { in Dispatch()
1392 case VarHandle::AccessMode::kGetAndBitwiseXor: in Dispatch()
1393 case VarHandle::AccessMode::kGetAndBitwiseXorAcquire: in Dispatch()
1394 case VarHandle::AccessMode::kGetAndBitwiseXorRelease: { in Dispatch()
1409 ObjPtr<Class> VarHandle::GetVarType() { in GetVarType()
1413 ObjPtr<Class> VarHandle::GetCoordinateType0() { in GetCoordinateType0()
1417 ObjPtr<Class> VarHandle::GetCoordinateType1() { in GetCoordinateType1()
1421 int32_t VarHandle::GetAccessModesBitMask() { in GetAccessModesBitMask()
1425 VarHandle::MatchKind VarHandle::GetMethodTypeMatchForAccessMode(AccessMode access_mode, in GetMethodTypeMatchForAccessMode()
1429 ObjPtr<VarHandle> vh = this; in GetMethodTypeMatchForAccessMode()
1447 ObjPtr<Class> vh_ptypes[VarHandle::kMaxAccessorParameters]; in GetMethodTypeMatchForAccessMode()
1471 bool VarHandle::IsInvokerMethodTypeCompatible(AccessMode access_mode, in IsInvokerMethodTypeCompatible()
1475 Handle<VarHandle> vh(hs.NewHandle(this)); in IsInvokerMethodTypeCompatible()
1492 ObjPtr<Class> vh_ptypes[VarHandle::kMaxAccessorParameters]; in IsInvokerMethodTypeCompatible()
1512 ObjPtr<MethodType> VarHandle::GetMethodTypeForAccessMode(Thread* self, in GetMethodTypeForAccessMode()
1513 ObjPtr<VarHandle> var_handle, in GetMethodTypeForAccessMode()
1519 Handle<VarHandle> vh = hs.NewHandle(var_handle); in GetMethodTypeForAccessMode()
1531 ObjPtr<Class> ptypes_array[VarHandle::kMaxAccessorParameters]; in GetMethodTypeForAccessMode()
1543 ObjPtr<MethodType> VarHandle::GetMethodTypeForAccessMode(Thread* self, AccessMode access_mode) { in GetMethodTypeForAccessMode()
1547 std::string VarHandle::PrettyDescriptorForAccessMode(AccessMode access_mode) { in PrettyDescriptorForAccessMode()
1578 bool VarHandle::Access(AccessMode access_mode, in Access()
1602 const char* VarHandle::GetReturnTypeDescriptor(const char* accessor_name) { in GetReturnTypeDescriptor()
1620 VarHandle::AccessMode VarHandle::GetAccessModeByIntrinsic(Intrinsics intrinsic) { in GetAccessModeByIntrinsic()
1656 return VarHandle::AccessMode::k ## Name; in GetAccessModeByIntrinsic()
1667 bool VarHandle::GetAccessModeByMethodName(const char* method_name, AccessMode* access_mode) { in GetAccessModeByMethodName()
1671 const auto kUnusedAccessMode = VarHandle::AccessMode::kGet; // arbitrary value. in GetAccessModeByMethodName()