Home
last modified time | relevance | path

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

12345678

/third_party/skia/third_party/externals/spirv-tools/test/val/
Dval_state_test.cpp44 state_(context_, options_, kFakeBinary, 0, 1) {} in ValidationStateTest()
54 ValidationState_t state_; member in spvtools::val::__anon67d352b90111::ValidationStateTest
61 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F()
62 state_.RegisterCapability(SpvCapabilityMatrix); in TEST_F()
63 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F()
64 state_.RegisterCapability(SpvCapabilityImageMipmap); in TEST_F()
65 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F()
66 state_.RegisterCapability(SpvCapabilityPipes); in TEST_F()
67 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F()
68 state_.RegisterCapability(SpvCapabilityStorageImageArrayDynamicIndexing); in TEST_F()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/val/
Dval_state_test.cpp44 state_(context_, options_, kFakeBinary, 0, 1) {} in ValidationStateTest()
54 ValidationState_t state_; member in spvtools::val::__anon70bb55a50111::ValidationStateTest
61 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F()
62 state_.RegisterCapability(SpvCapabilityMatrix); in TEST_F()
63 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F()
64 state_.RegisterCapability(SpvCapabilityImageMipmap); in TEST_F()
65 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F()
66 state_.RegisterCapability(SpvCapabilityPipes); in TEST_F()
67 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F()
68 state_.RegisterCapability(SpvCapabilityStorageImageArrayDynamicIndexing); in TEST_F()
[all …]
/third_party/spirv-tools/test/val/
Dval_state_test.cpp44 state_(context_, options_, kFakeBinary, 0, 1) {} in ValidationStateTest()
54 ValidationState_t state_; member in spvtools::val::__anon6c0923e40111::ValidationStateTest
61 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F()
62 state_.RegisterCapability(SpvCapabilityMatrix); in TEST_F()
63 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F()
64 state_.RegisterCapability(SpvCapabilityImageMipmap); in TEST_F()
65 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F()
66 state_.RegisterCapability(SpvCapabilityPipes); in TEST_F()
67 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F()
68 state_.RegisterCapability(SpvCapabilityStorageImageArrayDynamicIndexing); in TEST_F()
[all …]
/third_party/ninja/src/
Ddyndep_parser_test.cc29 DyndepParser parser(&state_, &fs_, &dyndep_file_); in AssertParse()
36 ::AssertParse(&state_, in SetUp()
42 State state_; member
50 DyndepParser parser(&state_, &fs_, &dyndep_file_); in TEST_F()
108 DyndepParser parser(&state_, &fs_, &dyndep_file_); in TEST_F()
119 DyndepParser parser(&state_, &fs_, &dyndep_file_); in TEST_F()
130 DyndepParser parser(&state_, &fs_, &dyndep_file_); in TEST_F()
142 DyndepParser parser(&state_, &fs_, &dyndep_file_); in TEST_F()
151 DyndepParser parser(&state_, &fs_, &dyndep_file_); in TEST_F()
162 DyndepParser parser(&state_, &fs_, &dyndep_file_); in TEST_F()
[all …]
Dgraph_test.cc23 GraphTest() : scan_(&state_, NULL, NULL, &fs_, NULL) {} in GraphTest()
30 ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, in TEST_F()
46 ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, in TEST_F()
62 ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, in TEST_F()
83 ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, in TEST_F()
107 ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, in TEST_F()
119 ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, in TEST_F()
133 ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, in TEST_F()
149 ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, in TEST_F()
160 ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, in TEST_F()
[all …]
Dclean_test.cc40 ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, in TEST_F()
50 Cleaner cleaner(&state_, config_, &fs_); in TEST_F()
71 ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, in TEST_F()
82 Cleaner cleaner(&state_, config_, &fs_); in TEST_F()
103 ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, in TEST_F()
113 Cleaner cleaner(&state_, config_, &fs_); in TEST_F()
134 ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, in TEST_F()
145 Cleaner cleaner(&state_, config_, &fs_); in TEST_F()
166 ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, in TEST_F()
178 Cleaner cleaner(&state_, config_, &fs_); in TEST_F()
[all …]
Dmissing_deps_test.cc33 scanner_(&delegate_, &deps_log_, &state_, &filesystem_) { in MissingDependencyScannerTest()
42 Node* node_deps[] = { state_.LookupNode(to) }; in RecordDepsLogDep()
43 deps_log_.RecordDeps(state_.LookupNode(from), 0, 1, node_deps); in RecordDepsLogDep()
48 std::vector<Node*> nodes = state_.RootNodes(&err); in ProcessAllNodes()
61 Edge* header_edge = state_.AddEdge(&generator_rule_); in CreateInitialState()
62 state_.AddOut(header_edge, "generated_header", 0); in CreateInitialState()
63 Edge* compile_edge = state_.AddEdge(&compile_rule_); in CreateInitialState()
64 state_.AddOut(compile_edge, "compiled_object", 0); in CreateInitialState()
68 Node* from_node = state_.LookupNode(from); in CreateGraphDependencyBetween()
70 state_.AddIn(from_edge, to, 0); in CreateGraphDependencyBetween()
[all …]
Dbuild_test.cc57 ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, in TEST_F()
92 ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, in TEST_F()
121 ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, in TEST_F()
163 ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, in TEST_F()
204 ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, test_case)); in TestPoolWithDepthOne()
261 ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, in TEST_F()
343 ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, in TEST_F()
427 ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, in TEST_F()
490 builder_(&state_, config_, NULL, NULL, &fs_, &status_, 0) { in BuildTest()
495 builder_(&state_, config_, NULL, log, &fs_, &status_, 0) {} in BuildTest()
[all …]
/third_party/protobuf/objectivec/
DGPBCodedInputStream.m322 state_.bytes = (const uint8_t *)[data bytes];
323 state_.bufferSize = [data length];
324 state_.currentLimit = state_.bufferSize;
341 return GPBCodedInputStreamReadTag(&state_);
345 GPBCodedInputStreamCheckLastTagWas(&state_, value);
352 GPBCodedInputStreamReadInt32(&state_);
355 SkipRawData(&state_, sizeof(int64_t));
358 SkipRawData(&state_, ReadRawVarint32(&state_));
363 &state_, GPBWireFormatMakeTag(GPBWireFormatGetTagFieldNumber(tag),
369 SkipRawData(&state_, sizeof(int32_t));
[all …]
DGPBCodedOutputStream.m55 GPBOutputBufferState state_;
154 [state_.output close];
155 [state_.output release];
177 state_.bytes = [data mutableBytes];
178 state_.size = [data length];
179 state_.output = [output retain];
180 [state_.output open];
202 GPBWriteRawLittleEndian64(&state_, GPBConvertDoubleToInt64(value));
206 GPBWriteTagWithFormat(&state_, fieldNumber, GPBWireFormatFixed64);
207 GPBWriteRawLittleEndian64(&state_, GPBConvertDoubleToInt64(value));
[all …]
/third_party/node/src/
Dstring_decoder.cc95 state_[kMissingBytes] = 0; in DecodeData()
97 state_[kBufferedBytes] += i; in DecodeData()
114 state_[kMissingBytes] -= found_bytes; in DecodeData()
115 state_[kBufferedBytes] += found_bytes; in DecodeData()
129 state_[kBufferedBytes] = 0; in DecodeData()
151 state_[kBufferedBytes]++; in DecodeData()
154 if (state_[kBufferedBytes] >= 4 || i == 0) { in DecodeData()
162 state_[kBufferedBytes] = 0; in DecodeData()
169 state_[kMissingBytes] = 2; in DecodeData()
171 state_[kMissingBytes] = 3; in DecodeData()
[all …]
Djson_utils.h48 if (state_ == kAfterValue) out_ << ','; in json_start()
53 state_ = kObjectStart; in json_start()
61 state_ = kAfterValue; in json_end()
65 if (state_ == kAfterValue) out_ << ','; in json_objectstart()
73 state_ = kObjectStart; in json_objectstart()
78 if (state_ == kAfterValue) out_ << ','; in json_arraystart()
86 state_ = kObjectStart; in json_arraystart()
97 state_ = kAfterValue; in json_objectend()
105 state_ = kAfterValue; in json_arrayend()
109 if (state_ == kAfterValue) out_ << ','; in json_keyvalue()
[all …]
Dstring_decoder-inl.h11 state_[kBufferedBytes] = 0; in SetEncoding()
12 state_[kMissingBytes] = 0; in SetEncoding()
13 state_[kEncodingField] = encoding; in SetEncoding()
17 return static_cast<enum encoding>(state_[kEncodingField]); in Encoding()
21 return state_[kBufferedBytes]; in BufferedBytes()
25 return state_[kMissingBytes]; in MissingBytes()
29 return reinterpret_cast<char*>(state_ + kIncompleteCharactersStart); in IncompleteCharacterBuffer()
/third_party/node/deps/v8/src/heap/
Dmemory-reducer.cc28 state_(kDone, 0, 0.0, 0.0, 0), in MemoryReducer()
69 DCHECK_EQ(kWait, state_.action); in NotifyTimer()
70 state_ = Step(state_, event); in NotifyTimer()
71 if (state_.action == kRun) { in NotifyTimer()
76 state_.started_gcs); in NotifyTimer()
81 } else if (state_.action == kWait) { in NotifyTimer()
97 ScheduleTimer(state_.next_gc_start_ms - event.time_ms); in NotifyTimer()
101 state_.next_gc_start_ms - event.time_ms); in NotifyTimer()
109 Action old_action = state_.action; in NotifyMarkCompact()
110 state_ = Step(state_, event); in NotifyMarkCompact()
[all …]
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dloop_unroller.cpp307 LoopUnrollState state_; member in spvtools::opt::__anonb46897440111::LoopUnrollerUtilsImpl
358 loop_condition_block_ = state_.new_condition_block; in Init()
416 loop_condition_block_ = state_.new_condition_block; in PartiallyUnrollResidualFactor()
417 loop_induction_variable_ = state_.new_phi; in PartiallyUnrollResidualFactor()
540 state_ = LoopUnrollState{loop_induction_variable_, loop->GetLatchBlock(), in Unroll()
564 uint32_t trip_step_id = GetPhiDefID(state_.previous_phis_[index], in ReplaceInductionUseWithFinalValue()
565 state_.previous_latch_block_->id()); in ReplaceInductionUseWithFinalValue()
644 state_.new_continue_block = basic_block; in CopyBasicBlock()
649 state_.new_header_block = basic_block; in CopyBasicBlock()
659 if (itr == loop->GetLatchBlock()) state_.new_latch_block = basic_block; in CopyBasicBlock()
[all …]
/third_party/spirv-tools/source/opt/
Dloop_unroller.cpp307 LoopUnrollState state_; member in spvtools::opt::__anon3f588dcf0111::LoopUnrollerUtilsImpl
358 loop_condition_block_ = state_.new_condition_block; in Init()
417 loop_condition_block_ = state_.new_condition_block; in PartiallyUnrollResidualFactor()
418 loop_induction_variable_ = state_.new_phi; in PartiallyUnrollResidualFactor()
541 state_ = LoopUnrollState{loop_induction_variable_, loop->GetLatchBlock(), in Unroll()
565 uint32_t trip_step_id = GetPhiDefID(state_.previous_phis_[index], in ReplaceInductionUseWithFinalValue()
566 state_.previous_latch_block_->id()); in ReplaceInductionUseWithFinalValue()
645 state_.new_continue_block = basic_block; in CopyBasicBlock()
650 state_.new_header_block = basic_block; in CopyBasicBlock()
660 if (itr == loop->GetLatchBlock()) state_.new_latch_block = basic_block; in CopyBasicBlock()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dloop_unroller.cpp307 LoopUnrollState state_; member in spvtools::opt::__anonda50f7b00111::LoopUnrollerUtilsImpl
358 loop_condition_block_ = state_.new_condition_block; in Init()
416 loop_condition_block_ = state_.new_condition_block; in PartiallyUnrollResidualFactor()
417 loop_induction_variable_ = state_.new_phi; in PartiallyUnrollResidualFactor()
540 state_ = LoopUnrollState{loop_induction_variable_, loop->GetLatchBlock(), in Unroll()
564 uint32_t trip_step_id = GetPhiDefID(state_.previous_phis_[index], in ReplaceInductionUseWithFinalValue()
565 state_.previous_latch_block_->id()); in ReplaceInductionUseWithFinalValue()
644 state_.new_continue_block = basic_block; in CopyBasicBlock()
649 state_.new_header_block = basic_block; in CopyBasicBlock()
659 if (itr == loop->GetLatchBlock()) state_.new_latch_block = basic_block; in CopyBasicBlock()
[all …]
/third_party/gn/src/base/numerics/
Dchecked_math.h31 : state_(rhs.state_.value(), rhs.IsValid()) {} in CheckedNumeric()
40 : state_(value) { in CheckedNumeric()
49 : state_(static_cast<Src>(value)) {} in CheckedNumeric()
56 return state_.is_valid() && in IsValid()
57 IsValueInRangeForNumericType<Dst>(state_.value()); in IsValid()
72 ? ((*result = static_cast<Dst>(state_.value())), true) in AssignIfValid()
87 ? static_cast<Dst>(state_.value()) in ValueOrDie()
100 ? static_cast<Dst>(state_.value()) in ValueOrDefault()
144 return MustTreatAsConstexpr(state_.value()) || !std::is_signed<T>::value ||
147 NegateWrapper(state_.value()),
[all …]
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/Debug/
DThread.cpp45 if(state_ == State::Running) in onLocationUpdate()
50 state_ = State::Paused; in onLocationUpdate()
54 switch(state_) in onLocationUpdate()
57 lock.wait(stateCV, [this]() REQUIRES(mutex) { return state_ != State::Paused; }); in onLocationUpdate()
77 state_ = State::Paused; in onLocationUpdate()
78 lock.wait(stateCV, [this]() REQUIRES(mutex) { return state_ != State::Paused; }); in onLocationUpdate()
107 state_ = State::Paused; in enter()
170 return state_; in state()
177 state_ = State::Running; in resume()
185 state_ = State::Paused; in pause()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/
Dranden_engine.h77 impl_.Generate(state_); in operator()
80 return little_endian::ToHost(state_[next_++]); in operator()
96 std::fill(std::begin(state_), std::begin(state_) + kCapacityT, 0);
97 std::fill(std::begin(state_) + kCapacityT, std::end(state_), seed_value);
144 impl_.Absorb(buffer, state_); in reseed()
157 impl_.Generate(state_); in discard()
166 std::equal(std::begin(state_), std::end(state_),
167 std::begin(other.state_));
181 for (const auto& elem : engine.state_) {
211 std::memcpy(engine.state_, state, sizeof(engine.state_));
[all …]
Dexplicit_seed_seq.h48 ExplicitSeedSeq() : state_() {} in ExplicitSeedSeq()
59 state_.push_back(*it & 0xffffffff); in ExplicitSeedSeq()
67 size_t size() const { return state_.size(); } in size()
71 std::copy(std::begin(state_), std::end(state_), out); in param()
77 *begin = state_.empty() ? 0 : little_endian::FromHost32(state_[index++]); in generate()
78 if (index >= state_.size()) { in generate()
85 std::vector<uint32_t> state_;
Dpool_urbg.cc58 std::copy(data.begin(), data.end(), std::begin(state_)); in Init()
72 impl_.Generate(state_); in MaybeRefill()
78 uint32_t state_[kState] ABSL_GUARDED_BY(mu_); // First to satisfy alignment.
88 return static_cast<uint8_t>(state_[next_++]); in Generate()
95 return static_cast<uint16_t>(state_[next_++]); in Generate()
102 return state_[next_++]; in Generate()
110 impl_.Generate(state_); in Generate()
112 auto p = state_ + next_; in Generate()
124 size_t remaining = (kState - next_) * sizeof(state_[0]); in Fill()
126 std::memcpy(out, &state_[next_], to_copy); in Fill()
[all …]
/third_party/node/deps/v8/src/maglev/
Dmaglev-basic-block.h25 : control_node_(nullptr), state_(state) {} in BasicBlock()
51 bool has_phi() const { return has_state() && state_->has_phi(); } in has_phi()
63 DCHECK_NULL(state_); in set_empty_block_predecessor()
70 return state_->phis(); in phis()
74 DCHECK_NOT_NULL(state_); in predecessor_at()
75 return state_->predecessor_at(i); in predecessor_at()
88 return state_; in state()
90 bool has_state() const { return state_ != nullptr && !is_empty_block(); } in has_state()
97 MergePointInterpreterFrameState* state_; member
/third_party/skia/third_party/externals/angle2/src/common/third_party/base/anglebase/numerics/
Dchecked_math.h38 : state_(rhs.state_.value(), rhs.IsValid()) in CheckedNumeric()
45 : state_(value) in CheckedNumeric()
54 : state_(static_cast<Src>(value)) in CheckedNumeric()
63 return state_.is_valid() && IsValueInRangeForNumericType<Dst>(state_.value()); in IsValid()
79 ? ((*result = static_cast<Dst>(state_.value())), true) in AssignIfValid()
94 return BASE_NUMERICS_LIKELY(IsValid<Dst>()) ? static_cast<Dst>(state_.value()) in ValueOrDie()
107 return BASE_NUMERICS_LIKELY(IsValid<Dst>()) ? static_cast<Dst>(state_.value()) in ValueOrDefault()
151 if (!MustTreatAsConstexpr(state_.value()) && std::is_signed<T>::value &&
159 NegateWrapper(state_.value()) != std::numeric_limits<T>::lowest());
160 return CheckedNumeric<T>(NegateWrapper(state_.value()), is_valid);
[all …]
/third_party/protobuf/src/google/protobuf/
Dmap_field_test.cc64 return state_.load(std::memory_order_relaxed) != STATE_MODIFIED_MAP; in IsMapClean()
67 return state_.load(std::memory_order_relaxed) != STATE_MODIFIED_REPEATED; in IsRepeatedClean()
70 state_.store(STATE_MODIFIED_MAP, std::memory_order_relaxed); in SetMapDirty()
73 state_.store(STATE_MODIFIED_REPEATED, std::memory_order_relaxed); in SetRepeatedDirty()
208 MapFieldStateTest() : state_(GetParam()) { in MapFieldStateTest()
214 switch (state_) { in MapFieldStateTest()
295 State state_; member in google::protobuf::internal::MapFieldStateTest
303 if (state_ != MAP_DIRTY) { in TEST_P()
312 if (state_ != MAP_DIRTY) { in TEST_P()
325 if (state_ != MAP_DIRTY) { in TEST_P()
[all …]

12345678