Home
last modified time | relevance | path

Searched refs:weak_ref (Results 1 - 7 of 7) sorted by relevance

/third_party/node/src/
H A Dnode_util.cc279 WeakReference* weak_ref = Unwrap<WeakReference>(args.Holder()); in Get() local
281 if (!weak_ref->target_.IsEmpty()) in Get()
282 args.GetReturnValue().Set(weak_ref->target_.Get(isolate)); in Get()
286 WeakReference* weak_ref = Unwrap<WeakReference>(args.Holder()); in IncRef() local
287 weak_ref->reference_count_++; in IncRef()
288 if (weak_ref->target_.IsEmpty()) return; in IncRef()
289 if (weak_ref->reference_count_ == 1) weak_ref->target_.ClearWeak(); in IncRef()
291 v8::Number::New(args.GetIsolate(), weak_ref->reference_count_)); in IncRef()
295 WeakReference* weak_ref in DecRef() local
473 Local<FunctionTemplate> weak_ref = Initialize() local
[all...]
/third_party/node/deps/v8/src/heap/
H A Dmarking-visitor-inl.h387 Map map, JSWeakRef weak_ref) { in VisitJSWeakRef()
388 int size = concrete_visitor()->VisitJSObjectSubclass(map, weak_ref); in VisitJSWeakRef()
390 if (weak_ref.target().IsHeapObject()) { in VisitJSWeakRef()
391 HeapObject target = HeapObject::cast(weak_ref.target()); in VisitJSWeakRef()
396 ObjectSlot slot = weak_ref.RawField(JSWeakRef::kTargetOffset); in VisitJSWeakRef()
397 concrete_visitor()->RecordSlot(weak_ref, slot, target); in VisitJSWeakRef()
401 local_weak_objects_->js_weak_refs_local.Push(weak_ref); in VisitJSWeakRef()
402 AddWeakReferenceForReferenceSummarizer(weak_ref, target); in VisitJSWeakRef()
386 VisitJSWeakRef( Map map, JSWeakRef weak_ref) VisitJSWeakRef() argument
H A Dmark-compact.cc3009 JSWeakRef weak_ref; in ClearJSWeakRefs() local
3010 while (local_weak_objects()->js_weak_refs_local.Pop(&weak_ref)) { in ClearJSWeakRefs()
3011 HeapObject target = HeapObject::cast(weak_ref.target()); in ClearJSWeakRefs()
3013 weak_ref.set_target(ReadOnlyRoots(isolate()).undefined_value()); in ClearJSWeakRefs()
3016 ObjectSlot slot = weak_ref.RawField(JSWeakRef::kTargetOffset); in ClearJSWeakRefs()
3017 RecordSlot(weak_ref, slot, target); in ClearJSWeakRefs()
/third_party/skia/include/private/
H A DSkWeakRefCnt.h26 reference by calling weak_ref(). A call to weak_ref() must be balanced by a
42 SkWeakRefCnt myRef = strongRef.weak_ref();
112 void weak_ref() const { in weak_ref() function in SkWeakRefCnt
/third_party/skia/src/fonts/
H A DSkFontMgr_indirect.cpp129 typeface->weak_ref(); in createTypefaceFromFontId()
/third_party/skia/tests/
H A DRefCntTest.cpp48 ref->weak_ref(); in bounce_weak_weak_ref()
/third_party/rust/crates/memchr/bench/data/code/
H A Drust-library.rs21858 fn weak_ref(&self) -> &Cell<usize>; in weak_ref() functions
21887 self.weak_ref().get() in weak()
21901 self.weak_ref().set(weak + 1); in inc_weak()
21906 self.weak_ref().set(self.weak() - 1); in dec_weak()
21912 fn weak_ref(&self) -> &Cell<usize> { in weak_ref() functions
21924 fn weak_ref(&self) -> &Cell<usize> { in weak_ref() functions
[all...]

Completed in 87 milliseconds