Home
last modified time | relevance | path

Searched refs:weakRef (Results 1 – 6 of 6) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_weak_ref.cpp48 JSHandle<JSWeakRef> weakRef = JSHandle<JSWeakRef>::Cast(obj); in WeakRefConstructor() local
49 weakRef->SetToWeak(thread, target.GetTaggedValue()); in WeakRefConstructor()
50 return weakRef.GetTaggedValue(); in WeakRefConstructor()
67 JSHandle<JSWeakRef> weakRef = JSHandle<JSWeakRef>::Cast(thisValue); in Deref() local
68 return JSWeakRef::WeakRefDeref(thread, weakRef); in Deref()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_weak_ref_test.cpp73 JSHandle<JSFunction> weakRef(env->GetBuiltinsWeakRefFunction()); in CreateWeakRefConstructor() local
75 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*weakRef), … in CreateWeakRefConstructor()
76 ecmaRuntimeCallInfo->SetFunction(weakRef.GetTaggedValue()); in CreateWeakRefConstructor()
95 JSHandle<JSFunction> weakRef(env->GetBuiltinsWeakRefFunction()); in HWTEST_F_L0() local
98 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, weakRef.GetTaggedValue(),… in HWTEST_F_L0()
99 ecmaRuntimeCallInfo->SetFunction(weakRef.GetTaggedValue()); in HWTEST_F_L0()
199 JSHandle<JSFunction> weakRef(env->GetBuiltinsWeakRefFunction()); in HWTEST_F_L0() local
202 … TestHelper::CreateEcmaRuntimeCallInfo(thread, weakRef.GetTaggedValue(), 6); // 6 means 1 call arg in HWTEST_F_L0()
203 ecmaRuntimeCallInfo1->SetFunction(weakRef.GetTaggedValue()); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/
Djs_weak_ref.h32 static JSTaggedValue WeakRefDeref(JSThread *thread, const JSHandle<JSWeakRef> &weakRef) in WeakRefDeref() argument
39 JSHandle<JSTaggedValue> target(thread, weakRef->GetFromWeak()); in WeakRefDeref()
/arkcompiler/ets_runtime/ecmascript/mem/
Dstw_young_gc.cpp113 … auto weakRef = JSTaggedValue(JSTaggedValue(dst).CreateAndGetWeakRef()).GetRawTaggedObject(); in Sweep() local
114 slot.Update(weakRef); in Sweep()
Dfull_gc.cpp122 … auto weakRef = JSTaggedValue(JSTaggedValue(dst).CreateAndGetWeakRef()).GetRawTaggedObject(); in Sweep() local
123 slot.Update(weakRef); in Sweep()
Dparallel_evacuator-inl.h128 auto weakRef = JSTaggedValue(dst).CreateAndGetWeakRef().GetRawTaggedObject(); in UpdateWeakObjectSlot() local
129 slot.Update(weakRef); in UpdateWeakObjectSlot()