Home
last modified time | relevance | path

Searched refs:state_ (Results 1 – 25 of 132) sorted by relevance

123456

/external/libcxx/test/std/utilities/memory/unique.ptr/
Ddeleter.h26 int state_; variable
38 Deleter(Deleter&& r) : state_(r.state_) {r.state_ = 0;} in Deleter()
41 state_ = r.state_;
42 r.state_ = 0;
47 Deleter(std::__rv<Deleter> r) : state_(r->state_) {r->state_ = 0;}
50 state_ = r->state_;
51 r->state_ = 0;
56 Deleter() : state_(0) {} in Deleter()
57 explicit Deleter(int s) : state_(s) {} in Deleter()
58 ~Deleter() {assert(state_ >= 0); state_ = -1;} in ~Deleter()
[all …]
/external/libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.ctor/
Dmove02.pass.cpp35 int state_; member in Deleter
47 Deleter(Deleter&& r) : state_(r.state_) {r.state_ = 0;} in Deleter()
50 state_ = r.state_; in operator =()
51 r.state_ = 0; in operator =()
56 Deleter(std::__rv<Deleter> r) : state_(r->state_) {r->state_ = 0;}
59 state_ = r->state_;
60 r->state_ = 0;
65 Deleter() : state_(5) {} in Deleter()
71 : state_(d.state()) {d.set_state(0);} in Deleter()
81 : state_(d.state()) {} in Deleter()
[all …]
Dpointer_deleter01.pass.cpp34 int state_; member in Deleter
46 Deleter(Deleter&& r) : state_(r.state_) {r.state_ = 0;} in Deleter()
49 state_ = r.state_; in operator =()
50 r.state_ = 0; in operator =()
55 Deleter(std::__rv<Deleter> r) : state_(r->state_) {r->state_ = 0;}
58 state_ = r->state_;
59 r->state_ = 0;
64 Deleter() : state_(5) {} in Deleter()
70 : state_(d.state()) {d.set_state(0);} in Deleter()
80 : state_(d.state()) {} in Deleter()
[all …]
Dmove01.pass.cpp36 int state_; member in Deleter
48 Deleter(Deleter&& r) : state_(r.state_) {r.state_ = 0;} in Deleter()
51 state_ = r.state_; in operator =()
52 r.state_ = 0; in operator =()
57 Deleter(std::__rv<Deleter> r) : state_(r->state_) {r->state_ = 0;}
60 state_ = r->state_;
61 r->state_ = 0;
66 Deleter() : state_(5) {} in Deleter()
72 : state_(d.state()) {d.set_state(0);} in Deleter()
82 : state_(d.state()) {} in Deleter()
[all …]
Dmove_convert11.fail.cpp48 int state_; member in Deleter
60 Deleter(Deleter&& r) : state_(r.state_) {r.state_ = 0;} in Deleter()
63 state_ = r.state_; in operator =()
64 r.state_ = 0; in operator =()
69 Deleter(std::__rv<Deleter> r) : state_(r->state_) {r->state_ = 0;}
72 state_ = r->state_;
73 r->state_ = 0;
78 Deleter() : state_(5) {} in Deleter()
84 : state_(d.state()) {d.set_state(0);} in Deleter()
94 : state_(d.state()) {} in Deleter()
[all …]
Dmove_convert08.fail.cpp48 int state_; member in Deleter
60 Deleter(Deleter&& r) : state_(r.state_) {r.state_ = 0;} in Deleter()
63 state_ = r.state_; in operator =()
64 r.state_ = 0; in operator =()
69 Deleter(std::__rv<Deleter> r) : state_(r->state_) {r->state_ = 0;}
72 state_ = r->state_;
73 r->state_ = 0;
78 Deleter() : state_(5) {} in Deleter()
84 : state_(d.state()) {d.set_state(0);} in Deleter()
94 : state_(d.state()) {} in Deleter()
[all …]
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_mutex.h26 atomic_store(&state_, 0, memory_order_relaxed); in Init()
36 return atomic_exchange(&state_, 1, memory_order_acquire) == 0; in TryLock()
40 atomic_store(&state_, 0, memory_order_release); in Unlock()
44 CHECK_EQ(atomic_load(&state_, memory_order_relaxed), 1); in CheckLocked()
48 atomic_uint8_t state_;
56 if (atomic_load(&state_, memory_order_relaxed) == 0 in LockSlow()
57 && atomic_exchange(&state_, 1, memory_order_acquire) == 0) in LockSlow()
96 atomic_store(&state_, kUnlocked, memory_order_relaxed); in RWMutex()
100 CHECK_EQ(atomic_load(&state_, memory_order_relaxed), kUnlocked); in ~RWMutex()
105 if (atomic_compare_exchange_strong(&state_, &cmp, kWriteLock, in Lock()
[all …]
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/
Dtest_deleter.h41 int state_; variable
45 test_deleter() : state_(0) {++count;} in test_deleter()
46 explicit test_deleter(int s) : state_(s) {++count;} in test_deleter()
48 : state_(d.state_) {++count;} in test_deleter()
49 ~test_deleter() {assert(state_ >= 0); --count; state_ = -1;} in ~test_deleter()
51 int state() const {return state_;} in state()
52 void set_state(int i) {state_ = i;} in set_state()
54 void operator()(T* p) {assert(state_ >= 0); ++dealloc_count; delete p;} in operator()
/external/libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.runtime/unique.ptr.runtime.modifiers/
Dswap.pass.cpp23 int state_; member
25 A() : state_(0) {++count;} in A()
26 explicit A(int i) : state_(i) {++count;} in A()
27 A(const A& a) : state_(a.state_) {++count;} in A()
28 A& operator=(const A& a) {state_ = a.state_; return *this;} in operator =()
32 {return x.state_ == y.state_;} in operator ==()
/external/v8/src/
Dlookup.cc17 DCHECK_NE(JSPROXY, state_); in Next()
18 DCHECK_NE(TRANSITION, state_); in Next()
26 state_ = LookupInHolder(map, holder); in Next()
35 state_ = LookupInHolder(map, holder); in Next()
76 DCHECK_EQ(ACCESS_CHECK, state_); in HasAccess()
82 state_ = BEFORE_PROPERTY; in ReloadPropertyInformation()
83 state_ = LookupInHolder(*holder_map_, *holder_); in ReloadPropertyInformation()
89 DCHECK(state_ == DATA || state_ == ACCESSOR); in PrepareForDataProperty()
101 DCHECK(state_ == DATA || state_ == ACCESSOR); in ReconfigureDataProperty()
120 if (state_ == TRANSITION) return; in PrepareTransitionToDataProperty()
[all …]
Dhydrogen-check-elimination.cc68 State state_; // The state of this entry. member
184 new_entry->state_ = old_entry->state_; in Copy()
210 copy->Insert(phi, NULL, pred_entry->maps_, pred_entry->state_); in Copy()
235 entry->state_ = state; in Copy()
244 DCHECK_NE(HCheckTableEntry::UNCHECKED_STABLE, entry->state_); in Copy()
258 copy->Insert(left, NULL, re->maps_, re->state_); in Copy()
261 copy->Insert(right, NULL, le->maps_, le->state_); in Copy()
266 le->state_ = re->state_ = HCheckTableEntry::StateMerge( in Copy()
267 le->state_, re->state_); in Copy()
268 DCHECK_NE(HCheckTableEntry::UNCHECKED_STABLE, le->state_); in Copy()
[all …]
/external/libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.modifiers/
Dswap.pass.cpp23 int state_; member
25 explicit A(int i) : state_(i) {++count;} in A()
26 A(const A& a) : state_(a.state_) {++count;} in A()
27 A& operator=(const A& a) {state_ = a.state_; return *this;} in operator =()
31 {return x.state_ == y.state_;} in operator ==()
/external/clang/test/CodeGenCXX/
Drvalue-references.cpp42 int* state_; member in C
47 C(int state) : state_(new int(state)) { } in C()
50 state_ = a.state_; in C()
51 a.state_ = 0; in C()
55 delete state_; in ~C()
56 state_ = 0; in ~C()
/external/libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.special/
Dswap.pass.cpp23 int state_; member
25 A() : state_(0) {++count;} in A()
26 explicit A(int i) : state_(i) {++count;} in A()
27 A(const A& a) : state_(a.state_) {++count;} in A()
28 A& operator=(const A& a) {state_ = a.state_; return *this;} in operator =()
32 {return x.state_ == y.state_;} in operator ==()
/external/protobuf/gtest/test/
Dgtest-typed-test_test.cc181 state_.AddTestName("foo.cc", 0, "FooTest", "A"); in SetUp()
182 state_.AddTestName("foo.cc", 0, "FooTest", "B"); in SetUp()
183 state_.AddTestName("foo.cc", 0, "FooTest", "C"); in SetUp()
186 TypedTestCasePState state_; member in TypedTestCasePStateTest
192 state_.VerifyRegisteredTestNames("foo.cc", 1, tests)); in TEST_F()
200 state_.VerifyRegisteredTestNames("foo.cc", 1, tests)); in TEST_F()
207 state_.VerifyRegisteredTestNames("foo.cc", 1, "A, B, A, C"), in TEST_F()
213 state_.VerifyRegisteredTestNames("foo.cc", 1, "A, B, C, D"), in TEST_F()
219 state_.VerifyRegisteredTestNames("foo.cc", 1, "A, C"), in TEST_F()
226 state_.VerifyRegisteredTestNames("foo.cc", 1, "A, B, C"); in TEST_F()
[all …]
/external/google-breakpad/src/testing/gtest/test/
Dgtest-typed-test_test.cc181 state_.AddTestName("foo.cc", 0, "FooTest", "A"); in SetUp()
182 state_.AddTestName("foo.cc", 0, "FooTest", "B"); in SetUp()
183 state_.AddTestName("foo.cc", 0, "FooTest", "C"); in SetUp()
186 TypedTestCasePState state_; member in TypedTestCasePStateTest
192 state_.VerifyRegisteredTestNames("foo.cc", 1, tests)); in TEST_F()
200 state_.VerifyRegisteredTestNames("foo.cc", 1, tests)); in TEST_F()
207 state_.VerifyRegisteredTestNames("foo.cc", 1, "A, B, A, C"), in TEST_F()
213 state_.VerifyRegisteredTestNames("foo.cc", 1, "A, B, C, D"), in TEST_F()
219 state_.VerifyRegisteredTestNames("foo.cc", 1, "A, C"), in TEST_F()
226 state_.VerifyRegisteredTestNames("foo.cc", 1, "A, B, C"); in TEST_F()
[all …]
/external/gtest/test/
Dgtest-typed-test_test.cc181 state_.AddTestName("foo.cc", 0, "FooTest", "A"); in SetUp()
182 state_.AddTestName("foo.cc", 0, "FooTest", "B"); in SetUp()
183 state_.AddTestName("foo.cc", 0, "FooTest", "C"); in SetUp()
186 TypedTestCasePState state_; member in TypedTestCasePStateTest
192 state_.VerifyRegisteredTestNames("foo.cc", 1, tests)); in TEST_F()
200 state_.VerifyRegisteredTestNames("foo.cc", 1, tests)); in TEST_F()
207 state_.VerifyRegisteredTestNames("foo.cc", 1, "A, B, A, C"), in TEST_F()
213 state_.VerifyRegisteredTestNames("foo.cc", 1, "A, B, C, D"), in TEST_F()
219 state_.VerifyRegisteredTestNames("foo.cc", 1, "A, C"), in TEST_F()
226 state_.VerifyRegisteredTestNames("foo.cc", 1, "A, B, C"); in TEST_F()
[all …]
/external/ceres-solver/internal/ceres/
Dparameter_block.h102 state_ = x; in SetState()
110 if (x != state_) { in GetState()
111 memcpy(x, state_, sizeof(*state_) * size_); in GetState()
116 const double* state() const { return state_; } in state()
179 << ConstVectorRef(state_, Size()).transpose(); in SetParameterization()
245 state_, in ToString()
307 state_ = user_state_; in Init()
331 state_, in UpdateLocalParameterizationJacobian()
334 "for x: " << ConstVectorRef(state_, Size()).transpose(); in UpdateLocalParameterizationJacobian()
341 << ConstVectorRef(state_, Size()).transpose() in UpdateLocalParameterizationJacobian()
[all …]
/external/libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.observers/
Dindex.fail.cpp21 int state_; member in A
24 A() : state_(++next_) {} in A()
25 int get() const {return state_;} in get()
28 {return x.state_ == y;} in operator ==()
30 A& operator=(int i) {state_ = i; return *this;} in operator =()
/external/libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.runtime/unique.ptr.runtime.observers/
Dindex.pass.cpp21 int state_; member in A
24 A() : state_(++next_) {} in A()
25 int get() const {return state_;} in get()
28 {return x.state_ == y;} in operator ==()
30 A& operator=(int i) {state_ = i; return *this;} in operator =()
/external/v8/src/base/
Dsafe_math.h57 : state_(rhs.ValueUnsafe(), rhs.validity()) {} in CheckedNumeric()
61 : state_(value, validity) {} in CheckedNumeric()
67 : state_(value) { in CheckedNumeric()
79 return state_.value(); in ValueOrDie()
86 return IsValid() ? state_.value() : default_value; in ValueOrDefault()
105 RangeConstraint validity() const { return state_.validity(); } in validity()
114 T ValueUnsafe() const { return state_.value(); } in ValueUnsafe()
125 T value = CheckedNeg(state_.value(), &validity);
130 validity = GetRangeConstraint(state_.validity() | validity);
136 T value = CheckedAbs(state_.value(), &validity); in Abs()
[all …]
/external/pdfium/third_party/base/numerics/
Dsafe_math.h54 : state_(rhs.ValueUnsafe(), rhs.validity()) {} in CheckedNumeric()
58 : state_(value, validity) {} in CheckedNumeric()
64 : state_(value) { in CheckedNumeric()
76 return state_.value(); in ValueOrDie()
83 return IsValid() ? state_.value() : default_value; in ValueOrDefault()
101 RangeConstraint validity() const { return state_.validity(); } in validity()
110 T ValueUnsafe() const { return state_.value(); } in ValueUnsafe()
121 T value = CheckedNeg(state_.value(), &validity);
126 validity = GetRangeConstraint(state_.validity() | validity);
132 T value = CheckedAbs(state_.value(), &validity); in Abs()
[all …]
/external/compiler-rt/lib/tsan/rtl/
Dtsan_mutex.cc217 atomic_store(&state_, kUnlocked, memory_order_relaxed); in Mutex()
221 CHECK_EQ(atomic_load(&state_, memory_order_relaxed), kUnlocked); in ~Mutex()
229 if (atomic_compare_exchange_strong(&state_, &cmp, kWriteLock, in Lock()
233 if (atomic_load(&state_, memory_order_relaxed) == kUnlocked) { in Lock()
235 if (atomic_compare_exchange_weak(&state_, &cmp, kWriteLock, in Lock()
247 uptr prev = atomic_fetch_sub(&state_, kWriteLock, memory_order_release); in Unlock()
259 uptr prev = atomic_fetch_add(&state_, kReadLock, memory_order_acquire); in ReadLock()
263 prev = atomic_load(&state_, memory_order_acquire); in ReadLock()
274 uptr prev = atomic_fetch_sub(&state_, kReadLock, memory_order_release); in ReadUnlock()
284 CHECK_NE(atomic_load(&state_, memory_order_relaxed), 0); in CheckLocked()
/external/libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.dtor/
Dnull.pass.cpp21 int state_; member in Deleter
27 Deleter() : state_(0) {} in Deleter()
29 int state() const {return state_;} in state()
31 void operator()(void*) {++state_;} in operator ()()
/external/libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.runtime/
Dnull_ctor.pass.cpp21 int state_; member in Deleter
27 Deleter() : state_(0) {} in Deleter()
29 int state() const {return state_;} in state()
31 void operator()(void*) {++state_;} in operator ()()

123456