| /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() 61 bool JSAPIHashMap::HasValueLinkedNode(JSTaggedValue node, JSTaggedValue value) in HasValueLinkedNode() 74 bool JSAPIHashMap::HasValueRBTreeNode(JSTaggedValue node, JSTaggedValue value) in HasValueRBTreeNode() 92 bool JSAPIHashMap::Replace(JSThread *thread, JSTaggedValue key, JSTaggedValue newValue) in Replace() 108 void JSAPIHashMap::Set(JSThread *thread, JSHandle<JSAPIHashMap> hashMap, in Set() 132 JSTaggedValue JSAPIHashMap::Get(JSThread *thread, JSTaggedValue key) in Get() 146 void JSAPIHashMap::SetAll(JSThread *thread, JSHandle<JSAPIHashMap> dst, JSHandle<JSAPIHashMap> src) in SetAll() 164 void JSAPIHashMap::SetAllLinkedNode(JSThread *thread, JSHandle<JSAPIHashMap> hashMap, JSMutableHand… in SetAllLinkedNode() [all …]
|
| D | js_api_hashmap_iterator.cpp | 43 …JSHandle<TaggedHashArray> tableArr(thread, JSHandle<JSAPIHashMap>::Cast(iteratedHashMap)->GetTable… in Next() 153 … JSHandle<JSTaggedValue> iter(factory->NewJSAPIHashMapIterator(JSHandle<JSAPIHashMap>(obj), kind)); in CreateHashMapIterator()
|
| /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() 1252 CHECK_DUMP_FIELDS(JSObject::SIZE, JSAPIHashMap::SIZE, 2U); in HWTEST_F_L0() 1253 JSHandle<JSAPIHashMap> jsHashMap = NewJSAPIHashMap(thread, factory); in HWTEST_F_L0() 1265 JSHandle<JSAPIHashMap> jsHashMap = NewJSAPIHashMap(thread, factory); in HWTEST_F_L0()
|
| /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 | 997 … factory->NewEcmaHClass(JSAPIHashMap::SIZE, JSType::JS_API_HASH_MAP, hashMapFuncPrototypeValue); in InitializeHashMap()
|
| /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 | 96 JSHandle<JSAPIHashMap> ConstructobjectHashMap(JSThread *thread) in ConstructobjectHashMap() 113 …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() 600 JSHandle<JSAPIHashMap> hashMap(thread, CreateHashMap(thread)); in HWTEST_F_L0() 610 JSHandle<JSAPIHashMap> hashMap1(thread, CreateHashMap(thread)); in HWTEST_F_L0() 613 JSAPIHashMap::Set(thread, hashMap1, key1, value1); in HWTEST_F_L0() 617 JSAPIHashMap::Set(thread, hashMap1, key2, value2); in HWTEST_F_L0() 763 JSHandle<JSAPIHashMap> hashMap1(thread, CreateHashMap(thread)); in HWTEST_F_L0() 766 JSAPIHashMap::Set(thread, hashMap1, key1, value1); in HWTEST_F_L0() 770 JSAPIHashMap::Set(thread, hashMap1, key2, value2); in HWTEST_F_L0()
|
| /arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/ |
| D | heap_dump_test.cpp | 343 JSHandle<JSAPIHashMap> NewJSAPIHashMap() in NewJSAPIHashMap() 347 …JSHandle<JSObject> jsAPIHashMapObject = NewObject(JSAPIHashMap::SIZE, JSType::JS_API_HASH_MAP, pro… in NewJSAPIHashMap() 348 JSHandle<JSAPIHashMap> jsAPIHashMap = JSHandle<JSAPIHashMap>::Cast(jsAPIHashMapObject); in NewJSAPIHashMap()
|
| D | js_metadata_test.cpp | 499 {JSType::JS_API_HASH_MAP, {JSAPIHashMap::HASHMAP_TABLE_INDEX, in JSMetadataTestHelper() 500 JSAPIHashMap::SIZE - JSAPIHashMap::HASHMAP_TABLE_INDEX}}, in JSMetadataTestHelper() 1317 … {JSType::JS_API_HASH_MAP, {JSAPIHashMap::HASHMAP_SIZE_OFFSET- JSAPIHashMap::HASHMAP_TABLE_INDEX}}, in JSMetadataTestHelper()
|
| /arkcompiler/ets_runtime/ecmascript/mem/ |
| D | object_xray.h | 638 JSAPIHashMap::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | object_factory.h | 118 class JSAPIHashMap; variable 673 …JSHandle<JSAPIHashMapIterator> NewJSAPIHashMapIterator(const JSHandle<JSAPIHashMap> &hashMap, Iter…
|
| D | dump.cpp | 1093 JSAPIHashMap::Cast(obj)->Dump(os); in DumpObject() 2296 void JSAPIHashMap::Dump(std::ostream &os) const in Dump() 2304 void JSAPIHashMap::DumpForSnapshot(std::vector<Reference> &vec) const in DumpForSnapshot() 4277 JSAPIHashMap::Cast(obj)->DumpForSnapshot(vec); in DumpObject()
|
| D | object_factory.cpp | 1550 JSAPIHashMap::Cast(*obj)->SetSize(0); in InitializeJSObject() 1551 JSAPIHashMap::Cast(*obj)->SetTable(thread_, JSTaggedValue::Undefined()); in InitializeJSObject() 3679 JSHandle<JSAPIHashMapIterator> ObjectFactory::NewJSAPIHashMapIterator(const JSHandle<JSAPIHashMap> … in NewJSAPIHashMapIterator()
|
| /arkcompiler/ets_runtime/ecmascript/debugger/ |
| D | debugger_api.cpp | 38 using ecmascript::JSAPIHashMap; 987 JSHandle<JSAPIHashMap> hashMap(JSNApiHelper::ToJSHandle(value)); in GetHashMapValue()
|
| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | json_stringifier.cpp | 635 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()
|