| /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 | 24 JSTaggedValue JSAPIHashMap::IsEmpty() in IsEmpty() 29 JSTaggedValue JSAPIHashMap::HasKey(JSThread *thread, JSTaggedValue key) in HasKey() 36 JSTaggedValue JSAPIHashMap::HasValue(JSThread *thread, JSHandle<JSAPIHashMap> hashMap, in HasValue() 60 bool JSAPIHashMap::HasValueLinkedNode(JSThread *thread, JSTaggedValue node, JSTaggedValue value) in HasValueLinkedNode() 73 bool JSAPIHashMap::HasValueRBTreeNode(JSThread *thread, JSTaggedValue node, JSTaggedValue value) in HasValueRBTreeNode() 91 bool JSAPIHashMap::Replace(JSThread *thread, JSTaggedValue key, JSTaggedValue newValue) in Replace() 107 void JSAPIHashMap::Set(JSThread *thread, JSHandle<JSAPIHashMap> hashMap, in Set() 131 JSTaggedValue JSAPIHashMap::Get(JSThread *thread, JSTaggedValue key) in Get() 145 void JSAPIHashMap::SetAll(JSThread *thread, JSHandle<JSAPIHashMap> dst, JSHandle<JSAPIHashMap> src) in SetAll() 163 void JSAPIHashMap::SetAllLinkedNode(JSThread *thread, JSHandle<JSAPIHashMap> hashMap, JSMutableHand… in SetAllLinkedNode() [all …]
|
| D | js_api_hashmap_iterator.cpp | 45 …JSHandle<TaggedHashArray> tableArr(thread, JSHandle<JSAPIHashMap>::Cast(iteratedHashMap)->GetTable… in Next() 93 … JSHandle<JSTaggedValue> iter(factory->NewJSAPIHashMapIterator(JSHandle<JSAPIHashMap>(obj), kind)); in CreateHashMapIterator()
|
| /arkcompiler/ets_runtime/ecmascript/containers/ |
| D | containers_hashmap.cpp | 44 JSHandle<JSAPIHashMap> hashMap = JSHandle<JSAPIHashMap>::Cast(obj); in HashMapConstructor() 162 JSHandle<JSAPIHashMap> hashMap = JSHandle<JSAPIHashMap>::Cast(thisHandle); in ForEach() 207 JSHandle<JSAPIHashMap> hashMap = JSHandle<JSAPIHashMap>::Cast(self); in Set() 208 JSAPIHashMap::Set(thread, hashMap, key, value); in Set() 244 JSHandle<JSAPIHashMap> targetMap = JSHandle<JSAPIHashMap>::Cast(self); in SetAll() 245 JSHandle<JSAPIHashMap> sourceMap = JSHandle<JSAPIHashMap>::Cast(obj); in SetAll() 246 JSAPIHashMap::SetAll(thread, targetMap, sourceMap); in SetAll() 267 JSHandle<JSAPIHashMap> hashMap = JSHandle<JSAPIHashMap>::Cast(self); in Get() 289 JSHandle<JSAPIHashMap> hashMap = JSHandle<JSAPIHashMap>::Cast(self); in Remove() 290 return JSAPIHashMap::Remove(thread, hashMap, key.GetTaggedValue()); in Remove() [all …]
|
| D | containers_private.cpp | 981 … factory->NewEcmaHClass(JSAPIHashMap::SIZE, JSType::JS_API_HASH_MAP, hashMapFuncPrototypeValue); in InitializeHashMap()
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | js_api_hashmap_test.cpp | 36 JSAPIHashMap *CreateHashMap() in CreateHashMap() 41 void Update(JSHandle<JSAPIHashMap>& hashMap, JSMutableHandle<JSTaggedValue>& key, in Update() 50 JSAPIHashMap::Set(thread, hashMap, key, value); in Update() 57 JSAPIHashMap *map = CreateHashMap(); in HWTEST_F_L0() 69 JSHandle<JSAPIHashMap> hashMap(thread, CreateHashMap()); in HWTEST_F_L0() 76 JSAPIHashMap::Set(thread, hashMap, key, value); in HWTEST_F_L0() 108 JSHandle<JSAPIHashMap> hashMap(thread, CreateHashMap()); in HWTEST_F_L0() 111 JSTaggedValue undefined = JSAPIHashMap::Remove(thread, hashMap, JSTaggedValue::Hole()); in HWTEST_F_L0() 115 JSTaggedValue undefined1 = JSAPIHashMap::Remove(thread, hashMap, JSTaggedValue(0)); in HWTEST_F_L0() 125 JSTaggedValue undefined2 = JSAPIHashMap::Remove(thread, hashMap, JSTaggedValue(0)); in HWTEST_F_L0() [all …]
|
| D | js_api_hashmap_iterator_test.cpp | 36 JSAPIHashMap *CreateHashMap() in CreateHashMap() 51 JSHandle<JSAPIHashMap> jsHashMap(thread, CreateHashMap()); in HWTEST_F_L0()
|
| D | ecma_container_common.h | 106 static JSAPIHashMap *CreateHashMap(JSThread *thread) in CreateHashMap() 111 …JSHandle<JSAPIHashMap> map(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), co… in CreateHashMap()
|
| D | dump_test.cpp | 269 static JSHandle<JSAPIHashMap> NewJSAPIHashMap(JSThread *thread, ObjectFactory *factory) in NewJSAPIHashMap() 273 …JSHandle<JSHClass> mapClass = factory->NewEcmaHClass(JSAPIHashMap::SIZE, JSType::JS_API_HASH_MAP, … in NewJSAPIHashMap() 274 …JSHandle<JSAPIHashMap> jsHashMap = JSHandle<JSAPIHashMap>::Cast(factory->NewJSObjectWithInit(mapCl… in NewJSAPIHashMap() 1268 CHECK_DUMP_FIELDS(JSObject::SIZE, JSAPIHashMap::SIZE, 2U); in HWTEST_F_L0() 1269 JSHandle<JSAPIHashMap> jsHashMap = NewJSAPIHashMap(thread, factory); in HWTEST_F_L0() 1281 JSHandle<JSAPIHashMap> jsHashMap = NewJSAPIHashMap(thread, factory); in HWTEST_F_L0()
|
| /arkcompiler/ets_runtime/test/fuzztest/containershashmapcommon_fuzzer/ |
| D | containershashmapcommon_fuzzer.h | 68 static JSHandle<JSAPIHashMap> CreateJSAPIHashMap(JSThread *thread) in CreateJSAPIHashMap() 77 JSHandle<JSAPIHashMap> map(thread, result); in CreateJSAPIHashMap() 116 JSHandle<JSAPIHashMap> tMap = CreateJSAPIHashMap(thread); in ContainersHashMapEntriesFuzzTest() 139 JSHandle<JSAPIHashMap> stack = CreateJSAPIHashMap(thread); in ContainersHashMapFuzzTest() 157 JSHandle<JSAPIHashMap> tMap = CreateJSAPIHashMap(thread); in ContainersHashMapClearFuzzTest() 180 JSHandle<JSAPIHashMap> tMap = CreateJSAPIHashMap(thread); in ContainersHashMapForEachFuzzTest() 187 JSHandle<JSAPIHashMap> dMap = CreateJSAPIHashMap(thread); in ContainersHashMapForEachFuzzTest() 206 JSHandle<JSAPIHashMap> tMap = CreateJSAPIHashMap(thread); in ContainersHashMapGetFuzzTest() 231 JSHandle<JSAPIHashMap> tMap = CreateJSAPIHashMap(thread); in ContainersHashMapGetLengthFuzzTest() 255 JSHandle<JSAPIHashMap> tMap = CreateJSAPIHashMap(thread); in ContainersHashMapHasKeyFuzzTest() [all …]
|
| /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/ecmascript/compiler/builtins/ |
| D | containers_hashmap_stub_builder.h | 38 GateRef tableOffset = IntPtr(JSAPIHashMap::HASHMAP_TABLE_INDEX); in BUILTINS_WITH_CONTAINERS_HASHMAP_STUB_BUILDER() 45 GateRef tableOffset = IntPtr(JSAPIHashMap::HASHMAP_TABLE_INDEX); in GetNode()
|
| D | containers_stub_builder.h | 193 GateRef tableOffset = IntPtr(JSAPIHashMap::HASHMAP_TABLE_INDEX); in ContainerGetSize() 287 GateRef tableOffset = IntPtr(JSAPIHashMap::HASHMAP_TABLE_INDEX); in ContainerGetNode()
|
| /arkcompiler/ets_runtime/test/fuzztest/jsvaluerefishashmap_fuzzer/ |
| D | jsvaluerefishashmap_fuzzer.cpp | 97 JSHandle<JSAPIHashMap> ConstructobjectHashMap(JSThread *thread) in ConstructobjectHashMap() 114 …JSHandle<JSAPIHashMap> map(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), co… in ConstructobjectHashMap() 130 JSHandle<JSAPIHashMap> map = ConstructobjectHashMap(thread); in JSValueRefIsHashMapFuzzTest()
|
| /arkcompiler/ets_runtime/ecmascript/base/tests/ |
| D | json_stringifier_test.cpp | 129 static JSAPIHashMap *CreateHashMap(JSThread *thread) in CreateHashMap() 601 JSHandle<JSAPIHashMap> hashMap(thread, CreateHashMap(thread)); in HWTEST_F_L0() 611 JSHandle<JSAPIHashMap> hashMap1(thread, CreateHashMap(thread)); in HWTEST_F_L0() 614 JSAPIHashMap::Set(thread, hashMap1, key1, value1); in HWTEST_F_L0() 618 JSAPIHashMap::Set(thread, hashMap1, key2, value2); in HWTEST_F_L0() 765 JSHandle<JSAPIHashMap> hashMap1(thread, CreateHashMap(thread)); in HWTEST_F_L0() 768 JSAPIHashMap::Set(thread, hashMap1, key1, value1); in HWTEST_F_L0() 772 JSAPIHashMap::Set(thread, hashMap1, key2, value2); in HWTEST_F_L0()
|
| /arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/ |
| D | heap_dump_test.cpp | 539 JSHandle<JSAPIHashMap> NewJSAPIHashMap() in NewJSAPIHashMap() 543 …JSHandle<JSObject> jsAPIHashMapObject = NewObject(JSAPIHashMap::SIZE, JSType::JS_API_HASH_MAP, pro… in NewJSAPIHashMap() 544 JSHandle<JSAPIHashMap> jsAPIHashMap = JSHandle<JSAPIHashMap>::Cast(jsAPIHashMapObject); in NewJSAPIHashMap()
|
| D | js_metadata_test.cpp | 504 {JSType::JS_API_HASH_MAP, {JSAPIHashMap::HASHMAP_TABLE_INDEX, in JSMetadataTestHelper() 505 JSAPIHashMap::SIZE - JSAPIHashMap::HASHMAP_TABLE_INDEX}}, in JSMetadataTestHelper() 1325 … {JSType::JS_API_HASH_MAP, {JSAPIHashMap::HASHMAP_SIZE_OFFSET- JSAPIHashMap::HASHMAP_TABLE_INDEX}}, in JSMetadataTestHelper()
|
| /arkcompiler/ets_runtime/ecmascript/mem/ |
| D | object_xray.h | 667 JSAPIHashMap::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | object_factory.h | 123 class JSAPIHashMap; variable 722 …JSHandle<JSAPIHashMapIterator> NewJSAPIHashMapIterator(const JSHandle<JSAPIHashMap> &hashMap, Iter…
|
| D | dump.cpp | 1140 JSAPIHashMap::Cast(obj)->Dump(thread, os); in DumpObject() 2388 void JSAPIHashMap::Dump(const JSThread *thread, std::ostream &os) const in Dump() 2397 void JSAPIHashMap::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot() 4398 JSAPIHashMap::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
|
| D | object_factory.cpp | 1566 JSAPIHashMap::Cast(*obj)->SetSize(0); in InitializeJSObject() 1567 JSAPIHashMap::Cast(*obj)->SetTable<SKIP_BARRIER>(thread_, JSTaggedValue::Undefined()); in InitializeJSObject() 3771 JSHandle<JSAPIHashMapIterator> ObjectFactory::NewJSAPIHashMapIterator(const JSHandle<JSAPIHashMap> … in NewJSAPIHashMapIterator()
|
| /arkcompiler/ets_runtime/ecmascript/debugger/ |
| D | debugger_api.cpp | 41 using ecmascript::JSAPIHashMap; 1014 JSHandle<JSAPIHashMap> hashMap(JSNApiHelper::ToJSHandle(value)); in GetHashMapValue()
|
| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | json_stringifier.cpp | 585 JSHandle<JSAPIHashMap> hashMap(value); in SerializeJSONHashMap()
|
| D | json_stringifier_optimized.cpp | 579 JSHandle<JSAPIHashMap> hashMap(value); in SerializeJSONHashMap()
|
| /arkcompiler/ets_runtime/ecmascript/napi/test/ |
| D | ffi_workload.cpp | 1245 JSHandle<JSAPIHashMap> ConstructobjectHashMap(const EcmaVM *vm_) in ConstructobjectHashMap() 1262 …JSHandle<JSAPIHashMap> map(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), co… in ConstructobjectHashMap() 1542 JSHandle<JSAPIHashMap> map = ConstructobjectHashMap(vm_); in HWTEST_F_L0()
|