Searched refs:weakMap (Results 1 – 4 of 4) sorted by relevance
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
D | builtins_weak_map_test.cpp | 123 …JSHandle<JSWeakMap> weakMap(thread, JSWeakMap::Cast(reinterpret_cast<TaggedObject *>(result1.GetRa… in HWTEST_F_L0() local 124 EXPECT_EQ(weakMap->GetSize(), 1); in HWTEST_F_L0() 130 JSHandle<JSWeakMap> weakMap(thread, CreateBuiltinsWeakMap(thread)); in HWTEST_F_L0() local 135 ecmaRuntimeCallInfo->SetThis(weakMap.GetTaggedValue()); in HWTEST_F_L0() 171 JSHandle<JSWeakMap> weakMap(thread, CreateBuiltinsWeakMap(thread)); in HWTEST_F_L0() local 179 ecmaRuntimeCallInfo->SetThis(weakMap.GetTaggedValue()); in HWTEST_F_L0() 197 ecmaRuntimeCallInfo1->SetThis(weakMap.GetTaggedValue()); in HWTEST_F_L0() 220 JSHandle<JSWeakMap> weakMap(thread, CreateBuiltinsWeakMap(thread)); in HWTEST_F_L0() local 230 ecmaRuntimeCallInfo->SetThis(weakMap.GetTaggedValue()); in HWTEST_F_L0() 250 ecmaRuntimeCallInfo1->SetThis(weakMap.GetTaggedValue()); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_weak_map.cpp | 46 JSHandle<JSWeakMap> weakMap = JSHandle<JSWeakMap>::Cast(obj); in WeakMapConstructor() local 50 weakMap->SetLinkedMap(thread, linkedMap); in WeakMapConstructor() 57 return weakMap.GetTaggedValue(); in WeakMapConstructor() 65 JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(weakMap), adderKey).GetValue(); in WeakMapConstructor() 88 JSHandle<JSWeakMap> weakMap(self); in Delete() local 94 return GetTaggedBoolean(JSWeakMap::Delete(thread, weakMap, key)); in Delete()
|
/arkcompiler/ets_runtime/ecmascript/napi/ |
D | jsnapi.cpp | 2601 JSHandle<JSWeakMap> weakMap(JSNApiHelper::ToJSHandle(this)); in GetSize() local 2602 LOG_IF_SPECIAL(weakMap, FATAL); in GetSize() 2603 return weakMap->GetSize(); in GetSize() 2608 JSHandle<JSWeakMap> weakMap(JSNApiHelper::ToJSHandle(this)); in GetTotalElements() local 2609 LOG_IF_SPECIAL(weakMap, FATAL); in GetTotalElements() 2610 return weakMap->GetSize() + in GetTotalElements() 2611 … LinkedHashMap::Cast(weakMap->GetLinkedMap().GetTaggedObject())->NumberOfDeletedElements(); in GetTotalElements() 2617 JSHandle<JSWeakMap> weakMap(JSNApiHelper::ToJSHandle(this)); in GetKey() local 2618 LOG_IF_SPECIAL(weakMap, FATAL); in GetKey() 2619 JSTaggedValue key = weakMap->GetKey(entry); in GetKey() [all …]
|
/arkcompiler/ets_runtime/ecmascript/napi/test/ |
D | jsnapi_tests.cpp | 852 JSHandle<JSTaggedValue> weakMap = env->GetBuiltinsWeakMapFunction(); in HWTEST_F_L0() local 853 Local<FunctionRef> weakMapLocal = JSNApiHelper::ToLocal<FunctionRef>(weakMap); in HWTEST_F_L0() 861 …bool success1 = JSObject::DefineOwnProperty(thread_, JSHandle<JSObject>::Cast(weakMap), property1S… in HWTEST_F_L0()
|