/third_party/node/test/cctest/ |
D | test_base_object_ptr.cc | 68 BaseObjectWeakPtr<DummyBaseObject> weak_ptr; in TEST_F() local 73 weak_ptr = ptr; in TEST_F() 76 EXPECT_EQ(weak_ptr.get(), nullptr); in TEST_F() 105 BaseObjectWeakPtr<DummyBaseObject> weak_ptr; in TEST_F() local 110 weak_ptr = ptr; in TEST_F() 114 EXPECT_EQ(weak_ptr.get(), ptr.get()); in TEST_F() 115 EXPECT_EQ(weak_ptr->persistent().IsWeak(), false); in TEST_F() 121 EXPECT_NE(weak_ptr.get(), nullptr); in TEST_F() 122 EXPECT_EQ(weak_ptr->persistent().IsWeak(), true); in TEST_F() 128 EXPECT_EQ(weak_ptr.get(), nullptr); in TEST_F() [all …]
|
/third_party/gn/src/base/memory/ |
D | weak_ptr.h | 270 bool operator!=(const WeakPtr<T>& weak_ptr, std::nullptr_t) { 271 return !(weak_ptr == nullptr); 274 bool operator!=(std::nullptr_t, const WeakPtr<T>& weak_ptr) { 275 return weak_ptr != nullptr; 278 bool operator==(const WeakPtr<T>& weak_ptr, std::nullptr_t) { 279 return weak_ptr.get() == nullptr; 282 bool operator==(std::nullptr_t, const WeakPtr<T>& weak_ptr) { 283 return weak_ptr == nullptr;
|
/third_party/rust/crates/cxx/src/ |
D | weak_ptr.rs | 31 let mut weak_ptr = MaybeUninit::<WeakPtr<T>>::uninit(); in null() localVariable 32 let new = weak_ptr.as_mut_ptr().cast(); in null() 35 weak_ptr.assume_init() in null() 65 let mut weak_ptr = MaybeUninit::<WeakPtr<T>>::uninit(); in clone() localVariable 66 let new = weak_ptr.as_mut_ptr().cast(); in clone() 70 weak_ptr.assume_init() in clone()
|
D | cxx.cc | 718 static_assert(sizeof(std::weak_ptr<CXX_TYPE>) == 2 * sizeof(void *), ""); \ 719 static_assert(alignof(std::weak_ptr<CXX_TYPE>) == alignof(void *), ""); \ 720 void cxxbridge1$std$weak_ptr$##RUST_TYPE##$null( \ 721 std::weak_ptr<CXX_TYPE> *ptr) noexcept { \ 722 new (ptr) std::weak_ptr<CXX_TYPE>(); \ 724 void cxxbridge1$std$weak_ptr$##RUST_TYPE##$clone( \ 725 const std::weak_ptr<CXX_TYPE> &self, \ 726 std::weak_ptr<CXX_TYPE> *ptr) noexcept { \ 727 new (ptr) std::weak_ptr<CXX_TYPE>(self); \ 729 void cxxbridge1$std$weak_ptr$##RUST_TYPE##$downgrade( \ [all …]
|
D | shared_ptr.rs | 4 use crate::weak_ptr::{WeakPtr, WeakPtrTarget}; 77 let mut weak_ptr = MaybeUninit::<WeakPtr<T>>::uninit(); in downgrade() localVariable 78 let new = weak_ptr.as_mut_ptr().cast(); in downgrade() 81 weak_ptr.assume_init() in downgrade()
|
D | lib.rs | 468 mod weak_ptr; module 477 pub use crate::weak_ptr::WeakPtr; 516 pub use crate::weak_ptr::WeakPtrTarget;
|
D | memory.rs | 7 pub use crate::weak_ptr::WeakPtrTarget;
|
/third_party/libabigail/include/ |
D | abg-fwd.h | 53 using std::weak_ptr; 99 typedef weak_ptr<type_base> type_base_wptr; 102 typedef weak_ptr<corpus> corpus_wptr; 137 typedef weak_ptr<typedef_decl> typedef_decl_wptr; 148 typedef weak_ptr<decl_base> decl_base_wptr; 153 typedef weak_ptr<class_or_union> class_or_union_wptr; 166 typedef weak_ptr<class_decl> class_decl_wptr; 180 typedef weak_ptr<function_type> function_type_wptr; 219 typedef weak_ptr<var_decl> var_decl_wptr; 277 typedef weak_ptr<template_decl> template_decl_wptr;
|
/third_party/node/src/inspector/ |
D | worker_agent.h | 18 explicit WorkerAgent(std::weak_ptr<WorkerManager> manager); 32 std::weak_ptr<WorkerManager> manager_;
|
D | tracing_agent.cc | 20 std::weak_ptr<NodeTracing::Frontend> frontend) in DeletableFrontendWrapper() 28 std::weak_ptr<NodeTracing::Frontend> frontend_; 34 std::weak_ptr<NodeTracing::Frontend> frontend) in CreateFrontendWrapperRequest()
|
D | worker_agent.cc | 14 explicit NodeWorkers(std::weak_ptr<NodeWorker::Frontend> frontend, in NodeWorkers() 26 std::weak_ptr<NodeWorker::Frontend> frontend_; 80 WorkerAgent::WorkerAgent(std::weak_ptr<WorkerManager> manager) in WorkerAgent()
|
/third_party/node/deps/v8/src/inspector/ |
D | v8-stack-trace-impl.h | 109 std::weak_ptr<AsyncStackTrace> m_asyncParent; 127 std::weak_ptr<AsyncStackTrace> parent() const; 145 std::weak_ptr<AsyncStackTrace> m_asyncParent;
|
D | v8-debugger.h | 250 std::unordered_map<CachedStackFrameKey, std::weak_ptr<StackFrame>, 255 std::unordered_map<void*, std::weak_ptr<AsyncStackTrace>>; 288 std::unordered_map<uintptr_t, std::weak_ptr<AsyncStackTrace>>;
|
/third_party/rust/crates/cxx/tests/ |
D | test.rs | 278 let weak_ptr = SharedPtr::downgrade(&shared_ptr); in test_shared_ptr_weak_ptr() localVariable 279 assert_eq!(1, ffi::c_get_use_count(&weak_ptr)); in test_shared_ptr_weak_ptr() 281 assert!(!weak_ptr.upgrade().is_null()); in test_shared_ptr_weak_ptr() 282 assert_eq!(1, ffi::c_get_use_count(&weak_ptr)); in test_shared_ptr_weak_ptr() 285 assert_eq!(0, ffi::c_get_use_count(&weak_ptr)); in test_shared_ptr_weak_ptr() 286 assert!(weak_ptr.upgrade().is_null()); in test_shared_ptr_weak_ptr()
|
/third_party/node/deps/v8/src/libplatform/ |
D | default-job.h | 132 DefaultJobWorker(std::weak_ptr<DefaultJobState> state, JobTask* job_task) in DefaultJobWorker() 154 std::weak_ptr<DefaultJobState> state_;
|
/third_party/node/deps/v8/src/wasm/ |
D | wasm-engine.cc | 267 key, base::Optional<std::weak_ptr<NativeModule>>(native_module)); in Update() 420 explicit NativeModuleInfo(std::weak_ptr<NativeModule> native_module) in NativeModuleInfo() 421 : weak_ptr(std::move(native_module)) {} in NativeModuleInfo() 424 std::weak_ptr<NativeModule> weak_ptr; member 719 if (auto shared_ptr = native_modules_[native_module]->weak_ptr.lock()) { in TierDownAllModulesPerIsolate() 747 auto shared_ptr = native_modules_[native_module]->weak_ptr.lock(); in TierUpAllModulesPerIsolate() 971 std::vector<std::weak_ptr<NativeModule>> modules_in_isolate; in DeleteCompileJobsOnIsolate() 989 modules_in_isolate.emplace_back(native_modules_[native_module]->weak_ptr); in DeleteCompileJobsOnIsolate() 1322 std::weak_ptr<NativeModule> native_module) in SampleTopTierCodeSizeTask() 1336 const std::weak_ptr<NativeModule> native_module_;
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/DWARF/ |
D | DWARFContext.h | 87 StringMap<std::weak_ptr<DWOFile>> DWOFiles; 88 std::weak_ptr<DWOFile> DWP;
|
/third_party/skia/third_party/externals/dawn/src/dawn_wire/client/ |
D | Buffer.h | 104 std::weak_ptr<bool> mDeviceIsAlive;
|
D | Device.h | 72 std::weak_ptr<bool> GetAliveWeakPtr();
|
/third_party/node/deps/v8/src/d8/ |
D | d8-platforms.cc | 155 std::weak_ptr<DelayedTaskRunner>& weak_delayed_runner = in GetForegroundTaskRunner() 316 std::unordered_map<TaskRunner*, std::weak_ptr<DelayedTaskRunner>>
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/winrt/ |
D | CoreWindowNativeWindow.h | 91 std::weak_ptr<InspectableNativeWindow> mHost;
|
D | SwapChainPanelNativeWindow.h | 88 std::weak_ptr<InspectableNativeWindow> mHost;
|
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/Debug/ |
D | Thread.hpp | 197 std::weak_ptr<Frame> pauseAtFrame GUARDED_BY(mutex);
|
D | WeakMap.hpp | 33 using Map = std::map<K, std::weak_ptr<V>>;
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/ |
D | mtl_resources.h | 42 using TextureWeakRef = std::weak_ptr<Texture>; 44 using BufferWeakRef = std::weak_ptr<Buffer>;
|