| /arkcompiler/ets_runtime/test/aottest/pgo_extrainfomap_expand/ |
| D | pgo_extrainfomap_expand.ts | 17 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/ |
| D | BasicSetTest.ets | 21 failures += test(createEmptySet(),"Create Empty Set") 22 failures += test(createSetAndAdd(), "Create Set and Add single item") 24 failures += test(createSetAddAndClear(), "Create Set add and clear it") 25 failures += test(createSetAddAndRemove(), "Create Set add and remove some key") 27 failures += test(createSetAndGetValues(), "Get All Values from empty set") 28 failures += test(createSetAddAndGetValues(), "Get All Values from non empty set") 33 failures += test(createSetAddAndCheckHasValue(),"Check set has given value") 34 failures += test(createSetFromBuiltinArray(), "Create set from builtin array") 48 let set: Set<char> = new Set<char> 49 set.add(c'a') [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/set/ts_to_ets/ |
| D | set.ets | 16 package set.test; 18 export function TestSetAdd(set: Set<number>): boolean { 20 set.add(4); 21 set.add(4); 22 set.add(5); 23 res = set.has(1) && set.has(2) && set.has(3) && 24 set.has(4) && set.has(5) && (set.size === 5); 28 export function TestSetHas(set: Set<number>): boolean { 30 res = set.has(1) && set.has(2) && set.has(3) && 31 set.has(4) && set.has(5) && !set.has(999); [all …]
|
| /arkcompiler/ets_frontend/arkguard/src/utils/ |
| D | CommonCollections.ts | 25 export let reservedProperties: Set<string> = new Set(); 29 // it is necessary to prevent duplication with the names in this set. 30 export let globalMangledNamesInCache: Set<string> = new Set(); 45 export let reservedSdkApiForProp: Set<string> = new Set(); 46 export let reservedSdkApiForGlobal: Set<string> = new Set(); 47 export let reservedSdkApiForLocal: Set<string> = new Set(); 48 export let reservedStruct: Set<string> = new Set(); 49 export let reservedLangForProperty: Set<string> = new Set(); 52 …export let reservedLangForTopLevel: Set<string> = new Set(['__global', 'default']); // Will not ad… 53 export let reservedExportName: Set<string> = new Set(); [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/container/ |
| D | container_treeset.js | 33 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 …]
|
| D | container_treemap.js | 31 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 …]
|
| D | container_hashset.js | 27 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 …]
|
| /arkcompiler/runtime_core/static_core/cmake/toolchain/ |
| D | cross-ohos-musl-arm32.cmake | 17 set(PANDA_TRIPLET arm-linux-ohos) 18 set(PANDA_SYSROOT ${TOOLCHAIN_SYSROOT}) 19 set(PANDA_TARGET_ARM32_ABI_SOFTFP 1) 21 set(CMAKE_SYSTEM_NAME OHOS) 22 set(CMAKE_SYSTEM_PROCESSOR arm) 23 set(CMAKE_PREFIX_PATH ${TOOLCHAIN_SYSROOT}) 24 set(CMAKE_C_COMPILER_TARGET ${PANDA_TRIPLET}) 25 set(CMAKE_CXX_COMPILER_TARGET ${PANDA_TRIPLET}) 26 set(CMAKE_ASM_COMPILER_TARGET ${PANDA_TRIPLET}) 31 # Prevent failures if TOOLCHAIN_CLANG_ROOT is not set this time but still fail [all …]
|
| D | cross-ohos-musl-aarch64.cmake | 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}) 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/libabckit/include/c/isa/ |
| D | isa_dynamic.h | 272 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `inst` is NULL. 273 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `inst` is not Intrinsic. 274 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if Intrinsic opcode is not GETMODULENAMESPACE or 283 * @param [ in ] md - Module to be set. 284 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `inst` is NULL. 285 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `md` is NULL. 286 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `inst` is not Intrinsic. 287 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if Intrinsic opcode is not GETMODULENAMESPACE or 289 …* @note Set `ABCKIT_STATUS_WRONG_CTX` error if corresponding `AbckitFile`s owning `inst` and `md` … 297 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `inst` is NULL. [all …]
|
| D | isa_static.h | 141 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if AbckitInst *inst is NULL. 150 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if AbckitInst *inst is NULL. 151 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if AbckitCoreClass *klass is NULL. 159 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if AbckitInst *inst is NULL. 168 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if AbckitInst *inst is NULL. 176 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if AbckitInst *inst is NULL. 186 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if AbckitInst *inst is NULL. 195 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if AbckitInst *inst is NULL. 205 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if AbckitGraph *graph is NULL. 206 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if AbckitInst *input0 is NULL. [all …]
|
| /arkcompiler/runtime_core/cmake/toolchain/ |
| D | cross-ohos-aarch64.cmake | 14 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/ets_runtime/test/sharedtest/sharedset/ |
| D | expect_output.txt | 15 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/aottest/forof_set_test/ |
| D | forof_set_test.ts | 21 // Test basic for of set.entries() 23 let set = new Set([1, 2]); 24 for (let ele of set) { 29 // Test basic for of set.keys() 31 let set= new Set(['a', 'b', 2]); 32 for (let ele of set.keys()) { 37 // Test basic for of set.values() 39 let set = new Set(['a', 1, 'b', 2]); 40 for (let ele of set.values()) { 45 // Test update set [all …]
|
| /arkcompiler/ets_runtime/test/aottest/builtin_inlining/set/Add/ |
| D | builtinSetAdd.ts | 43 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/static_core/plugins/ets/tests/ets_func_tests/std/core/ |
| D | TypedArrayReflectSetTest.ets | 18 arktest.assertEQ(Reflect.set(sample, '1.1', 1), true); 21 arktest.assertEQ(Reflect.set(sample, '0.0001', 1), true); 24 arktest.assertEQ(Reflect.set(sample, '0', '127'), true); 27 arktest.assertEQ(Reflect.set(sample, '0', '0x7F'), true); 30 arktest.assertEQ(Reflect.set(sample, '0', '0o77'), true); 33 arktest.assertEQ(Reflect.set(sample, '0', '0b101010'), true); 36 arktest.assertEQ(Reflect.set(sample, '0', '3.9'), true); 39 arktest.assertEQ(Reflect.set(sample, '0', 7.8), true); 42 arktest.assertEQ(Reflect.set(sample, '0', '-0x1F'), true); 48 arktest.assertEQ(Reflect.set(sample, '1.1', 1), true); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/ |
| D | Set.ets | 20 * 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 41 forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void): void; 44 * Despite name, returns elements from the Set 45 * @returns an iterable of the values in the set 50 * Returns elements from the Set [all …]
|
| /arkcompiler/runtime_core/static_core/cmake/ |
| D | PandaAssembly.cmake | 23 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/ |
| D | PandaAssembly.cmake | 23 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/static_core/tests/cts-generator/ |
| D | CMakeLists.txt | 18 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/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/types/ |
| D | IsSetIteratorTest.ets | 21 suite.addTest("Verify Set.keys() is identified as SetIterator", testIsSetIterator001) 22 suite.addTest("Verify Set.values() is identified as SetIterator", testIsSetIterator002) 23 suite.addTest("Verify Set.entries() is identified as SetIterator", testIsSetIterator003) 24 suite.addTest("Verify Set.$_iterator() is identified as SetIterator", testIsSetIterator004) 25 suite.addTest("Verify Set is not identified as SetIterator", testIsSetIterator005) 33 * @tc.desc: Verify Set.keys() is identified as SetIterator 40 const set = new Set<int>(); 41 let result = proc.isSetIterator(set.keys()); 48 * @tc.desc: Verify Set.values() is identified as SetIterator 55 const set = new Set<int>(); [all …]
|
| /arkcompiler/runtime_core/taihe/ |
| D | CMakeLists.txt | 18 set(CMAKE_C_COMPILER "clang") 21 set(CMAKE_CXX_COMPILER "clang++") 24 set(CMAKE_CXX_STANDARD 17) 25 set(CMAKE_CXX_STANDARD_REQUIRED True) 26 set(CMAKE_EXPORT_COMPILE_COMMANDS ON) 33 # set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address ") 34 # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address ") 38 set(CMAKE_BUILD_TYPE Debug) 41 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC") 42 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") [all …]
|
| /arkcompiler/runtime_core/libabckit/include/cpp/headers/ |
| D | instruction.h | 102 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `bool(*this)` results in `false` 109 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `bool(*this)` results in `false` 110 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `Instruction` is not a constant instruction. 111 … * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `Instruction` is not I64 constant instruction. 142 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `bool(*this)` results in `false` 162 * @param [ in ] index - Index of input to be set. 163 * @param [ in ] input - Input instruction to be set. 177 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `bool(*this)` results in `false` 184 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `Instruction` is false. 185 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `Instruction` has no LiteralArray argument. [all …]
|
| /arkcompiler/runtime_core/tests/cts-generator/ |
| D | CMakeLists.txt | 18 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_frontend/es2panda/test/bytecode_file_size_comparison/test_cases/js/ |
| D | HashSetTest.js | 16 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 …]
|