Home
last modified time | relevance | path

Searched refs:weakSet (Results 1 – 4 of 4) sorted by relevance

/ark/js_runtime/ecmascript/builtins/
Dbuiltins_weak_set.cpp45 JSHandle<JSWeakSet> weakSet = JSHandle<JSWeakSet>::Cast(obj); in WeakSetConstructor() local
49 weakSet->SetLinkedSet(thread, linkedSet); in WeakSetConstructor()
57 return weakSet.GetTaggedValue(); in WeakSetConstructor()
61 JSHandle<JSTaggedValue> weakSetHandle(weakSet); in WeakSetConstructor()
92 …JSTaggedValue ret = JSFunction::Call(thread, adder, JSHandle<JSTaggedValue>(weakSet), 1, arguments… in WeakSetConstructor()
103 return weakSet.GetTaggedValue(); in WeakSetConstructor()
128 JSHandle<JSWeakSet> weakSet(thread, JSWeakSet::Cast(*JSTaggedValue::ToObject(thread, self))); in Add() local
130 JSWeakSet::Add(thread, weakSet, value); in Add()
131 return weakSet.GetTaggedValue(); in Add()
147 JSHandle<JSWeakSet> weakSet(thread, JSWeakSet::Cast(*JSTaggedValue::ToObject(thread, self))); in Delete() local
[all …]
/ark/js_runtime/ecmascript/
Djs_weak_container.cpp66 void JSWeakSet::Add(JSThread *thread, const JSHandle<JSWeakSet> &weakSet, const JSHandle<JSTaggedVa… in Add() argument
71 …JSHandle<LinkedHashSet> weakSetHandle(thread, LinkedHashSet::Cast(weakSet->GetLinkedSet().GetTagge… in Add()
74 weakSet->SetLinkedSet(thread, newSet); in Add()
77 bool JSWeakSet::Delete(JSThread *thread, const JSHandle<JSWeakSet> &weakSet, const JSHandle<JSTagge… in Delete() argument
79 …JSHandle<LinkedHashSet> weakSetHandle(thread, LinkedHashSet::Cast(weakSet->GetLinkedSet().GetTagge… in Delete()
86 weakSet->SetLinkedSet(thread, newSet); in Delete()
/ark/js_runtime/ecmascript/builtins/tests/
Dbuiltins_weak_set_test.cpp100 JSHandle<JSWeakSet> weakSet(thread, CreateBuiltinsWeakSet(thread)); in HWTEST_F_L0() local
111 ecmaRuntimeCallInfo->SetThis(weakSet.GetTaggedValue()); in HWTEST_F_L0()
126 JSHandle<JSWeakSet> weakSet(thread, CreateBuiltinsWeakSet(thread)); in HWTEST_F_L0() local
130 ecmaRuntimeCallInfo->SetThis(weakSet.GetTaggedValue()); in HWTEST_F_L0()
163 JSHandle<JSWeakSet> weakSet(thread, CreateBuiltinsWeakSet(thread)); in HWTEST_F_L0() local
172 ecmaRuntimeCallInfo->SetThis(weakSet.GetTaggedValue()); in HWTEST_F_L0()
187 ecmaRuntimeCallInfo1->SetThis(weakSet.GetTaggedValue()); in HWTEST_F_L0()
/ark/js_runtime/ecmascript/napi/test/
Djsnapi_tests.cpp704 JSHandle<JSTaggedValue> weakSet = env->GetBuiltinsWeakSetFunction(); in HWTEST_F_L0() local
705 Local<FunctionRef> weakSetLocal = JSNApiHelper::ToLocal<FunctionRef>(weakSet); in HWTEST_F_L0()
780 JSHandle<JSTaggedValue> weakSet = env->GetBuiltinsWeakSetFunction(); in HWTEST_F_L0() local
784 JSHandle<JSTaggedValue> deleteMethod = JSObject::GetMethod(thread_, weakSet, deleteString); in HWTEST_F_L0()
785 JSHandle<JSTaggedValue> addMethod = JSObject::GetMethod(thread_, weakSet, addString); in HWTEST_F_L0()