Home
last modified time | relevance | path

Searched full:set (Results 1 – 25 of 2484) sorted by relevance

12345678910>>...100

/arkcompiler/ets_runtime/test/aottest/pgo_extrainfomap_expand/
Dpgo_extrainfomap_expand.ts17 set e(a1) {}
20 set e(a2) {}
23 set e(a3) {}
26 set e(a4) {}
29 set e(a5) {}
32 set e(a6) {}
35 set e(a7) {}
38 set e(a8) {}
41 set e(a9) {}
44 set e(a10) {}
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/containers/
DBasicSetTest.sts18 failures += test(createEmptySet(),"Create Empty Set");
19 failures += test(createSetAndAdd(), "Create Set and Add single item");
21 failures += test(createSetAddAndClear(), "Create Set add and clear it");
22 failures += test(createSetAddAndRemove(), "Create Set add and remove some key");
24 failures += test(createSetAndGetValues(), "Get All Values from empty set");
25 failures += test(createSetAddAndGetValues(), "Get All Values from non empty set");
30 failures += test(createSetAddAndCheckHasValue(),"Check set has given value");
44 let set: Set<char> = new Set<char>;
45 set.add(c'a');
46 set.add(c'b');
[all …]
/arkcompiler/ets_runtime/test/moduletest/container/
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_treeset.js33 let set = new fastset(); variable
34 set.add("aa");
35 set.add("bb");
38 map.set("test has:", set.length == 2 && set.has("aa") && set.has("bb") && !set.has("cc"));
40 set.add("cc");
42 …map.set("test getFirstKey and getLastKey:", set.getFirstValue() == "aa" && set.getLastValue() == "…
44 map.set("test getLowerValue and getHigherValue", set.getLowerValue("bb") == "aa" &&
45 set.getLowerValue("aa") == undefined && set.getHigherValue("bb") == "cc" &&
46 set.getHigherValue("cc") == undefined);
49 let iteratorSetValues = set.values();
[all …]
Dcontainer_treemap.js31 map.set("a", "aa");
32 map.set("b", "bb");
35 res.set("test get:", map.length == 2 && map.get("a") == "aa" && map.get("b") == "bb");
37 res.set("test hasKey and hasValue:", map.hasKey("a") && map.hasKey("b") && map.hasValue("aa") &&
40 map.set("c", "cc");
42 … res.set("test getFirstKey and getLastKey:", map.getFirstKey() == "a" && map.getLastKey() == "c");
44 …res.set("test getLowerKey and getHigherKey:", map.getLowerKey("b") == "a" && map.getLowerKey("a") …
52 res.set("test setAll:", dmap.length == 3);
54 res.set("test remove:", dmap.remove("a") == "aa" && dmap.length == 2);
56 res.set("test replace:", dmap.replace("b", "dd") && dmap.get("b") == "dd");
[all …]
Dcontainer_lightweightmap.js32 res.set("test isEmpty:", proxy.isEmpty());
33 proxy.set("a", "aa");
34 proxy.set("b", "bb");
37 res.set("test get:", proxy.length == 2 && proxy.get("a") == "aa" && proxy.get("b") == "bb");
39 …res.set("test hasKey and hasValue:", proxy.hasKey("a") && proxy.hasKey("b") && proxy.hasValue("aa"…
42 proxy.set("c", "cc");
44 …res.set("test getIndexOfKey and getIndexOfValue:", proxy.getIndexOfKey("a") === 0 && proxy.getInde…
46 res.set("test getKeyAt-1:", proxy.getKeyAt(1) == "b");
47 res.set("test getKeyAt-2:", proxy.getKeyAt(Math.floor(1.3)) == "b");
54 res.set("test forEach" + key, flag)
[all …]
Dcontainer_hashmap.js33 res.set("test isEmpty ture:", map.isEmpty() == true)
35 map.set("a", "aa");
36 map.set("b", "bb");
39 res.set("test isEmpty false:", map.isEmpty() == false)
41 res.set("test get:", map.length == 2 && map.get("a") == "aa" && map.get("b") == "bb");
43 res.set("test hasKey and hasValue:", map.hasKey("a") && map.hasKey("b") && map.hasValue("aa") &&
46 map.set("c", "cc");
52 doublemap.set(i, i);
62 myTest.set(Math.floor(1.4), 2);
63 res.set("test key is Double 1, searching for Int 1", myTest.hasKey(1));
[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());
49 // // test set, clone
50 vec.set(2, 8);
[all …]
/arkcompiler/ets_runtime/test/aottest/builtin_inlining/set/Add/
DbuiltinSetAdd copy.ts43 let mySet = new Set();
47 //aot: [trace] aot inline builtin: Set.add, caller function name:func_main_0@builtinSetAdd
48 //: [object Set]
52 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
57 //aot: [trace] aot inline builtin: Set.add, caller function name:func_main_0@builtinSetAdd
61 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
66 //aot: [trace] aot inline builtin: Set.add, caller function name:func_main_0@builtinSetAdd
70 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
75 //aot: [trace] aot inline builtin: Set.add, caller function name:func_main_0@builtinSetAdd
79 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
[all …]
DbuiltinSetAdd.ts43 let mySet = new Set();
47 //aot: [trace] aot inline builtin: Set.add, caller function name:func_main_0@builtinSetAdd
48 //: [object Set]
52 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
57 //aot: [trace] aot inline builtin: Set.add, caller function name:func_main_0@builtinSetAdd
61 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
66 //aot: [trace] aot inline builtin: Set.add, caller function name:func_main_0@builtinSetAdd
70 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
75 //aot: [trace] aot inline builtin: Set.add, caller function name:func_main_0@builtinSetAdd
79 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
[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 …]
/arkcompiler/runtime_core/static_core/cmake/toolchain/
Dcross-ohos-musl-aarch64.cmake17 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})
30 # Prevent failures if TOOLCHAIN_CLANG_ROOT is not set this time but still fail
33 set(CMAKE_AR "/bin/false" CACHE FILEPATH "")
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/
DSet.sts20 * Checks if a value is in the Set
22 * @param v the value to find in the Set
24 * @returns true if the value is in the Set
30 * Returns number of unique elements in the Set
32 * @returns number of unique elements in the Set
37 * Executes a provided function once per each value in the Set object, in insertion order
44 * Executes a provided function once per each value in the Set object, in insertion order
51 * Executes a provided function once per each value in the Set object, in insertion order
58 * Executes a provided function once per each value in the Set object, in insertion order
62 forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void): void;
[all …]
/arkcompiler/runtime_core/static_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/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/test/sharedtest/sharedset/
Dexpect_output.txt15 set size is 5
31 set key[forEach]:key:0, value:0
32 set key[forEach]:key:1, value:1
33 set key[forEach]:key:2, value:2
34 set key[forEach]:key:3, value:3
35 set key[forEach]:key:4, value:4
37 set key[Symbol.iterator]:0
38 set key[Symbol.iterator]:1
39 set key[Symbol.iterator]:2
40 set key[Symbol.iterator]:3
[all …]
/arkcompiler/ets_runtime/test/moduletest/loadicbyname/
Dexpect_output.txt19 SendableFloat64Array set proto with sendable object failed. err: TypeError: Cannot set proto with s…
20 SendableFloat32Array set proto with sendable object failed. err: TypeError: Cannot set proto with s…
21 SendableInt32Array set proto with sendable object failed. err: TypeError: Cannot set proto with sen…
22 SendableInt16Array set proto with sendable object failed. err: TypeError: Cannot set proto with sen…
23 SendableInt8Array set proto with sendable object failed. err: TypeError: Cannot set proto with send…
24 SendableUint32Array set proto with sendable object failed. err: TypeError: Cannot set proto with se…
25 SendableUint16Array set proto with sendable object failed. err: TypeError: Cannot set proto with se…
26 SendableUint8Array set proto with sendable object failed. err: TypeError: Cannot set proto with sen…
27 SendableUint8ClampedArray set proto with sendable object failed. err: TypeError: Cannot set proto w…
/arkcompiler/runtime_core/static_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")
34 # Set timeout for the entire CTS test suite
38 set(PANDA_CTS_TESTING_TIMEOUT 6000)
40 set(PANDA_CTS_TESTING_TIMEOUT 4000)
44 # Set timeout for each single test
48 set(PANDA_CTS_TEST_TIMEOUT 300) # 300 seconds
[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")
34 # Set timeout for the entire CTS test suite
38 set(PANDA_CTS_TESTING_TIMEOUT 6000)
40 set(PANDA_CTS_TESTING_TIMEOUT 4000)
44 # Set timeout for each single test
48 set(PANDA_CTS_TEST_TIMEOUT 300) # 300 seconds
[all …]
/arkcompiler/ets_runtime/ecmascript/mem/
Dfree_object_list.cpp161 auto set = region->GetFreeObjectSet(type); in Free() local
162 if (set == nullptr) { in Free()
163 LOG_FULL(FATAL) << "The set of region is nullptr"; in Free()
166 set->Free(start, size); in Free()
169 if (set->isAdded_ == 0) { in Free()
170 AddSet(set); in Free()
200 auto set = region->GetFreeObjectSet(type); in Free() local
201 if (set == nullptr) { in Free()
202 LOG_FULL(FATAL) << "The set of region is nullptr"; in Free()
205 set->Free(start, size); in Free()
[all …]
/arkcompiler/ets_frontend/es2panda/test/bytecode_file_size_comparison/test_cases/js/
DHashSetTest.js16 const set = new Set(); constant
17 set.add('Apple');
18 set.add('Banana');
19 set.add('Cherry');
21 // Test if the set contains a certain element
22 if (set.has('Banana')) {
23 console.log('The set contains the element \'Banana\'.');
26 // Test removing an element from the set
27 set.delete('Banana');
28 if (!set.has('Banana')) {
[all …]
/arkcompiler/ets_frontend/es2panda/test/bytecode_file_size_comparison/test_cases/ts/
DHashSetTest.ts16 const set = new Set<string>(); constant
17 set.add('Apple');
18 set.add('Banana');
19 set.add('Cherry');
21 // Test if the set contains a certain element
22 if (set.has('Banana')) {
23 console.log('The set contains the element \'Banana\'.');
26 // Test removing an element from the set
27 set.delete('Banana');
28 if (!set.has('Banana')) {
[all …]
/arkcompiler/ets_runtime/test/aottest/builtin_inlining/set/Delete/
DbuiltinSetDelete.ts43 let mySet = new Set([0, 0.0, -5, 2.5, 1e-78, NaN, "xyz", "12345"]);
46 //aot: [trace] aot inline builtin: Set.delete, caller function name:func_main_0@builtinSetDelete
50 //aot: [trace] aot inline builtin: Set.add, caller function name:func_main_0@builtinSetDelete
52 //aot: [trace] aot inline builtin: Set.delete, caller function name:func_main_0@builtinSetDelete
56 //aot: [trace] aot inline builtin: Set.delete, caller function name:func_main_0@builtinSetDelete
58 //aot: [trace] aot inline builtin: Set.delete, caller function name:func_main_0@builtinSetDelete
60 //aot: [trace] aot inline builtin: Set.delete, caller function name:func_main_0@builtinSetDelete
64 //aot: [trace] aot inline builtin: Set.delete, caller function name:func_main_0@builtinSetDelete
68 //aot: [trace] aot inline builtin: Set.delete, caller function name:func_main_0@builtinSetDelete
72 //aot: [trace] aot inline builtin: Set.add, caller function name:func_main_0@builtinSetDelete
[all …]
/arkcompiler/ets_runtime/test/sharedtest/check/
Dexpect_output.txt22 Fail to update propNumber to null with stobjbyname. err: TypeError: Cannot set sendable property wi…
23 Fail to update propBool to null with stobjbyname. err: TypeError: Cannot set sendable property with…
24 Fail to update propBigInt1 to null with stobjbyname. err: TypeError: Cannot set sendable property w…
25 Fail to update propBigInt2 to null with stobjbyname. err: TypeError: Cannot set sendable property w…
45 Fail to update subClassPropString with stobjbyname. err: TypeError: Cannot set sendable property wi…
48 Success set prop through accessor with matched type
49 Fail to set prop through accessor with mismatched type. err: TypeError: Cannot set sendable propert…
57 Fail to replace instance's prototype. err: TypeError: Cannot set proto with sendable object
72 Fail to call Object.assign to update propString with mismatched type. err: TypeError: Cannot set se…
77 Fail to call Object.setPrototypeOf. err: TypeError: Cannot set proto with sendable object
[all …]
/arkcompiler/ets_runtime/test/aottest/builtin_inlining/set/Clear/
DbuiltinSetClear.ts45 let mySet = new Set([0, -5, 2.5]);
49 //aot: [trace] aot inline builtin: Set.clear, caller function name:func_main_0@builtinSetClear
54 let mySet1 = new Set([0, -5, 2.5]);
56 //aot: [trace] aot inline builtin: Set.clear, caller function name:func_main_0@builtinSetClear
61 let mySet2 = new Set([0, -5, 2.5]);
63 //aot: [trace] aot inline builtin: Set.clear, caller function name:func_main_0@builtinSetClear
68 //aot: [trace] aot inline builtin: Set.add, caller function name:func_main_0@builtinSetClear
70 //aot: [trace] aot inline builtin: Set.add, caller function name:func_main_0@builtinSetClear
80 … //aot: [trace] aot inline builtin: Set.clear, caller function name:#*#doClear@builtinSetClear
86 //aot: [trace] aot inline builtin: Set.add, caller function name:func_main_0@builtinSetClear
[all …]

12345678910>>...100