Searched refs:weakRef (Results 1 – 6 of 6) sorted by relevance
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_weak_ref.cpp | 48 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/ |
D | builtins_weak_ref_test.cpp | 73 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/ |
D | js_weak_ref.h | 32 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/ |
D | stw_young_gc.cpp | 113 … auto weakRef = JSTaggedValue(JSTaggedValue(dst).CreateAndGetWeakRef()).GetRawTaggedObject(); in Sweep() local 114 slot.Update(weakRef); in Sweep()
|
D | full_gc.cpp | 122 … auto weakRef = JSTaggedValue(JSTaggedValue(dst).CreateAndGetWeakRef()).GetRawTaggedObject(); in Sweep() local 123 slot.Update(weakRef); in Sweep()
|
D | parallel_evacuator-inl.h | 128 auto weakRef = JSTaggedValue(dst).CreateAndGetWeakRef().GetRawTaggedObject(); in UpdateWeakObjectSlot() local 129 slot.Update(weakRef); in UpdateWeakObjectSlot()
|