| /arkcompiler/ets_runtime/ecmascript/js_api/ |
| D | js_api_hashmap.h | 25 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…
|
| D | js_api_hashmap.cpp | 28 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 …]
|
| D | js_api_hashmap_iterator.cpp | 49 …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/ |
| D | containers_hashmap.cpp | 51 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/ |
| D | js_api_hashmap_test.cpp | 61 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 …]
|
| D | js_api_hashmap_iterator_test.cpp | 61 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()
|
| D | dump_test.cpp | 199 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/ |
| D | containers_hashmap_test.cpp | 70 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/ |
| D | containershashmapsetall_fuzzer.cpp | 67 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/ |
| D | containershashmapforeach_fuzzer.cpp | 67 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/ |
| D | containers_hashmap_stub_builder.h | 33 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/ |
| D | containershashmapset_fuzzer.cpp | 67 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/ |
| D | containershashmap_fuzzer.cpp | 66 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/ |
| D | containershashmapentries_fuzzer.cpp | 67 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/ |
| D | containershashmapremove_fuzzer.cpp | 67 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/ |
| D | containershashmaphaskey_fuzzer.cpp | 67 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/ |
| D | containershashmapclear_fuzzer.cpp | 66 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/ |
| D | containershashmapget_fuzzer.cpp | 67 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/ |
| D | containershashmapgetlength_fuzzer.cpp | 67 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/ |
| D | containershashmapisempty_fuzzer.cpp | 67 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/ |
| D | containershashmapkeys_fuzzer.cpp | 67 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/ |
| D | containershashmaphasvalue_fuzzer.cpp | 67 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/ |
| D | containershashmapvalues_fuzzer.cpp | 67 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/ |
| D | containershashmapreplace_fuzzer.cpp | 67 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/ |
| D | object_factory.h | 118 class JSAPIHashMap; variable 558 …JSHandle<JSAPIHashMapIterator> NewJSAPIHashMapIterator(const JSHandle<JSAPIHashMap> &hashMap, Iter…
|