Home
last modified time | relevance | path

Searched refs:AtomicEnumSet (Results 1 – 2 of 2) sorted by relevance

/external/v8/test/unittests/
Datomic-utils-unittest.cc113 TEST(AtomicEnumSet, Constructor) { in TEST() argument
114 AtomicEnumSet<TestSetValue> a; in TEST()
120 TEST(AtomicEnumSet, AddSingle) { in TEST() argument
121 AtomicEnumSet<TestSetValue> a; in TEST()
130 TEST(AtomicEnumSet, AddOtherSet) { in TEST() argument
131 AtomicEnumSet<TestSetValue> a; in TEST()
132 AtomicEnumSet<TestSetValue> b; in TEST()
143 TEST(AtomicEnumSet, RemoveSingle) { in TEST() argument
144 AtomicEnumSet<TestSetValue> a; in TEST()
155 TEST(AtomicEnumSet, RemoveOtherSet) { in TEST() argument
[all …]
/external/v8/src/
Datomic-utils.h105 class AtomicEnumSet {
107 explicit AtomicEnumSet(base::AtomicWord bits = 0) : bits_(bits) {}
112 bool ContainsAnyOf(const AtomicEnumSet& set) const {
118 bool operator==(const AtomicEnumSet& set) const {
122 bool operator!=(const AtomicEnumSet& set) const {
126 AtomicEnumSet<E> operator|(const AtomicEnumSet& set) const {
127 return AtomicEnumSet<E>(ToIntegral() | set.ToIntegral());
143 void Add(const AtomicEnumSet& set) { ATOMIC_SET_WRITE(|, set.ToIntegral()); }
147 void Remove(const AtomicEnumSet& set) {
151 void Intersect(const AtomicEnumSet& set) {