Home
last modified time | relevance | path

Searched refs:has_value (Results 1 – 25 of 196) sorted by relevance

12345678

/third_party/skia/include/private/
DSkTOptional.h187 return this->has_value() ? **this : static_cast<T>(std::forward<U>(value)); in value_or()
192 return this->has_value() ? std::move(**this) : static_cast<T>(std::forward<U>(value)); in value_or()
195 bool has_value() const { in has_value() function
200 return this->has_value();
224 return (a.has_value() != b.has_value()) ? false :
225 !a.has_value() ? true :
230 return (a.has_value() != b.has_value()) ? true :
231 !a.has_value() ? false :
236 return !b.has_value() ? false :
237 !a.has_value() ? true :
[all …]
DSkTHash.h125 SkASSERT(s.has_value()); in remove()
141 if (fSlots[i].has_value()) { in foreach()
151 if (fSlots[i].has_value()) { in foreach()
213 if (fSlots[i].has_value()) { in firstPopulatedSlot()
223 if (fSlots[i].has_value()) { in nextPopulatedSlot()
232 SkASSERT(fSlots[i].has_value()); in slot()
273 if (s.has_value()) { in resize()
385 bool has_value() const { return hash != 0; } in has_value() function
386 explicit operator bool() const { return this->has_value(); }
387 bool empty() const { return !this->has_value(); } in empty()
/third_party/libabigail/tests/
Dtest-cxx-compat.cc21 REQUIRE_FALSE(opt1.has_value());
24 REQUIRE(opt2.has_value());
28 REQUIRE(opt3.has_value());
35 REQUIRE_FALSE(opt.has_value());
46 REQUIRE_FALSE(opt.has_value());
62 REQUIRE(opt.has_value());
/third_party/libabigail/include/
Dabg-cxx-compat.h48 has_value() const noexcept
93 explicit operator bool() const noexcept { return has_value(); }
100 if (!lhs.has_value() && !rhs.has_value())
102 if (!lhs.has_value() || !rhs.has_value())
/third_party/node/deps/v8/src/base/
Doptional.h592 constexpr bool has_value() const { return storage_.is_populated_; }
692 if (lhs.has_value() != rhs.has_value()) return false;
693 if (!lhs.has_value()) return true;
699 if (lhs.has_value() != rhs.has_value()) return true;
700 if (!lhs.has_value()) return false;
706 if (!rhs.has_value()) return false;
707 if (!lhs.has_value()) return true;
713 if (!lhs.has_value()) return true;
714 if (!rhs.has_value()) return false;
720 if (!lhs.has_value()) return false;
[all …]
/third_party/node/deps/v8/src/compiler/
Daccess-info.cc119 dependencies, transition_map.has_value() in DataField()
121 : holder.has_value() ? holder->map().object() in DataField()
213 DCHECK_IMPLIES(kind == kDictionaryProtoAccessorConstant, name.has_value()); in PropertyAccessInfo()
234 DCHECK_IMPLIES(transition_map.has_value(), in PropertyAccessInfo()
255 if (!lhs.has_value()) return !rhs.has_value(); in OptionalRefEquals()
256 if (!rhs.has_value()) return false; in OptionalRefEquals()
385 if (access_info.has_value()) { in ComputeElementAccessInfos()
397 if (!access_info.has_value()) return false; in ComputeElementAccessInfos()
402 if (!map_ref.has_value()) continue; in ComputeElementAccessInfos()
443 if (!descriptors_field_type_ref.has_value()) return Invalid(); in ComputeDataFieldAccessInfo()
[all …]
Djs-context-specialization.cc147 if (!maybe_concrete.has_value()) { in ReduceJSLoadContext()
171 if (!maybe_value.has_value()) { in ReduceJSLoadContext()
210 if (!maybe_concrete.has_value()) { in ReduceJSStoreContext()
275 if (!maybe_context.has_value()) return NoChange(); in ReduceJSGetImportMeta()
279 if (!module.has_value()) return NoChange(); in ReduceJSGetImportMeta()
282 if (!import_meta.has_value()) return NoChange(); in ReduceJSGetImportMeta()
Djs-inlining-heuristic.cc33 if (!feedback_vector.has_value()) { in CanConsiderForInlining()
52 if (!feedback_vector_again.has_value()) { in CanConsiderForInlining()
129 DCHECK(!out.functions[0].has_value()); in CollectFunctions()
139 DCHECK(!out.functions[0].has_value()); in CollectFunctions()
191 if (!candidate.bytecode[i].has_value()) { in Reduce()
196 SharedFunctionInfoRef shared = candidate.functions[i].has_value() in Reduce()
199 candidate.can_inline_function[i] = candidate.bytecode[i].has_value(); in Reduce()
229 if (candidate.functions[i].has_value()) { in Reduce()
818 SharedFunctionInfoRef shared = candidate.functions[i].has_value() in PrintCandidates()
822 if (candidate.bytecode[i].has_value()) { in PrintCandidates()
[all …]
Dproperty-access-builder.cc128 if (holder.has_value()) { in ResolveHolder()
192 if (!holder.has_value()) { in TryFoldLoadConstantDataField()
215 return value.has_value() ? jsgraph()->Constant(*value) : nullptr; in TryFoldLoadConstantDataField()
307 if (field_map.has_value()) { in BuildLoadDataField()
/third_party/node/deps/v8/src/objects/
Dproperty-descriptor.h35 return desc->has_value() || desc->has_writable(); in IsDataDescriptor()
58 !has_value() && !has_get() && !has_set(); in is_empty()
62 return has_configurable() && has_enumerable() && !has_value() && in IsRegularAccessorProperty()
67 return has_configurable() && has_enumerable() && has_value() && in IsRegularDataProperty()
87 bool has_value() const { return !value_.is_null(); } in has_value() function
Dproperty-descriptor.cc106 (desc->has_value() || desc->has_writable())) { in ToPropertyDescriptorFastPath()
159 if (has_value()) { in ToObject()
289 (desc->has_value() || desc->has_writable())) { in ToPropertyDescriptor()
314 if (!desc->has_value()) { in CompletePropertyDescriptor()
354 PropertyDescriptorObject::HasValueBit::encode(has_value()) | in ToPropertyDescriptorObject()
360 if (has_value()) obj->set_value(*value_); in ToPropertyDescriptorObject()
/third_party/node/deps/v8/testing/
Dgmock-support.h22 bool has_value() const { return has_value_; } in has_value() function
25 DCHECK(!has_value()); in SetValue()
45 if (capture_->has_value()) *os << " which has value " << capture_->value(); in DescribeTo()
49 if (!capture_->has_value()) { in MatchAndExplain()
/third_party/skia/tests/
DSkTOptionalTest.cpp16 REPORTER_ASSERT(r, !o.has_value()); in DEF_TEST()
22 REPORTER_ASSERT(r, !o.has_value()); in DEF_TEST()
49 REPORTER_ASSERT(r, o.has_value()); in DEF_TEST()
54 REPORTER_ASSERT(r, !o.has_value()); in DEF_TEST()
60 REPORTER_ASSERT(r, o.has_value()); in DEF_TEST()
63 REPORTER_ASSERT(r, !o.has_value()); in DEF_TEST()
71 REPORTER_ASSERT(r, !o.has_value()); in DEF_TEST()
116 if (o[index].has_value()) { in DEF_TEST()
278 REPORTER_ASSERT(r, o.has_value()); in DEF_TEST()
283 REPORTER_ASSERT(r, o.has_value()); in DEF_TEST()
[all …]
/third_party/skia/third_party/externals/tint/src/ast/
Doverride_decoration.cc27 : Base(pid, src), has_value(false), value(0) {} in OverrideDecoration()
32 : Base(pid, src), has_value(true), value(val) {} in OverrideDecoration()
43 if (has_value) { in Clone()
Doverride_decoration_test.cc27 EXPECT_TRUE(d->has_value); in TEST_F()
33 EXPECT_FALSE(d->has_value); in TEST_F()
/third_party/skia/third_party/externals/abseil-cpp/absl/types/
Dany_exception_safety_test.cc43 if (a->has_value()) { in AnyInvariants()
58 if (a->has_value()) { in AnyInvariants()
80 if (!a->has_value()) { in AnyIsEmpty()
110 return testing::AssertionResult(ap->has_value() && in TEST()
133 return testing::AssertionResult{!ap->has_value()}; in TEST()
Doptional_exception_safety_test.cc57 if (optional.has_value() && ValueThrowsBadOptionalAccess(optional)) { in OptionalInvariants()
62 if (!optional.has_value() && !ValueThrowsBadOptionalAccess(optional)) { in OptionalInvariants()
72 if (optional.has_value()) { in OptionalInvariants()
88 if (optional.has_value()) { in CheckDisengaged()
100 if (!optional.has_value()) { in CheckEngaged()
Dany_test.cc97 static_assert(noexcept(std::declval<absl::any&>().has_value()), ""); in TEST()
112 EXPECT_FALSE(o.has_value()); in TEST()
114 EXPECT_TRUE(o.has_value()); in TEST()
116 EXPECT_FALSE(o.has_value()); in TEST()
613 EXPECT_TRUE(o4.has_value()); in TEST()
627 EXPECT_FALSE(o.has_value()); in TEST()
630 EXPECT_TRUE(o.has_value()); in TEST()
737 EXPECT_TRUE(target.has_value()); in TEST()
744 EXPECT_FALSE(target.has_value()); in TEST()
751 EXPECT_TRUE(target.has_value()); in TEST()
[all …]
/third_party/node/deps/ada/
Dada.h2623 bool has_value() const { return this->m_has_val; }
2689 bool has_value() const { return this->m_has_val; }
2726 if (rhs.has_value()) {
2764 if (rhs.has_value()) {
3359 if (rhs.has_value()) {
3374 if (rhs.has_value()) {
3388 if (rhs.has_value()) {
3402 if (rhs.has_value()) {
3436 if (has_value()) {
3460 if (has_value()) {
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/base/
Doptimization_test.cc83 absl::optional<bool> has_value(false); in TEST() local
85 EXPECT_TRUE(ABSL_PREDICT_TRUE(has_value)); in TEST()
87 EXPECT_TRUE(ABSL_PREDICT_FALSE(has_value)); in TEST()
/third_party/cef/libcef/renderer/chrome/
Dchrome_content_renderer_client_cef.cc51 if (is_windowless.has_value() && *is_windowless) { in RenderFrameCreated()
62 if (is_windowless.has_value() && *is_windowless) { in WebViewCreated()
/third_party/skia/third_party/externals/abseil-cpp/absl/status/
Dstatus_test.cc318 EXPECT_TRUE(base.GetPayload(kUrl1).has_value()); in TEST()
320 EXPECT_TRUE(base.GetPayload(kUrl1).has_value()); in TEST()
321 EXPECT_FALSE(copy.GetPayload(kUrl1).has_value()); in TEST()
328 EXPECT_TRUE(base.GetPayload(kUrl1).has_value()); in TEST()
329 EXPECT_TRUE(copy.GetPayload(kUrl1).has_value()); in TEST()
333 EXPECT_FALSE(base.GetPayload(kUrl1).has_value()); in TEST()
334 EXPECT_TRUE(copy.GetPayload(kUrl1).has_value()); in TEST()
/third_party/gn/src/gn/
Drust_project_writer.cc293 if (!edition.has_value()) { in AddTarget()
303 if (compiler_target.has_value()) in AddTarget()
384 if (gen_dir.has_value()) { in WriteCrates()
397 if (compiler_target.has_value()) { in WriteCrates()
436 if (proc_macro_target.has_value()) { in WriteCrates()
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/Debug/
DServer.cpp134 if(req.breakpoints.has_value()) in Impl()
160 if(req.source.name.has_value()) in Impl()
425 if(req.frameId.has_value()) in Impl()
578 if(source.sourceReference.has_value()) in file()
588 if(source.path.has_value()) in file()
603 if(source.name.has_value()) in file()
/third_party/node/deps/v8/src/torque/
Dimplementation-visitor.h102 .has_value(); in IsConst()
109 bool IsVariableAccess() const { return variable_.has_value(); } in IsVariableAccess()
114 bool IsTemporary() const { return temporary_.has_value(); } in IsTemporary()
119 bool IsHeapReference() const { return heap_reference_.has_value(); } in IsHeapReference()
124 bool IsHeapSlice() const { return heap_slice_.has_value(); } in IsHeapSlice()
131 DCHECK_EQ(is_bitfield_access, bit_field_.has_value()); in IsBitFieldAccess()
178 bool is_call_access = eval_function_.has_value(); in IsCallAccess()
179 DCHECK_EQ(is_call_access, assign_function_.has_value()); in IsCallAccess()
394 bool IsAccessibleNonLazy() const { return value.has_value(); } in IsAccessibleNonLazy()

12345678