Home
last modified time | relevance | path

Searched refs:set (Results 1 – 25 of 311) sorted by relevance

12345678910>>...13

/arkcompiler/ets_runtime/test/moduletest/container/
Dcontainer_treeset.js27 let set = new fastset(); variable
28 set.add("aa");
29 set.add("bb");
32 map.set("test has:", set.length == 2 && set.has("aa") && set.has("bb") && !set.has("cc"));
34 set.add("cc");
36 …map.set("test getFirstKey and getLastKey:", set.getFirstValue() == "aa" && set.getLastValue() == "…
38 map.set("test getLowerValue and getHigherValue", set.getLowerValue("bb") == "aa" &&
39 set.getLowerValue("aa") == undefined && set.getHigherValue("bb") == "cc" &&
40 set.getHigherValue("cc") == undefined);
43 let iteratorSetValues = set.values();
[all …]
Dcontainer_hashset.js27 let set = new fastset(); variable
28 set.add("aa");
29 set.add("bb");
32 map.set("test has:", set.length == 2 && set.has("aa") && set.has("bb") && !set.has("cc"));
34 set.add("cc");
37 let iteratorSetValues = set.values();
38 …map.set("test values:", iteratorSetValues.next().value == "aa" && iteratorSetValues.next().value =…
41 let iteratorSetEntries = set.entries();
44 map.set("test entries1:", iteratorSetEntries.next().value != undefined);
45 map.set("test entries2:", iteratorSetEntries.next().value == undefined);
[all …]
Dcontainer_hashmap.js30 res.set("test isEmpty ture:", map.isEmpty() == true)
32 map.set("a", "aa");
33 map.set("b", "bb");
36 res.set("test isEmpty false:", map.isEmpty() == false)
38 res.set("test get:", map.length == 2 && map.get("a") == "aa" && map.get("b") == "bb");
40 res.set("test hasKey and hasValue:", map.hasKey("a") && map.hasKey("b") && map.hasValue("aa") &&
43 map.set("c", "cc");
46 res.set("test keys:", iteratorKey.next().value == "a" && iteratorKey.next().value == "b" &&
50 …res.set("test values:", iteratorValues.next().value == "aa" && iteratorValues.next().value == "bb"…
56 res.set("test entries1:", iteratorEntries.next().value != undefined);
[all …]
Dcontainer_lightweightmap.js30 res.set("test isEmpty:", proxy.isEmpty());
31 proxy.set("a", "aa");
32 proxy.set("b", "bb");
35 res.set("test get:", proxy.length == 2 && proxy.get("a") == "aa" && proxy.get("b") == "bb");
37 …res.set("test hasKey and hasValue:", proxy.hasKey("a") && proxy.hasKey("b") && proxy.hasValue("aa"…
40 proxy.set("c", "cc");
42 …res.set("test getIndexOfKey and getIndexOfValue:", proxy.getIndexOfKey("a") === 0 && proxy.getInde…
44 res.set("test getKeyAt:", proxy.getKeyAt(1) == "b");
48 res.set("test keys:", iteratorKey1.next().value == "a" && iteratorKey1.next().value == "b" &&
52 …res.set("test values:", iteratorValues1.next().value == "aa" && iteratorValues1.next().value == "b…
[all …]
Dcontainer_treemap.js28 map.set("a", "aa");
29 map.set("b", "bb");
32 res.set("test get:", map.length == 2 && map.get("a") == "aa" && map.get("b") == "bb");
34 res.set("test hasKey and hasValue:", map.hasKey("a") && map.hasKey("b") && map.hasValue("aa") &&
37 map.set("c", "cc");
39 … res.set("test getFirstKey and getLastKey:", map.getFirstKey() == "a" && map.getLastKey() == "c");
41 …res.set("test getLowerKey and getHigherKey:", map.getLowerKey("b") == "a" && map.getLowerKey("a") …
45 res.set("test keys:", iteratorKey.next().value == "a" && iteratorKey.next().value == "b" &&
49 …res.set("test values:", iteratorValues.next().value == "aa" && iteratorValues.next().value == "bb"…
55 res.set("test entries1:", iteratorEntries.next().value != undefined);
[all …]
Dcontainer_vector.js34 map.set("test add and toString:", res);
37 map.set("test length:", vector.length == 6);
38 map.set("test get(index is 2):", vector.get(2) == 2);
39 map.set("test get(index is 3):", vector.get(3) !== 3); // false
40 map.set("test getIndexOf(target is 3):", vector.getIndexOf(3) == 1); // true
41 map.set("test getIndexOf(target is 2):", vector.getIndexOf(2) !== 5); // false
43 map.set("test isEmpty:", !vector.isEmpty());
48 map.set("test clear:", vector.isEmpty());
50 vec.set(2, 8);
51 map.set("test set:", vec.get(2) == 8 && vec.length == 6);
[all …]
Dcontainer_lightweightset.js27 let set = new fastset(); variable
28 let proxy = new Proxy(set, {});
30 res.set("test isEmpty:", proxy.isEmpty());
35 res.set("test has 1:", proxy.has(1));
36 res.set("test has 2:", proxy.has(2));
37 res.set("test has 3:", proxy.has(3));
39 res.set("test has 4:", proxy.has(4) == false);
42 … res.set("test values:", iteratorValues1.next().value == 1 && iteratorValues1.next().value == 2 &&
48 res.set("test entries1:", iteratorEntries1.next().value != undefined);
49 res.set("itest entries2:", iteratorEntries1.next().value == undefined);
[all …]
Dcontainer_list.js28 map.set("test list isEmpty1:", list.isEmpty() === true)
34 map.set("test list isEmpty2:", list.isEmpty() === false)
35 map.set("test list get 1:", list.get(1) === 1)
36 map.set("test list has:", list.has(8))
37 map.set("test list not has:", list.has(123) === false)
46 map.set("test list equal:", list.equal(list1))
49 map.set("test list equal:", list.equal(list1) === false)
50 map.set("test list getLastIndexOf:", list.getLastIndexOf(1) === 1)
51 map.set("test list getIndexOf:", list.getIndexOf(5) === 5)
61 map.set("test list removeByIndex:", res)
[all …]
Dcontainer_linked_list.js32 map.set("test linkedlist has:", list.has(8))
33 map.set("test linkedlist not has:", list.has(2))
34 map.set("test linkedlist getLastIndexOf:", list.getLastIndexOf(1) === 1)
35 map.set("test linkedlist getIndexOf:", list.getIndexOf(5) === 5)
46 map.set("test linkedlist removeByIndex:", res)
56 map.set("test linkedlist remove:", res)
57 map.set("test linkedlist remove1:", removeRes)
58 map.set("test linkedlist getFirst:", list.getFirst() === 0)
59 map.set("test linkedlist getLast:", list.getLast() === 7)
69 map.set("test linkedlist insert:", res)
[all …]
Dcontainer_plainarray.js43 map.set("test plainarray add:", res)
44 map.set("test plainarray length:", proxy.length === 6)
45 map.set("test plainarray has:", proxy.has(2))
46 map.set("test plainarray getIndexOfValue:", proxy.getIndexOfValue("1") === 1)
47 map.set("test plainarray getIndexOfKey:", proxy.getIndexOfKey(5) === 5)
48 map.set("test plainarray getKeyAt:", proxy.getKeyAt(1) === 1)
49 map.set("test plainarray getValueAt:", proxy.getValueAt(2) === "2")
58 map.set("test plainarray clone:", res)
62 map.set("test plainarray removeRes:", removeRes)
76 map.set("test plainarray removeRangeFrom:", removeFrom)
[all …]
Dcontainer_arraylist.js36 map.set("flag1", flag1);
45 map.set("flag2", flag2);
61 map.set("test arraylist add:", res)
63 map.set("test arraylist has:", proxy.has(2))
64 map.set("test arraylist getCapacity:", proxy.getCapacity() === 15)
65 map.set("test arraylist getLastIndexOf:", proxy.getLastIndexOf(1) === 1)
66 map.set("test arraylist getIndexOf:", proxy.getIndexOf(5) === 5)
76 map.set("test arraylist convertToArray:", res)
85 map.set("test arraylist clone:", res)
95 map.set("test arraylist insert:", res)
[all …]
/arkcompiler/ets_runtime/ecmascript/mem/
Dfree_object_list.cpp137 auto set = region->GetFreeObjectSet(type); in Free() local
138 if (set == nullptr) { in Free()
142 set->Free(start, size); in Free()
145 if (!set->isAdded_) { in Free()
146 AddSet(set); in Free()
155 EnumerateSets([](FreeObjectSet *set) { set->Rebuild(); }); in Rebuild() argument
165 bool FreeObjectList::MatchFreeObjectInSet(FreeObjectSet *set, size_t size) in MatchFreeObjectInSet() argument
167 if (set == nullptr || set->Empty()) { in MatchFreeObjectInSet()
178 object = set->LookupSmallFreeObject(size); in MatchFreeObjectInSet()
180 object = set->LookupLargeFreeObject(size); in MatchFreeObjectInSet()
[all …]
/arkcompiler/toolchain/tooling/test/testcases/js/
Dcontainer.js56 hashMap.set(3, 1);
57 hashMap.set(0, 19);
58 hashMap.set(2, 8);
59 hashMap.set(9, 8);
60 hashMap.set(38, 1);
61 hashMap.set('three', 8);
62 hashMap.set(98, 88);
63 hashMap.set(0, 8);
64 hashMap.set(103, 99);
65 hashMap.set(77, 8);
[all …]
/arkcompiler/runtime_core/cmake/toolchain/
Dcross-ohos-aarch64.cmake14 set(TOOLCHAIN_CLANG_ROOT "" CACHE STRING "Path to clang-<version> directory")
15 set(TOOLCHAIN_SYSROOT "" CACHE STRING "Path to sysroot")
17 set(PANDA_TRIPLET aarch64-linux-ohos)
18 set(PANDA_SYSROOT ${TOOLCHAIN_SYSROOT})
20 set(CMAKE_SYSTEM_NAME OHOS)
21 set(CMAKE_SYSTEM_PROCESSOR aarch64)
22 set(CMAKE_PREFIX_PATH ${TOOLCHAIN_SYSROOT})
23 set(CMAKE_C_COMPILER_TARGET ${PANDA_TRIPLET})
24 set(CMAKE_CXX_COMPILER_TARGET ${PANDA_TRIPLET})
25 set(CMAKE_ASM_COMPILER_TARGET ${PANDA_TRIPLET})
[all …]
Daflplusplus.cmake16 set(ENV{AFL_CC_COMPILER} "LLVM")
20 set(ENV{AFL_LLVM_LAF_ALL} "1")
23 set(PANDA_ENABLE_CLANG_TIDY false CACHE BOOL "Enable clang-tidy checks during compilation" FORCE)
31 set(FUZZER_LIB "/usr/lib/afl/libAFLDriver.a")
32 set(PANDA_WITH_TESTS false)
33 set(PANDA_WITH_BENCHMARKS false)
34 set(PANDA_AFL_COVERAGE false)
35 set(PANDA_ENABLE_AFL true)
36 set(PANDA_BUILD_FUZZ_TARGETS true)
37 set(PANDA_FUZZING_SANITIZERS false)
[all …]
Dfuzzilli.cmake25 set(PANDA_ENABLE_CLANG_TIDY false CACHE BOOL "Enable clang-tidy checks during compilation" FORCE)
26 set(PANDA_BUILD_FUZZ_TARGETS false)
27 set(PANDA_FUZZING_SANITIZERS false)
28 set(PANDA_WITH_TESTS false)
29 set(PANDA_WITH_BENCHMARKS false)
31 set(PANDA_SANCOV_BLACKLIST_PATH ${CMAKE_CURRENT_LIST_DIR}/../../fuzzing/fuzzilli/blacklist.txt)
32 set(PANDA_FUZZILLI true)
34 set(PANDA_CLANG_COVERAGE_FLAGS
38 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${PANDA_CLANG_COVERAGE_FLAGS} -Wno-return-stack-address -Wn…
39 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${PANDA_CLANG_COVERAGE_FLAGS}")
/arkcompiler/runtime_core/cmake/
DPandaAssembly.cmake23 set(prefix ARG)
24 set(noValues)
25 set(singleValues TARGET SOURCE INDIR OUTDIR TARGETNAME)
26 set(multiValues)
40 set(source_file_dir "${CMAKE_CURRENT_SOURCE_DIR}")
43 set(source_file_dir "${ARG_INDIR}")
46 set(binary_file_dir "${CMAKE_CURRENT_BINARY_DIR}")
49 set(binary_file_dir "${ARG_OUTDIR}")
52 set(target_file_name "${ARG_TARGET}")
55 set(target_file_name "${ARG_TARGETNAME}")
[all …]
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_set_test.cpp69 JSHandle<JSSet> set = in CreateSet() local
72 set->SetLinkedSet(thread, hashSet); in CreateSet()
73 return JSSet::Cast(set.GetTaggedValue().GetTaggedObject()); in CreateSet()
79 JSSet *set = CreateSet(); in HWTEST_F_L0() local
80 EXPECT_TRUE(set != nullptr); in HWTEST_F_L0()
87 JSHandle<JSSet> set(thread, CreateSet()); in HWTEST_F_L0() local
90 JSSet::Add(thread, set, key); in HWTEST_F_L0()
91 EXPECT_TRUE(set->Has(key.GetTaggedValue())); in HWTEST_F_L0()
98 JSHandle<JSSet> set(thread, CreateSet()); in HWTEST_F_L0() local
105 JSSet::Add(thread, set, key); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_frontend/ts2panda/ts2abc/
DCMakeLists.txt18 set(PANDA_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../../submodules/panda)
19 set(PANDA_BIN ${CMAKE_CURRENT_BINARY_DIR}/panda)
20 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread")
21 set(JSON_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/jsoncpp)
23 set(CMAKE_CXX_STANDARD 17)
24 set(CMAKE_CXX_STANDARD_REQUIRED ON)
25 set(CMAKE_CXX_EXTENSIONS OFF)
30 set(TS2ABC_SOURCES ts2abc.cpp)
31 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin)
65 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static")
[all …]
/arkcompiler/runtime_core/
DCMakeLists.txt22 set(CMAKE_CONFIGURATION_TYPES ${CMAKE_CONFIGURATION_TYPES}
31 set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
35 set(CMAKE_CXX_STANDARD 17)
36 set(CMAKE_CXX_STANDARD_REQUIRED ON)
37 set(CMAKE_CXX_EXTENSIONS OFF)
43 set(PANDA_ROOT ${CMAKE_CURRENT_SOURCE_DIR})
44 set(PANDA_BINARY_ROOT ${CMAKE_CURRENT_BINARY_DIR})
45 set(PANDA_THIRD_PARTY_SOURCES_DIR ${PANDA_ROOT}/ark-third-party)
46 set(PANDA_THIRD_PARTY_CONFIG_DIR ${PANDA_ROOT}/cmake/ark-third-party)
53 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -rdynamic")
[all …]
/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_tree_set.cpp25 void JSAPITreeSet::Add(JSThread *thread, const JSHandle<JSAPITreeSet> &set, const JSHandle<JSTagged… in Add() argument
35 …JSHandle<TaggedTreeSet> setHandle(thread, TaggedTreeSet::Cast(set->GetTreeSet().GetTaggedObject())… in Add()
39 set->SetTreeSet(thread, newSet); in Add()
54 bool JSAPITreeSet::Delete(JSThread *thread, const JSHandle<JSAPITreeSet> &set, const JSHandle<JSTag… in Delete() argument
56 …JSHandle<TaggedTreeSet> setHandle(thread, TaggedTreeSet::Cast(set->GetTreeSet().GetTaggedObject())… in Delete()
64 set->SetTreeSet(thread, newSet); in Delete()
68 bool JSAPITreeSet::Has(JSThread *thread, const JSHandle<JSAPITreeSet> &set, const JSHandle<JSTagged… in Has() argument
70 …JSHandle<TaggedTreeSet> setHandle(thread, TaggedTreeSet::Cast(set->GetTreeSet().GetTaggedObject())… in Has()
74 void JSAPITreeSet::Clear(const JSThread *thread, const JSHandle<JSAPITreeSet> &set) in Clear() argument
76 int cap = set->GetSize(); in Clear()
[all …]
/arkcompiler/runtime_core/tests/cts-generator/
DCMakeLists.txt18 set(CMAKE_VERBOSE_MAKEFILE ON)
25 # 04.12.20 set to 16 to check behavior
26 set(PANDA_CTS_JOBS_NUMBER 16)
28 set(PANDA_CTS_JOBS_NUMBER 16)
32 set(CTS_TSAN_TEST_SELECTION "--include-tag tsan")
38 set(PANDA_CTS_TESTING_TIMEOUT 6000)
40 set(PANDA_CTS_TESTING_TIMEOUT 4000)
48 set(PANDA_CTS_TEST_TIMEOUT 300) # 300 seconds
50 set(PANDA_CTS_TEST_TIMEOUT 60) # 60 seconds
55 set(CTS_TEMPLATE_DIR_SRC "${PROJECT_SOURCE_DIR}/cts-template")
[all …]
/arkcompiler/runtime_core/tests/cts-coverage-tool/
DCMakeLists.txt21 set(ISA_FILE "${CMAKE_BINARY_DIR}/isa/isa.yaml")
22 set(NON_TESTABLE "${PROJECT_SOURCE_DIR}/config/non_testable.yaml")
23 set(TESTS_DIR "${PROJECT_BINARY_DIR}/../cts-generator/cts-generated")
24 set(TESTS_GLOB_GENERATED "**/*.pa")
27 set(UNCOVERED "${PROJECT_BINARY_DIR}/uncovered.yaml")
28 set(UNCOVERED_MD "${PROJECT_BINARY_DIR}/uncovered.md")
29 set(ORPHANED "${PROJECT_BINARY_DIR}/orphaned.yaml")
30 set(ORPHANED_MD "${PROJECT_BINARY_DIR}/orphaned.md")
31 set(FULL "${PROJECT_BINARY_DIR}/full.yaml")
32 set(FULL_MD "${PROJECT_BINARY_DIR}/full.md")
[all …]
/arkcompiler/ets_runtime/ecmascript/
Djs_set.cpp23 void JSSet::Add(JSThread *thread, const JSHandle<JSSet> &set, const JSHandle<JSTaggedValue> &value) in Add() argument
29 …JSHandle<LinkedHashSet> setHandle(thread, LinkedHashSet::Cast(set->GetLinkedSet().GetTaggedObject(… in Add()
32 set->SetLinkedSet(thread, newSet); in Add()
35 bool JSSet::Delete(const JSThread *thread, const JSHandle<JSSet> &set, const JSHandle<JSTaggedValue… in Delete() argument
37 …JSHandle<LinkedHashSet> setHandle(thread, LinkedHashSet::Cast(set->GetLinkedSet().GetTaggedObject(… in Delete()
46 void JSSet::Clear(const JSThread *thread, const JSHandle<JSSet> &set) in Clear() argument
48 LinkedHashSet *linkedSet = LinkedHashSet::Cast(set->GetLinkedSet().GetTaggedObject()); in Clear()
49 …JSHandle<LinkedHashSet> setHandle(thread, LinkedHashSet::Cast(set->GetLinkedSet().GetTaggedObject(… in Clear()
51 set->SetLinkedSet(thread, newSet); in Clear()
Djs_set_iterator.cpp53 JSHandle<LinkedHashSet> set(iteratedSet); in Next() local
54 int totalElements = set->NumberOfElements() + set->NumberOfDeletedElements(); in Next()
57 if (!set->GetKey(index).IsHole()) { in Next()
59 JSHandle<JSTaggedValue> key(thread, set->GetKey(index)); in Next()
86 LinkedHashSet *set = LinkedHashSet::Cast(iteratedSet.GetTaggedObject()); in Update() local
87 if (set->GetNextTable().IsHole()) { in Update()
91 JSTaggedValue nextTable = set->GetNextTable(); in Update()
93 index -= set->GetDeletedElementsAt(index); in Update()
94 set = LinkedHashSet::Cast(nextTable.GetTaggedObject()); in Update()
95 nextTable = set->GetNextTable(); in Update()
[all …]

12345678910>>...13