Lines Matching refs:AccessMode
41 VarHandle::AccessMode access_mode;
59 { "compareAndExchange", VarHandle::AccessMode::kCompareAndExchange },
60 { "compareAndExchangeAcquire", VarHandle::AccessMode::kCompareAndExchangeAcquire },
61 { "compareAndExchangeRelease", VarHandle::AccessMode::kCompareAndExchangeRelease },
62 { "compareAndSet", VarHandle::AccessMode::kCompareAndSet },
63 { "get", VarHandle::AccessMode::kGet },
64 { "getAcquire", VarHandle::AccessMode::kGetAcquire },
65 { "getAndAdd", VarHandle::AccessMode::kGetAndAdd },
66 { "getAndAddAcquire", VarHandle::AccessMode::kGetAndAddAcquire },
67 { "getAndAddRelease", VarHandle::AccessMode::kGetAndAddRelease },
68 { "getAndBitwiseAnd", VarHandle::AccessMode::kGetAndBitwiseAnd },
69 { "getAndBitwiseAndAcquire", VarHandle::AccessMode::kGetAndBitwiseAndAcquire },
70 { "getAndBitwiseAndRelease", VarHandle::AccessMode::kGetAndBitwiseAndRelease },
71 { "getAndBitwiseOr", VarHandle::AccessMode::kGetAndBitwiseOr },
72 { "getAndBitwiseOrAcquire", VarHandle::AccessMode::kGetAndBitwiseOrAcquire },
73 { "getAndBitwiseOrRelease", VarHandle::AccessMode::kGetAndBitwiseOrRelease },
74 { "getAndBitwiseXor", VarHandle::AccessMode::kGetAndBitwiseXor },
75 { "getAndBitwiseXorAcquire", VarHandle::AccessMode::kGetAndBitwiseXorAcquire },
76 { "getAndBitwiseXorRelease", VarHandle::AccessMode::kGetAndBitwiseXorRelease },
77 { "getAndSet", VarHandle::AccessMode::kGetAndSet },
78 { "getAndSetAcquire", VarHandle::AccessMode::kGetAndSetAcquire },
79 { "getAndSetRelease", VarHandle::AccessMode::kGetAndSetRelease },
80 { "getOpaque", VarHandle::AccessMode::kGetOpaque },
81 { "getVolatile", VarHandle::AccessMode::kGetVolatile },
82 { "set", VarHandle::AccessMode::kSet },
83 { "setOpaque", VarHandle::AccessMode::kSetOpaque },
84 { "setRelease", VarHandle::AccessMode::kSetRelease },
85 { "setVolatile", VarHandle::AccessMode::kSetVolatile },
86 { "weakCompareAndSet", VarHandle::AccessMode::kWeakCompareAndSet },
87 { "weakCompareAndSetAcquire", VarHandle::AccessMode::kWeakCompareAndSetAcquire },
88 { "weakCompareAndSetPlain", VarHandle::AccessMode::kWeakCompareAndSetPlain },
89 { "weakCompareAndSetRelease", VarHandle::AccessMode::kWeakCompareAndSetRelease },
92 // Enumeration for describing the parameter and return types of an AccessMode.
102 // AccessMode. This simplifies finding the correct signature for a
104 AccessModeTemplate GetAccessModeTemplate(VarHandle::AccessMode access_mode) {
106 case VarHandle::AccessMode::kGet:
108 case VarHandle::AccessMode::kSet:
110 case VarHandle::AccessMode::kGetVolatile:
112 case VarHandle::AccessMode::kSetVolatile:
114 case VarHandle::AccessMode::kGetAcquire:
116 case VarHandle::AccessMode::kSetRelease:
118 case VarHandle::AccessMode::kGetOpaque:
120 case VarHandle::AccessMode::kSetOpaque:
122 case VarHandle::AccessMode::kCompareAndSet:
124 case VarHandle::AccessMode::kCompareAndExchange:
126 case VarHandle::AccessMode::kCompareAndExchangeAcquire:
128 case VarHandle::AccessMode::kCompareAndExchangeRelease:
130 case VarHandle::AccessMode::kWeakCompareAndSetPlain:
132 case VarHandle::AccessMode::kWeakCompareAndSet:
134 case VarHandle::AccessMode::kWeakCompareAndSetAcquire:
136 case VarHandle::AccessMode::kWeakCompareAndSetRelease:
138 case VarHandle::AccessMode::kGetAndSet:
140 case VarHandle::AccessMode::kGetAndSetAcquire:
142 case VarHandle::AccessMode::kGetAndSetRelease:
144 case VarHandle::AccessMode::kGetAndAdd:
146 case VarHandle::AccessMode::kGetAndAddAcquire:
148 case VarHandle::AccessMode::kGetAndAddRelease:
150 case VarHandle::AccessMode::kGetAndBitwiseOr:
152 case VarHandle::AccessMode::kGetAndBitwiseOrRelease:
154 case VarHandle::AccessMode::kGetAndBitwiseOrAcquire:
156 case VarHandle::AccessMode::kGetAndBitwiseAnd:
158 case VarHandle::AccessMode::kGetAndBitwiseAndRelease:
160 case VarHandle::AccessMode::kGetAndBitwiseAndAcquire:
162 case VarHandle::AccessMode::kGetAndBitwiseXor:
164 case VarHandle::AccessMode::kGetAndBitwiseXorRelease:
166 case VarHandle::AccessMode::kGetAndBitwiseXorAcquire:
224 bool IsReadOnlyAccessMode(VarHandle::AccessMode access_mode) {
872 static bool Dispatch(VarHandle::AccessMode access_mode,
882 bool FieldAccessor<T>::Dispatch(VarHandle::AccessMode access_mode,
888 AccessMode::kGet: {
893 case VarHandle::AccessMode::kSet: {
899 case VarHandle::AccessMode::kGetAcquire:
900 case VarHandle::AccessMode::kGetOpaque:
901 case VarHandle::AccessMode::kGetVolatile: {
906 case VarHandle::AccessMode::kSetOpaque:
907 case VarHandle::AccessMode::kSetRelease:
908 case VarHandle::AccessMode::kSetVolatile: {
914 case VarHandle::AccessMode::kCompareAndSet: {
921 case VarHandle::AccessMode::kCompareAndExchange:
922 case VarHandle::AccessMode::kCompareAndExchangeAcquire:
923 case VarHandle::AccessMode::kCompareAndExchangeRelease: {
930 case VarHandle::AccessMode::kWeakCompareAndSet:
931 case VarHandle::AccessMode::kWeakCompareAndSetAcquire:
932 case VarHandle::AccessMode::kWeakCompareAndSetPlain:
933 case VarHandle::AccessMode::kWeakCompareAndSetRelease: {
940 case VarHandle::AccessMode::kGetAndSet:
941 case VarHandle::AccessMode::kGetAndSetAcquire:
942 case VarHandle::AccessMode::kGetAndSetRelease: {
948 case VarHandle::AccessMode::kGetAndAdd:
949 case VarHandle::AccessMode::kGetAndAddAcquire:
950 case VarHandle::AccessMode::kGetAndAddRelease: {
956 case VarHandle::AccessMode::kGetAndBitwiseOr:
957 case VarHandle::AccessMode::kGetAndBitwiseOrAcquire:
958 case VarHandle::AccessMode::kGetAndBitwiseOrRelease: {
964 case VarHandle::AccessMode::kGetAndBitwiseAnd:
965 case VarHandle::AccessMode::kGetAndBitwiseAndAcquire:
966 case VarHandle::AccessMode::kGetAndBitwiseAndRelease: {
972 case VarHandle::AccessMode::kGetAndBitwiseXor:
973 case VarHandle::AccessMode::kGetAndBitwiseXorAcquire:
974 case VarHandle::AccessMode::kGetAndBitwiseXorRelease: {
986 bool FieldAccessor<ObjPtr<Object>>::Dispatch(VarHandle::AccessMode access_mode,
996 case VarHandle::AccessMode::kGet: {
1000 case VarHandle::AccessMode::kSet: {
1009 case VarHandle::AccessMode::kGetAcquire:
1010 case VarHandle::AccessMode::kGetOpaque:
1011 case VarHandle::AccessMode::kGetVolatile: {
1015 case VarHandle::AccessMode::kSetOpaque:
1016 case VarHandle::AccessMode::kSetRelease:
1017 case VarHandle::AccessMode::kSetVolatile: {
1026 case VarHandle::AccessMode::kCompareAndSet: {
1045 case VarHandle::AccessMode::kWeakCompareAndSet:
1046 case VarHandle::AccessMode::kWeakCompareAndSetAcquire:
1047 case VarHandle::AccessMode::kWeakCompareAndSetPlain:
1048 case VarHandle::AccessMode::kWeakCompareAndSetRelease: {
1067 case VarHandle::AccessMode::kCompareAndExchange:
1068 case VarHandle::AccessMode::kCompareAndExchangeAcquire:
1069 case VarHandle::AccessMode::kCompareAndExchangeRelease: {
1088 case VarHandle::AccessMode::kGetAndSet:
1089 case VarHandle::AccessMode::kGetAndSetAcquire:
1090 case VarHandle::AccessMode::kGetAndSetRelease: {
1102 case VarHandle::AccessMode::kGetAndAdd:
1103 case VarHandle::AccessMode::kGetAndAddAcquire:
1104 case VarHandle::AccessMode::kGetAndAddRelease:
1105 case VarHandle::AccessMode::kGetAndBitwiseOr:
1106 case VarHandle::AccessMode::kGetAndBitwiseOrAcquire:
1107 case VarHandle::AccessMode::kGetAndBitwiseOrRelease:
1108 case VarHandle::AccessMode::kGetAndBitwiseAnd:
1109 case VarHandle::AccessMode::kGetAndBitwiseAndAcquire:
1110 case VarHandle::AccessMode::kGetAndBitwiseAndRelease:
1111 case VarHandle::AccessMode::kGetAndBitwiseXor:
1112 case VarHandle::AccessMode::kGetAndBitwiseXorAcquire:
1113 case VarHandle::AccessMode::kGetAndBitwiseXorRelease: {
1133 static bool Dispatch(VarHandle::AccessMode access_mode,
1141 case VarHandle::AccessMode::kGet: {
1146 case VarHandle::AccessMode::kSet: {
1152 case VarHandle::AccessMode::kGetAcquire:
1153 case VarHandle::AccessMode::kGetOpaque:
1154 case VarHandle::AccessMode::kGetVolatile: {
1159 case VarHandle::AccessMode::kSetOpaque:
1160 case VarHandle::AccessMode::kSetRelease:
1161 case VarHandle::AccessMode::kSetVolatile: {
1167 case VarHandle::AccessMode::kCompareAndSet: {
1174 case VarHandle::AccessMode::kCompareAndExchange:
1175 case VarHandle::AccessMode::kCompareAndExchangeAcquire:
1176 case VarHandle::AccessMode::kCompareAndExchangeRelease: {
1183 case VarHandle::AccessMode::kWeakCompareAndSet:
1184 case VarHandle::AccessMode::kWeakCompareAndSetAcquire:
1185 case VarHandle::AccessMode::kWeakCompareAndSetPlain:
1186 case VarHandle::AccessMode::kWeakCompareAndSetRelease: {
1193 case VarHandle::AccessMode::kGetAndSet:
1194 case VarHandle::AccessMode::kGetAndSetAcquire:
1195 case VarHandle::AccessMode::kGetAndSetRelease: {
1201 case VarHandle::AccessMode::kGetAndAdd:
1202 case VarHandle::AccessMode::kGetAndAddAcquire:
1203 case VarHandle::AccessMode::kGetAndAddRelease: {
1209 case VarHandle::AccessMode::kGetAndBitwiseOr:
1210 case VarHandle::AccessMode::kGetAndBitwiseOrAcquire:
1211 case VarHandle::AccessMode::kGetAndBitwiseOrRelease: {
1217 case VarHandle::AccessMode::kGetAndBitwiseAnd:
1218 case VarHandle::AccessMode::kGetAndBitwiseAndAcquire:
1219 case VarHandle::AccessMode::kGetAndBitwiseAndRelease: {
1225 case VarHandle::AccessMode::kGetAndBitwiseXor:
1226 case VarHandle::AccessMode::kGetAndBitwiseXorAcquire:
1227 case VarHandle::AccessMode::kGetAndBitwiseXorRelease: {
1256 static bool Dispatch(const VarHandle::AccessMode access_mode,
1266 case VarHandle::AccessMode::kGet: {
1273 case VarHandle::AccessMode::kSet: {
1289 case VarHandle::AccessMode::kGet: {
1295 case VarHandle::AccessMode::kSet: {
1302 case VarHandle::AccessMode::kGetAcquire:
1303 case VarHandle::AccessMode::kGetOpaque:
1304 case VarHandle::AccessMode::kGetVolatile: {
1310 case VarHandle::AccessMode::kSetOpaque:
1311 case VarHandle::AccessMode::kSetRelease:
1312 case VarHandle::AccessMode::kSetVolatile: {
1319 case VarHandle::AccessMode::kCompareAndSet: {
1328 case VarHandle::AccessMode::kCompareAndExchange:
1329 case VarHandle::AccessMode::kCompareAndExchangeAcquire:
1330 case VarHandle::AccessMode::kCompareAndExchangeRelease: {
1340 case VarHandle::AccessMode::kWeakCompareAndSet:
1341 case VarHandle::AccessMode::kWeakCompareAndSetAcquire:
1342 case VarHandle::AccessMode::kWeakCompareAndSetPlain:
1343 case VarHandle::AccessMode::kWeakCompareAndSetRelease: {
1352 case VarHandle::AccessMode::kGetAndSet:
1353 case VarHandle::AccessMode::kGetAndSetAcquire:
1354 case VarHandle::AccessMode::kGetAndSetRelease: {
1362 case VarHandle::AccessMode::kGetAndAdd:
1363 case VarHandle::AccessMode::kGetAndAddAcquire:
1364 case VarHandle::AccessMode::kGetAndAddRelease: {
1375 case VarHandle::AccessMode::kGetAndBitwiseOr:
1376 case VarHandle::AccessMode::kGetAndBitwiseOrAcquire:
1377 case VarHandle::AccessMode::kGetAndBitwiseOrRelease: {
1385 case VarHandle::AccessMode::kGetAndBitwiseAnd:
1386 case VarHandle::AccessMode::kGetAndBitwiseAndAcquire:
1387 case VarHandle::AccessMode::kGetAndBitwiseAndRelease: {
1395 case VarHandle::AccessMode::kGetAndBitwiseXor:
1396 case VarHandle::AccessMode::kGetAndBitwiseXorAcquire:
1397 case VarHandle::AccessMode::kGetAndBitwiseXorRelease: {
1428 bool VarHandle::IsMethodTypeCompatible(AccessMode access_mode, MethodType* method_type) {
1467 bool VarHandle::IsInvokerMethodTypeCompatible(AccessMode access_mode,
1510 AccessMode access_mode) {
1537 MethodType* VarHandle::GetMethodTypeForAccessMode(Thread* self, AccessMode access_mode) {
1541 bool VarHandle::Access(AccessMode access_mode,
1565 AccessMode access_mode;
1582 VarHandle::AccessMode VarHandle::GetAccessModeByIntrinsic(Intrinsics intrinsic) {
1618 return VarHandle::AccessMode::k ## Name;
1629 bool VarHandle::GetAccessModeByMethodName(const char* method_name, AccessMode* access_mode) {
1633 VarHandleAccessorToAccessModeEntry target = { method_name, /*dummy*/VarHandle::AccessMode::kGet };
1672 bool FieldVarHandle::Access(AccessMode access_mode,
1744 bool ArrayElementVarHandle::Access(AccessMode access_mode,
1857 bool ByteArrayViewVarHandle::Access(AccessMode access_mode,
1966 bool ByteBufferViewVarHandle::Access(AccessMode access_mode,