/third_party/skia/include/private/ |
D | SkTOptional.h | 187 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 …]
|
D | SkTHash.h | 125 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/ |
D | test-cxx-compat.cc | 21 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/ |
D | abg-cxx-compat.h | 48 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/ |
D | optional.h | 592 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/ |
D | access-info.cc | 119 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 …]
|
D | js-context-specialization.cc | 147 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()
|
D | js-inlining-heuristic.cc | 33 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 …]
|
D | property-access-builder.cc | 128 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/ |
D | property-descriptor.h | 35 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
|
D | property-descriptor.cc | 106 (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/ |
D | gmock-support.h | 22 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/ |
D | SkTOptionalTest.cpp | 16 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/ |
D | override_decoration.cc | 27 : 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()
|
D | override_decoration_test.cc | 27 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/ |
D | any_exception_safety_test.cc | 43 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()
|
D | optional_exception_safety_test.cc | 57 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()
|
D | any_test.cc | 97 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/ |
D | ada.h | 2623 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/ |
D | optimization_test.cc | 83 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/ |
D | chrome_content_renderer_client_cef.cc | 51 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/ |
D | status_test.cc | 318 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/ |
D | rust_project_writer.cc | 293 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/ |
D | Server.cpp | 134 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/ |
D | implementation-visitor.h | 102 .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()
|