Home | History | Annotate | Download | only in src

Lines Matching refs:kType

70 template <PerThreadAssertType kType, bool kAllow>
71 PerThreadAssertScope<kType, kAllow>::PerThreadAssertScope()
78 old_state_ = data_->Get(kType);
79 data_->Set(kType, kAllow);
83 template <PerThreadAssertType kType, bool kAllow>
84 PerThreadAssertScope<kType, kAllow>::~PerThreadAssertScope() {
89 template <PerThreadAssertType kType, bool kAllow>
90 void PerThreadAssertScope<kType, kAllow>::Release() {
92 data_->Set(kType, old_state_);
101 template <PerThreadAssertType kType, bool kAllow>
102 bool PerThreadAssertScope<kType, kAllow>::IsAllowed() {
104 return data == NULL || data->Get(kType);
108 template <PerIsolateAssertType kType, bool kAllow>
109 class PerIsolateAssertScope<kType, kAllow>::DataBit
110 : public BitField<bool, kType, 1> {};
113 template <PerIsolateAssertType kType, bool kAllow>
114 PerIsolateAssertScope<kType, kAllow>::PerIsolateAssertScope(Isolate* isolate)
117 STATIC_ASSERT(kType < 32);
122 template <PerIsolateAssertType kType, bool kAllow>
123 PerIsolateAssertScope<kType, kAllow>::~PerIsolateAssertScope() {
129 template <PerIsolateAssertType kType, bool kAllow>
130 bool PerIsolateAssertScope<kType, kAllow>::IsAllowed(Isolate* isolate) {