Home
last modified time | relevance | path

Searched refs:JSAPIHashMap (Results 1 – 25 of 29) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_hashmap.h25 class JSAPIHashMap : public JSObject {
27 static JSAPIHashMap *Cast(TaggedObject *object) in Cast()
30 return static_cast<JSAPIHashMap *>(object); in Cast()
33 static void Set(JSThread *thread, JSHandle<JSAPIHashMap> hashMap,
35 static JSTaggedValue HasValue(JSThread *thread, JSHandle<JSAPIHashMap> hashMap,
37 static void SetAll(JSThread *thread, JSHandle<JSAPIHashMap> dst, JSHandle<JSAPIHashMap> src);
38 … static JSTaggedValue Remove(JSThread *thread, JSHandle<JSAPIHashMap> hashMap, JSTaggedValue key);
58 …static void SetAllLinkedNode(JSThread *thread, JSHandle<JSAPIHashMap> hashMap, JSMutableHandle<Lin…
59 …static void SetAllRBTreeNode(JSThread *thread, JSHandle<JSAPIHashMap> hashMap, JSHandle<RBTreeNode…
Djs_api_hashmap.cpp28 JSTaggedValue JSAPIHashMap::IsEmpty() in IsEmpty()
33 JSTaggedValue JSAPIHashMap::HasKey(JSThread *thread, JSTaggedValue key) in HasKey()
40 JSTaggedValue JSAPIHashMap::HasValue(JSThread *thread, JSHandle<JSAPIHashMap> hashMap, in HasValue()
65 bool JSAPIHashMap::HasValueLinkedNode(JSTaggedValue node, JSTaggedValue value) in HasValueLinkedNode()
78 bool JSAPIHashMap::HasValueRBTreeNode(JSTaggedValue node, JSTaggedValue value) in HasValueRBTreeNode()
96 JSTaggedValue JSAPIHashMap::Replace(JSThread *thread, JSTaggedValue key, JSTaggedValue newValue) in Replace()
112 void JSAPIHashMap::Set(JSThread *thread, JSHandle<JSAPIHashMap> hashMap, in Set()
136 JSTaggedValue JSAPIHashMap::Get(JSThread *thread, JSTaggedValue key) in Get()
150 void JSAPIHashMap::SetAll(JSThread *thread, JSHandle<JSAPIHashMap> dst, JSHandle<JSAPIHashMap> src) in SetAll()
168 void JSAPIHashMap::SetAllLinkedNode(JSThread *thread, JSHandle<JSAPIHashMap> hashMap, JSMutableHand… in SetAllLinkedNode()
[all …]
Djs_api_hashmap_iterator.cpp49 …JSHandle<TaggedHashArray> tableArr(thread, JSHandle<JSAPIHashMap>::Cast(iteratedHashMap)->GetTable… in Next()
159 … JSHandle<JSTaggedValue> iter(factory->NewJSAPIHashMapIterator(JSHandle<JSAPIHashMap>(obj), kind)); in CreateHashMapIterator()
/arkcompiler/ets_runtime/ecmascript/containers/
Dcontainers_hashmap.cpp51 JSHandle<JSAPIHashMap> hashMap = JSHandle<JSAPIHashMap>::Cast(obj); in HashMapConstructor()
147 JSHandle<JSAPIHashMap> hashMap = JSHandle<JSAPIHashMap>::Cast(thisHandle); in ForEach()
192 JSHandle<JSAPIHashMap> hashMap = JSHandle<JSAPIHashMap>::Cast(self); in Set()
193 JSAPIHashMap::Set(thread, hashMap, key, value); in Set()
228 JSHandle<JSAPIHashMap> targetMap = JSHandle<JSAPIHashMap>::Cast(self); in SetAll()
229 JSHandle<JSAPIHashMap> sourceMap = JSHandle<JSAPIHashMap>::Cast(obj); in SetAll()
230 JSAPIHashMap::SetAll(thread, targetMap, sourceMap); in SetAll()
251 JSHandle<JSAPIHashMap> hashMap = JSHandle<JSAPIHashMap>::Cast(self); in Get()
273 JSHandle<JSAPIHashMap> hashMap = JSHandle<JSAPIHashMap>::Cast(self); in Remove()
274 return JSAPIHashMap::Remove(thread, hashMap, key.GetTaggedValue()); in Remove()
[all …]
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_api_hashmap_test.cpp61 JSAPIHashMap *CreateHashMap() in CreateHashMap()
81 …JSHandle<JSAPIHashMap> map(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), co… in CreateHashMap()
91 JSAPIHashMap *map = CreateHashMap(); in HWTEST_F_L0()
103 JSHandle<JSAPIHashMap> hashMap(thread, CreateHashMap()); in HWTEST_F_L0()
110 JSAPIHashMap::Set(thread, hashMap, key, value); in HWTEST_F_L0()
120 JSAPIHashMap::Set(thread, hashMap, key, value); in HWTEST_F_L0()
147 JSHandle<JSAPIHashMap> hashMap(thread, CreateHashMap()); in HWTEST_F_L0()
150 JSTaggedValue undefined = JSAPIHashMap::Remove(thread, hashMap, JSTaggedValue::Hole()); in HWTEST_F_L0()
154 JSTaggedValue undefined1 = JSAPIHashMap::Remove(thread, hashMap, JSTaggedValue(0)); in HWTEST_F_L0()
164 JSAPIHashMap::Set(thread, hashMap, key, value); in HWTEST_F_L0()
[all …]
Djs_api_hashmap_iterator_test.cpp61 JSAPIHashMap *CreateHashMap() in CreateHashMap()
81 …JSHandle<JSAPIHashMap> map(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), co… in CreateHashMap()
98 JSHandle<JSAPIHashMap> jsHashMap(thread, CreateHashMap()); in HWTEST_F_L0()
Ddump_test.cpp199 static JSHandle<JSAPIHashMap> NewJSAPIHashMap(JSThread *thread, ObjectFactory *factory) in NewJSAPIHashMap()
203 …JSHandle<JSHClass> mapClass = factory->NewEcmaHClass(JSAPIHashMap::SIZE, JSType::JS_API_HASH_MAP, … in NewJSAPIHashMap()
204 …JSHandle<JSAPIHashMap> jsHashMap = JSHandle<JSAPIHashMap>::Cast(factory->NewJSObjectWithInit(mapCl… in NewJSAPIHashMap()
1061 CHECK_DUMP_FIELDS(JSObject::SIZE, JSAPIHashMap::SIZE, 2U); in HWTEST_F_L0()
1062 JSHandle<JSAPIHashMap> jsHashMap = NewJSAPIHashMap(thread, factory); in HWTEST_F_L0()
1074 JSHandle<JSAPIHashMap> jsHashMap = NewJSAPIHashMap(thread, factory); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/containers/tests/
Dcontainers_hashmap_test.cpp70 JSAPIHashMap::Set(thread, JSHandle<JSAPIHashMap>::Cast(map), key, newValue); in TestForEachFunc()
73 JSHandle<JSAPIHashMap> jsHashMap(GetThis(argv)); in TestForEachFunc()
74 JSAPIHashMap::Set(thread, jsHashMap, key, value); in TestForEachFunc()
100 JSHandle<JSAPIHashMap> CreateJSAPIHashMap() in CreateJSAPIHashMap()
111 JSHandle<JSAPIHashMap> map(thread, result); in CreateJSAPIHashMap()
132 JSHandle<JSAPIHashMap> mapHandle(thread, result); in HWTEST_F_L0()
148 JSHandle<JSAPIHashMap> tMap = CreateJSAPIHashMap(); in HWTEST_F_L0()
160 EXPECT_EQ(JSAPIHashMap::Cast(result.GetTaggedObject())->GetSize(), i + 1); in HWTEST_F_L0()
180 JSHandle<JSAPIHashMap> tMap = CreateJSAPIHashMap(); in HWTEST_F_L0()
192 EXPECT_EQ(JSAPIHashMap::Cast(result.GetTaggedObject())->GetSize(), i + 1); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/containershashmapsetall_fuzzer/
Dcontainershashmapsetall_fuzzer.cpp67 JSHandle<JSAPIHashMap> CreateJSAPIHashMap(JSThread *thread) in CreateJSAPIHashMap()
76 JSHandle<JSAPIHashMap> map(thread, result); in CreateJSAPIHashMap()
97 JSHandle<JSAPIHashMap> tMap = CreateJSAPIHashMap(thread); in ContainersHashMapSetAllFuzzTest()
105 JSHandle<JSAPIHashMap> dMap = CreateJSAPIHashMap(thread); in ContainersHashMapSetAllFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashmapforeach_fuzzer/
Dcontainershashmapforeach_fuzzer.cpp67 JSHandle<JSAPIHashMap> CreateJSAPIHashMap(JSThread *thread) in CreateJSAPIHashMap()
76 JSHandle<JSAPIHashMap> map(thread, result); in CreateJSAPIHashMap()
97 JSHandle<JSAPIHashMap> tMap = CreateJSAPIHashMap(thread); in ContainersHashMapForEachFuzzTest()
104 JSHandle<JSAPIHashMap> dMap = CreateJSAPIHashMap(thread); in ContainersHashMapForEachFuzzTest()
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
Dcontainers_hashmap_stub_builder.h33 GateRef tableOffset = IntPtr(JSAPIHashMap::HASHMAP_TABLE_INDEX); in GetTableLength()
40 GateRef tableOffset = IntPtr(JSAPIHashMap::HASHMAP_TABLE_INDEX); in GetNode()
/arkcompiler/ets_runtime/test/fuzztest/containershashmapset_fuzzer/
Dcontainershashmapset_fuzzer.cpp67 JSHandle<JSAPIHashMap> CreateJSAPIHashMap(JSThread *thread) in CreateJSAPIHashMap()
76 JSHandle<JSAPIHashMap> map(thread, result); in CreateJSAPIHashMap()
97 JSHandle<JSAPIHashMap> tMap = CreateJSAPIHashMap(thread); in ContainersHashMapSetFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashmap_fuzzer/
Dcontainershashmap_fuzzer.cpp66 JSHandle<JSAPIHashMap> CreateJSAPIHashMap(JSThread *thread) in CreateJSAPIHashMap()
75 JSHandle<JSAPIHashMap> map(thread, result); in CreateJSAPIHashMap()
96 JSHandle<JSAPIHashMap> stack = CreateJSAPIHashMap(thread); in ContainersHashMapFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashmapentries_fuzzer/
Dcontainershashmapentries_fuzzer.cpp67 JSHandle<JSAPIHashMap> CreateJSAPIHashMap(JSThread *thread) in CreateJSAPIHashMap()
76 JSHandle<JSAPIHashMap> map(thread, result); in CreateJSAPIHashMap()
97 JSHandle<JSAPIHashMap> tMap = CreateJSAPIHashMap(thread); in ContainersHashMapEntriesFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashmapremove_fuzzer/
Dcontainershashmapremove_fuzzer.cpp67 JSHandle<JSAPIHashMap> CreateJSAPIHashMap(JSThread *thread) in CreateJSAPIHashMap()
76 JSHandle<JSAPIHashMap> map(thread, result); in CreateJSAPIHashMap()
97 JSHandle<JSAPIHashMap> tMap = CreateJSAPIHashMap(thread); in ContainersHashMapRemoveFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashmaphaskey_fuzzer/
Dcontainershashmaphaskey_fuzzer.cpp67 JSHandle<JSAPIHashMap> CreateJSAPIHashMap(JSThread *thread) in CreateJSAPIHashMap()
76 JSHandle<JSAPIHashMap> map(thread, result); in CreateJSAPIHashMap()
97 JSHandle<JSAPIHashMap> tMap = CreateJSAPIHashMap(thread); in ContainersHashMapHasKeyFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashmapclear_fuzzer/
Dcontainershashmapclear_fuzzer.cpp66 JSHandle<JSAPIHashMap> CreateJSAPIHashMap(JSThread *thread) in CreateJSAPIHashMap()
75 JSHandle<JSAPIHashMap> map(thread, result); in CreateJSAPIHashMap()
96 JSHandle<JSAPIHashMap> tMap = CreateJSAPIHashMap(thread); in ContainersHashMapClearFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashmapget_fuzzer/
Dcontainershashmapget_fuzzer.cpp67 JSHandle<JSAPIHashMap> CreateJSAPIHashMap(JSThread *thread) in CreateJSAPIHashMap()
76 JSHandle<JSAPIHashMap> map(thread, result); in CreateJSAPIHashMap()
97 JSHandle<JSAPIHashMap> tMap = CreateJSAPIHashMap(thread); in ContainersHashMapGetFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashmapgetlength_fuzzer/
Dcontainershashmapgetlength_fuzzer.cpp67 JSHandle<JSAPIHashMap> CreateJSAPIHashMap(JSThread *thread) in CreateJSAPIHashMap()
76 JSHandle<JSAPIHashMap> map(thread, result); in CreateJSAPIHashMap()
97 JSHandle<JSAPIHashMap> tMap = CreateJSAPIHashMap(thread); in ContainersHashMapGetLengthFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashmapisempty_fuzzer/
Dcontainershashmapisempty_fuzzer.cpp67 JSHandle<JSAPIHashMap> CreateJSAPIHashMap(JSThread *thread) in CreateJSAPIHashMap()
76 JSHandle<JSAPIHashMap> map(thread, result); in CreateJSAPIHashMap()
97 JSHandle<JSAPIHashMap> tMap = CreateJSAPIHashMap(thread); in ContainersHashMapIsEmptyFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashmapkeys_fuzzer/
Dcontainershashmapkeys_fuzzer.cpp67 JSHandle<JSAPIHashMap> CreateJSAPIHashMap(JSThread *thread) in CreateJSAPIHashMap()
76 JSHandle<JSAPIHashMap> map(thread, result); in CreateJSAPIHashMap()
97 JSHandle<JSAPIHashMap> tMap = CreateJSAPIHashMap(thread); in ContainersHashMapKeysFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashmaphasvalue_fuzzer/
Dcontainershashmaphasvalue_fuzzer.cpp67 JSHandle<JSAPIHashMap> CreateJSAPIHashMap(JSThread *thread) in CreateJSAPIHashMap()
76 JSHandle<JSAPIHashMap> map(thread, result); in CreateJSAPIHashMap()
97 JSHandle<JSAPIHashMap> tMap = CreateJSAPIHashMap(thread); in ContainersHashMapHasValueFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashmapvalues_fuzzer/
Dcontainershashmapvalues_fuzzer.cpp67 JSHandle<JSAPIHashMap> CreateJSAPIHashMap(JSThread *thread) in CreateJSAPIHashMap()
76 JSHandle<JSAPIHashMap> map(thread, result); in CreateJSAPIHashMap()
97 JSHandle<JSAPIHashMap> tMap = CreateJSAPIHashMap(thread); in ContainersHashMapValuesFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containershashmapreplace_fuzzer/
Dcontainershashmapreplace_fuzzer.cpp67 JSHandle<JSAPIHashMap> CreateJSAPIHashMap(JSThread *thread) in CreateJSAPIHashMap()
76 JSHandle<JSAPIHashMap> map(thread, result); in CreateJSAPIHashMap()
97 JSHandle<JSAPIHashMap> tMap = CreateJSAPIHashMap(thread); in ContainersHashMapReplaceFuzzTest()
/arkcompiler/ets_runtime/ecmascript/
Dobject_factory.h118 class JSAPIHashMap; variable
558 …JSHandle<JSAPIHashMapIterator> NewJSAPIHashMapIterator(const JSHandle<JSAPIHashMap> &hashMap, Iter…

12