Home
last modified time | relevance | path

Searched refs:JSAPITreeMap (Results 1 – 25 of 33) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_tree_map.h27 class JSAPITreeMap : public JSObject {
29 static JSAPITreeMap *Cast(TaggedObject *object) in Cast()
31 return static_cast<JSAPITreeMap *>(object); in Cast()
34 …static void Set(JSThread *thread, const JSHandle<JSAPITreeMap> &map, const JSHandle<JSTaggedValue>…
37 static void Clear(const JSThread *thread, const JSHandle<JSAPITreeMap> &map);
39 …static JSTaggedValue Get(JSThread *thread, const JSHandle<JSAPITreeMap> &map, const JSHandle<JSTag…
41 static JSTaggedValue Delete(JSThread *thread, const JSHandle<JSAPITreeMap> &map,
44 …static bool HasKey(JSThread *thread, const JSHandle<JSAPITreeMap> &map, const JSHandle<JSTaggedVal…
47 …static bool Replace(JSThread *thread, const JSHandle<JSAPITreeMap> &map, const JSHandle<JSTaggedVa…
Djs_api_tree_map.cpp25 void JSAPITreeMap::Set(JSThread *thread, const JSHandle<JSAPITreeMap> &map, const JSHandle<JSTagged… in Set()
43 JSTaggedValue JSAPITreeMap::Get(JSThread *thread, const JSHandle<JSAPITreeMap> &map, const JSHandle… in Get()
49 int JSAPITreeMap::GetSize() const in GetSize()
54 JSTaggedValue JSAPITreeMap::GetKey(int entry) const in GetKey()
61 JSTaggedValue JSAPITreeMap::GetValue(int entry) const in GetValue()
68 JSTaggedValue JSAPITreeMap::Delete(JSThread *thread, const JSHandle<JSAPITreeMap> &map, in Delete()
83 bool JSAPITreeMap::HasKey(JSThread *thread, const JSHandle<JSAPITreeMap> &map, const JSHandle<JSTag… in HasKey()
89 bool JSAPITreeMap::HasValue(JSThread *thread, const JSHandle<JSTaggedValue> &value) const in HasValue()
95 void JSAPITreeMap::Clear(const JSThread *thread, const JSHandle<JSAPITreeMap> &map) in Clear()
102 bool JSAPITreeMap::Replace(JSThread *thread, const JSHandle<JSAPITreeMap> &map, const JSHandle<JSTa… in Replace()
/arkcompiler/ets_runtime/ecmascript/containers/
Dcontainers_treemap.cpp50 JSHandle<JSAPITreeMap> map = JSHandle<JSAPITreeMap>::Cast(obj); in TreeMapConstructor()
93 JSHandle<JSAPITreeMap> map = JSHandle<JSAPITreeMap>::Cast(self); in Set()
94 JSAPITreeMap::Set(thread, map, key, value); in Set()
117 JSHandle<JSAPITreeMap> map = JSHandle<JSAPITreeMap>::Cast(self); in Get()
119 return JSAPITreeMap::Get(thread, map, key); in Get()
139 JSHandle<JSAPITreeMap> map = JSHandle<JSAPITreeMap>::Cast(self); in Remove()
141 return JSAPITreeMap::Delete(thread, map, key); in Remove()
162 JSHandle<JSAPITreeMap> map = JSHandle<JSAPITreeMap>::Cast(self); in HasKey()
164 bool flag = JSAPITreeMap::HasKey(thread, JSHandle<JSAPITreeMap>::Cast(map), key); in HasKey()
186 JSHandle<JSAPITreeMap> map = JSHandle<JSAPITreeMap>::Cast(self); in HasValue()
[all …]
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_api_tree_map_test.cpp63 JSAPITreeMap *CreateTreeMap() in CreateTreeMap()
83 …JSHandle<JSAPITreeMap> map(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), co… in CreateTreeMap()
92 JSAPITreeMap *map = CreateTreeMap(); in HWTEST_F_L0()
104 JSHandle<JSAPITreeMap> tmap(thread, CreateTreeMap()); in HWTEST_F_L0()
112 JSAPITreeMap::Set(thread, tmap, key, value); in HWTEST_F_L0()
118 JSAPITreeMap::Set(thread, tmap, key, value); in HWTEST_F_L0()
128 JSTaggedValue gvalue = JSAPITreeMap::Get(thread, tmap, key); in HWTEST_F_L0()
142 JSHandle<JSAPITreeMap> tmap(thread, CreateTreeMap()); in HWTEST_F_L0()
150 JSAPITreeMap::Set(thread, tmap, key, value); in HWTEST_F_L0()
157 [[maybe_unused]] JSTaggedValue dvalue = JSAPITreeMap::Delete(thread, tmap, key); in HWTEST_F_L0()
[all …]
Djs_api_tree_map_iterator_test.cpp55 JSHandle<JSAPITreeMap> CreateTreeMap() in CreateTreeMap()
75 JSHandle<JSAPITreeMap> jsTreeMap( in CreateTreeMap()
93 JSHandle<JSAPITreeMap> jsTreeMap = CreateTreeMap(); in HWTEST_F_L0()
117 JSHandle<JSAPITreeMap> jsTreeMap = CreateTreeMap(); in HWTEST_F_L0()
129 JSAPITreeMap::Set(thread, jsTreeMap, key, value); in HWTEST_F_L0()
132 …JSHandle<JSAPITreeMap> treeMapTo(thread, JSAPITreeMap::Cast(treeMapIterator->GetIteratedMap().GetT… in HWTEST_F_L0()
139 JSTaggedValue result = JSAPITreeMap::Get(thread, treeMapTo, key); in HWTEST_F_L0()
155 JSHandle<JSAPITreeMap> jsTreeMap = CreateTreeMap(); in HWTEST_F_L0()
176 JSHandle<JSAPITreeMap> jsTreeMap = CreateTreeMap(); in HWTEST_F_L0()
208 JSHandle<JSAPITreeMap> jsTreeMap = CreateTreeMap(); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapsetall_fuzzer/
Dcontainerstreemapsetall_fuzzer.cpp68 JSHandle<JSAPITreeMap> CreateJSAPITreeMap(JSThread *thread) in CreateJSAPITreeMap()
77 JSHandle<JSAPITreeMap> map(thread, result); in CreateJSAPITreeMap()
100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapSetAllFuzzTest()
108 JSHandle<JSAPITreeMap> map = CreateJSAPITreeMap(thread); in ContainersTreeMapSetAllFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapgetlength_fuzzer/
Dcontainerstreemapgetlength_fuzzer.cpp68 JSHandle<JSAPITreeMap> CreateJSAPITreeMap(JSThread *thread) in CreateJSAPITreeMap()
77 JSHandle<JSAPITreeMap> map(thread, result); in CreateJSAPITreeMap()
100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapGetLengthFuzzTest()
108 JSHandle<JSAPITreeMap> map = CreateJSAPITreeMap(thread); in ContainersTreeMapGetLengthFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapremove_fuzzer/
Dcontainerstreemapremove_fuzzer.cpp68 JSHandle<JSAPITreeMap> CreateJSAPITreeMap(JSThread *thread) in CreateJSAPITreeMap()
77 JSHandle<JSAPITreeMap> map(thread, result); in CreateJSAPITreeMap()
100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapRemoveFuzzTest()
108 JSHandle<JSAPITreeMap> map = CreateJSAPITreeMap(thread); in ContainersTreeMapRemoveFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapforeach_fuzzer/
Dcontainerstreemapforeach_fuzzer.cpp69 JSHandle<JSAPITreeMap> CreateJSAPITreeMap(JSThread *thread) in CreateJSAPITreeMap()
78 JSHandle<JSAPITreeMap> map(thread, result); in CreateJSAPITreeMap()
106 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapForEachFuzzTest()
115 JSHandle<JSAPITreeMap> dmap = CreateJSAPITreeMap(thread); in ContainersTreeMapForEachFuzzTest()
/arkcompiler/ets_runtime/ecmascript/containers/tests/
Dcontainers_treemap_test.cpp70 JSAPITreeMap::Set(thread, JSHandle<JSAPITreeMap>::Cast(map), key, newValue); in TestForEachFunc()
73 JSHandle<JSAPITreeMap> jsTreeMap(GetThis(argv)); in TestForEachFunc()
74 JSAPITreeMap::Set(thread, jsTreeMap, key, value); in TestForEachFunc()
137 JSHandle<JSAPITreeMap> CreateJSAPITreeMap(JSTaggedValue compare = JSTaggedValue::Undefined()) in CreateJSAPITreeMap()
150 JSHandle<JSAPITreeMap> map(thread, result); in CreateJSAPITreeMap()
173 JSHandle<JSAPITreeMap> mapHandle(thread, result); in HWTEST_F_L0()
191 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(); in HWTEST_F_L0()
203 EXPECT_EQ(JSAPITreeMap::Cast(result.GetTaggedObject())->GetSize(), i + 1); in HWTEST_F_L0()
227 EXPECT_EQ(JSAPITreeMap::Cast(result.GetTaggedObject())->GetSize(), NODE_NUMBERS + i + 1); in HWTEST_F_L0()
264 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapconstructor_fuzzer/
Dcontainerstreemapconstructor_fuzzer.cpp68 JSHandle<JSAPITreeMap> CreateJSAPITreeMap(JSThread *thread) in CreateJSAPITreeMap()
77 JSHandle<JSAPITreeMap> map(thread, result); in CreateJSAPITreeMap()
100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapConstructorFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapget_fuzzer/
Dcontainerstreemapget_fuzzer.cpp68 JSHandle<JSAPITreeMap> CreateJSAPITreeMap(JSThread *thread) in CreateJSAPITreeMap()
77 JSHandle<JSAPITreeMap> map(thread, result); in CreateJSAPITreeMap()
100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapGetFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapset_fuzzer/
Dcontainerstreemapset_fuzzer.cpp68 JSHandle<JSAPITreeMap> CreateJSAPITreeMap(JSThread *thread) in CreateJSAPITreeMap()
77 JSHandle<JSAPITreeMap> map(thread, result); in CreateJSAPITreeMap()
100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapSetFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreemaphasvalue_fuzzer/
Dcontainerstreemaphasvalue_fuzzer.cpp68 JSHandle<JSAPITreeMap> CreateJSAPITreeMap(JSThread *thread) in CreateJSAPITreeMap()
77 JSHandle<JSAPITreeMap> map(thread, result); in CreateJSAPITreeMap()
100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapSetFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreemaphaskey_fuzzer/
Dcontainerstreemaphaskey_fuzzer.cpp68 JSHandle<JSAPITreeMap> CreateJSAPITreeMap(JSThread *thread) in CreateJSAPITreeMap()
77 JSHandle<JSAPITreeMap> map(thread, result); in CreateJSAPITreeMap()
100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapSetFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapisempty_fuzzer/
Dcontainerstreemapisempty_fuzzer.cpp68 JSHandle<JSAPITreeMap> CreateJSAPITreeMap(JSThread *thread) in CreateJSAPITreeMap()
77 JSHandle<JSAPITreeMap> map(thread, result); in CreateJSAPITreeMap()
100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapIsEmptyFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapgethigherkey_fuzzer/
Dcontainerstreemapgethigherkey_fuzzer.cpp68 JSHandle<JSAPITreeMap> CreateJSAPITreeMap(JSThread *thread) in CreateJSAPITreeMap()
77 JSHandle<JSAPITreeMap> map(thread, result); in CreateJSAPITreeMap()
100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapGetHigherKeyFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapvalues_fuzzer/
Dcontainerstreemapvalues_fuzzer.cpp68 JSHandle<JSAPITreeMap> CreateJSAPITreeMap(JSThread *thread) in CreateJSAPITreeMap()
77 JSHandle<JSAPITreeMap> map(thread, result); in CreateJSAPITreeMap()
100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapValuesFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapgetlowerkey_fuzzer/
Dcontainerstreemapgetlowerkey_fuzzer.cpp68 JSHandle<JSAPITreeMap> CreateJSAPITreeMap(JSThread *thread) in CreateJSAPITreeMap()
77 JSHandle<JSAPITreeMap> map(thread, result); in CreateJSAPITreeMap()
100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapGetLowerKeyFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapgetlastkey_fuzzer/
Dcontainerstreemapgetlastkey_fuzzer.cpp68 JSHandle<JSAPITreeMap> CreateJSAPITreeMap(JSThread *thread) in CreateJSAPITreeMap()
77 JSHandle<JSAPITreeMap> map(thread, result); in CreateJSAPITreeMap()
100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapGetLastKeyFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapgetfirstkey_fuzzer/
Dcontainerstreemapgetfirstkey_fuzzer.cpp68 JSHandle<JSAPITreeMap> CreateJSAPITreeMap(JSThread *thread) in CreateJSAPITreeMap()
77 JSHandle<JSAPITreeMap> map(thread, result); in CreateJSAPITreeMap()
100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapGetFirstKeyFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapclear_fuzzer/
Dcontainerstreemapclear_fuzzer.cpp68 JSHandle<JSAPITreeMap> CreateJSAPITreeMap(JSThread *thread) in CreateJSAPITreeMap()
77 JSHandle<JSAPITreeMap> map(thread, result); in CreateJSAPITreeMap()
100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapClearFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapentries_fuzzer/
Dcontainerstreemapentries_fuzzer.cpp68 JSHandle<JSAPITreeMap> CreateJSAPITreeMap(JSThread *thread) in CreateJSAPITreeMap()
77 JSHandle<JSAPITreeMap> map(thread, result); in CreateJSAPITreeMap()
100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapEntriesFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapkeys_fuzzer/
Dcontainerstreemapkeys_fuzzer.cpp68 JSHandle<JSAPITreeMap> CreateJSAPITreeMap(JSThread *thread) in CreateJSAPITreeMap()
77 JSHandle<JSAPITreeMap> map(thread, result); in CreateJSAPITreeMap()
100 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapKeysFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapreplace_fuzzer/
Dcontainerstreemapreplace_fuzzer.cpp68 JSHandle<JSAPITreeMap> CreateJSAPITreeMap(JSThread *thread) in CreateJSAPITreeMap()
77 JSHandle<JSAPITreeMap> map(thread, result); in CreateJSAPITreeMap()
101 JSHandle<JSAPITreeMap> tmap = CreateJSAPITreeMap(thread); in ContainersTreeMapReplaceFuzzTest()

12