| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/class_ops/ |
| D | class_call_static_method_by_name_void_test.ets | 18 Operations.count += a0; 19 Operations.count += a1; 23 return Operations.count; 26 static count: int = 0; 32 A.count += a0; 33 A.count += a1; 37 return A.count; 44 static count: int = 0; 52 A.count += a0; 53 A.count += a1; [all …]
|
| D | call_static_method_void_test.ets | 18 Operations.count += a0; 19 Operations.count += a1; 23 return Operations.count; 26 static count: int = 0; 31 A.count += a0; 32 A.count += a1; 44 return A.count; 47 static count: int = 0; 52 B.count += a1; 53 B.count -= a0; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_thread_stub_entries.h | 31 static constexpr size_t COUNT = kungfu::BytecodeStubCSigns::NUM_OF_STUBS; member 32 static_assert(EXISTING_BC_HANDLER_STUB_ENTRIES_COUNT <= COUNT); 33 Address stubEntries_[COUNT] = {0}; 35 static constexpr size_t SizeArch32 = sizeof(uint32_t) * COUNT; 36 static constexpr size_t SizeArch64 = sizeof(uint64_t) * COUNT; 40 ASSERT(index < COUNT); in Set() 51 ASSERT(index < COUNT); in Get() 58 static constexpr size_t COUNT = kungfu::RuntimeStubCSigns::NUM_OF_STUBS; member 59 Address stubEntries_[COUNT]; 61 static constexpr size_t SizeArch32 = sizeof(uint32_t) * COUNT; [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/core/ |
| D | ConsoleCountTest.ets | 18 console.count(); 19 console.count(); 20 console.count(); 23 console.count("userClick"); 24 console.count("userClick"); 25 console.count("userClick"); 28 console.count("loop1"); 29 console.count("loop2"); 30 console.count("loop1"); 31 console.count("loop2"); [all …]
|
| /arkcompiler/runtime_core/static_core/verification/util/tests/ |
| D | set_operations_property_test.cpp | 67 RC_ASSERT(result.count(elt) > 0U); 78 RC_ASSERT(set1.count(elt) > 0U && set2.count(elt) > 0U); 81 RC_ASSERT(result.count(elt) == 0U || set2.count(elt) > 0U); 84 RC_ASSERT(result.count(elt) == 0U || set1.count(elt) > 0U); 93 RC_ASSERT(set1.count(elt) > 0U || set2.count(elt) > 0U); 96 RC_ASSERT(result.count(elt) > 0U); 99 RC_ASSERT(result.count(elt) > 0U); 107 RC_ASSERT(set1.count(elt) > 0U && set2.count(elt) == 0U); 118 RC_ASSERT(set1.count(elt) > 0U && set2.count(elt) > 0U && set3.count(elt) > 0U); 121 RC_ASSERT(result.count(elt) == 0U || (set2.count(elt) > 0U && set3.count(elt) > 0U)); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/LinkedList/ |
| D | LinkedListForEachIteratorTest.ets | 49 let count: number = 0; 50 linkedList.forEach(() => { count++ }); 51 assertEQ(count, linkedList.length, "ForEach count should match linkedList length"); 57 let count: number = 0; 59 assertEQ(linkedList.get(count++), value, `Element should be equal`); 61 assertEQ(count, linkedList.length, "ForEach count should match linkedList length"); 67 let count: number = 0; 69 assertEQ(linkedList.get(count), value, `Element should be equal`); 70 assertEQ(count++, index, `The index should be equal`); 72 assertEQ(count, linkedList.length, "ForEach count should match linkedList length"); [all …]
|
| /arkcompiler/ets_runtime/test/aottest/loop_hoist/ |
| D | expect_output.txt | 14 [trace] Opcode: LOAD_BUILTIN_OBJECT Count:1 15 [trace] Opcode: LOAD_PROPERTY Count:0 16 [trace] Opcode: LOAD_BUILTIN_OBJECT Count:1 17 [trace] Opcode: LOAD_PROPERTY Count:0 18 [trace] Opcode: LOAD_BUILTIN_OBJECT Count:1 19 [trace] Opcode: LOAD_PROPERTY Count:1 20 [trace] Opcode: LOAD_BUILTIN_OBJECT Count:1 21 [trace] Opcode: LOAD_PROPERTY Count:1 22 [trace] Opcode: LOAD_BUILTIN_OBJECT Count:1 23 [trace] Opcode: LOAD_PROPERTY Count:1 [all …]
|
| /arkcompiler/ets_runtime/common_components/base/ |
| D | rw_lock.h | 29 int count = lockCount_.load(std::memory_order_acquire); in LockRead() local 31 while (count == WRITE_LOCKED) { in LockRead() 33 count = lockCount_.load(std::memory_order_acquire); in LockRead() 35 } while (!lockCount_.compare_exchange_weak(count, count + 1, std::memory_order_release)); in LockRead() 40 …for (int count = 0; !lockCount_.compare_exchange_weak(count, WRITE_LOCKED, std::memory_order_relea… in LockWrite() local 41 count = 0) { in LockWrite() 48 int count = 0; in TryLockWrite() local 49 if (lockCount_.compare_exchange_weak(count, WRITE_LOCKED, std::memory_order_release)) { in TryLockWrite() 57 int count = lockCount_.load(std::memory_order_acquire); in TryLockRead() local 59 if (count == WRITE_LOCKED) { in TryLockRead() [all …]
|
| D | mem_utils.cpp | 20 void MemorySet(uintptr_t dest, size_t size, int c, size_t count) in MemorySet() argument 25 size_t countPerChunk = count > SECUREC_MEM_MAX_LEN ? SECUREC_MEM_MAX_LEN : count; in MemorySet() 29 count -= countPerChunk; in MemorySet() 34 void MemoryCopy(uintptr_t dest, size_t size, const uintptr_t src, size_t count) in MemoryCopy() argument 40 size_t countPerChunk = count > SECUREC_MEM_MAX_LEN ? SECUREC_MEM_MAX_LEN : count; in MemoryCopy() 44 count -= countPerChunk; in MemoryCopy()
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/main/ |
| D | prop_decorators_and_interfaces_4.ets | 17 count: number; 22 @State countOptions: ChildComponentOptions = { count: 0 } 27 Text(`${this.countOptions.count}`) 34 @State countOptions: ChildComponentOptions = { count: 0 } 39 Text(`${this.countOptions.count}`) 46 @State countOptions: ChildComponentOptions = { count: 0 } 51 Text(`${this.countOptions.count}`) 62 Text(`${this.options1.count}`) 65 this.options1.count++; 68 this.options1.count--; [all …]
|
| D | prop_decorators_and_interfaces_4.ets.migrate.ets | 29 count: number; 34 @State countOptions: ChildComponentOptions = { count: 0.0 } 39 Text(`${this.countOptions.count}`) 46 @State countOptions: ChildComponentOptions = { count: 0.0 } 51 Text(`${this.countOptions.count}`) 58 @State countOptions: ChildComponentOptions = { count: 0.0 } 63 Text(`${this.countOptions.count}`) 74 Text(`${this.options1.count}`) 77 this.options1.count++; 80 this.options1.count--; [all …]
|
| D | dollar_binding_1.ets | 18 @State count: number = 0 24 count: $count 27 count: $$$ 35 @Link count: number 39 Text(`${this.count}`)
|
| /arkcompiler/ets_runtime/ecmascript/compiler/aot_file/ |
| D | binary_buffer_parser.cpp | 19 void BinaryBufferParser::ParseBuffer(void *dst, uint32_t count) in ParseBuffer() argument 21 if (count > 0 && count + offset_ <= length_) { in ParseBuffer() 22 if (memcpy_s(dst, count, buffer_ + offset_, count) != EOK) { in ParseBuffer() 25 offset_ = offset_ + count; in ParseBuffer() 31 void BinaryBufferParser::ParseBuffer(void *dst, uint32_t count, uint32_t offset) in ParseBuffer() argument 34 ParseBuffer(dst, count); in ParseBuffer() 37 void BinaryBufferParser::ParseBuffer(uint8_t *dst, uint32_t count, uint8_t *src) in ParseBuffer() argument 39 if (src >= buffer_ && src + count <= buffer_ + length_) { in ParseBuffer() 40 if (memcpy_s(dst, count, src, count) != EOK) { in ParseBuffer()
|
| /arkcompiler/ets_runtime/ecmascript/mem/ |
| D | mem_common.h | 31 constexpr uint64_t operator"" _KB(long double count) 33 return count * (1ULL << SHIFT_KB); 37 constexpr uint64_t operator"" _KB(unsigned long long count) 39 return count * (1ULL << SHIFT_KB); 42 constexpr uint64_t operator"" _MB(long double count) 44 return count * (1ULL << SHIFT_MB); 48 constexpr uint64_t operator"" _MB(unsigned long long count) 50 return count * (1ULL << SHIFT_MB); 53 constexpr uint64_t operator"" _GB(long double count) 55 return count * (1ULL << SHIFT_GB); [all …]
|
| /arkcompiler/ets_runtime/test/aottest/poly_merge/ |
| D | expect_output.txt | 16 [trace] Opcode: OBJECT_TYPE_CHECK Count:2 19 [trace] Opcode: OBJECT_TYPE_CHECK Count:2 23 [trace] Opcode: OBJECT_TYPE_CHECK Count:3 26 [trace] Opcode: OBJECT_TYPE_CHECK Count:2 30 [trace] Opcode: OBJECT_TYPE_CHECK Count:0 33 [trace] Opcode: OBJECT_TYPE_CHECK Count:0 36 [trace] Opcode: OBJECT_TYPE_CHECK Count:0 40 [trace] Opcode: OBJECT_TYPE_CHECK Count:3 43 [trace] Opcode: OBJECT_TYPE_CHECK Count:2
|
| /arkcompiler/runtime_core/libabckit/src/mem_manager/ |
| D | mem_manager.h | 48 constexpr uint64_t operator"" _KB(long double count) 50 return static_cast<uint64_t>(count * (1ULL << SHIFT_KB)); 54 constexpr uint64_t operator"" _KB(unsigned long long count) 56 return count * (1ULL << SHIFT_KB); 59 constexpr uint64_t operator"" _MB(long double count) 61 return static_cast<uint64_t>(count * (1ULL << SHIFT_MB)); 65 constexpr uint64_t operator"" _MB(unsigned long long count) 67 return count * (1ULL << SHIFT_MB); 70 constexpr uint64_t operator"" _GB(long double count) 72 return static_cast<uint64_t>(count * (1ULL << SHIFT_GB)); [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/docs/rules/ |
| D | recipe93.md | 17 this.count = i // Compile-time error only with noImplicitThis 21 count: number = 1 26 console.log(a.count) // prints "1" 28 console.log(a.count) // prints "2" 39 count: number = 1 41 this.count = i 47 console.log(a.count) // prints "1" 49 console.log(a.count) // prints "2"
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/rules/ |
| D | rule93.ets | 17 this.count = i // Compile-time error only with noImplicitThis 21 count: number = 1 26 console.log(a.count) // prints "1" 28 console.log(a.count) // prints "2" 31 count: number = 1 33 this.count = i 39 console.log(a.count) // prints "1" 41 console.log(a.count) // prints "2"
|
| /arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/ |
| D | heap_tracker_second_test.cpp | 68 …void UpdateHeapStats([[maybe_unused]] HeapStat* updateData, [[maybe_unused]] int32_t count) overri… in UpdateHeapStats() argument 121 int count = 100; in HWTEST_F_L0() local 122 while (count-- > 0) { in HWTEST_F_L0() 126 count = 100; in HWTEST_F_L0() 127 while (count-- > 0) { in HWTEST_F_L0() 131 count = 100; in HWTEST_F_L0() 132 while (count-- > 0) { in HWTEST_F_L0() 157 int count = 100; in HWTEST_F_L0() local 158 while (count-- > 0) { in HWTEST_F_L0() 162 count = 100; in HWTEST_F_L0() [all …]
|
| /arkcompiler/ets_runtime/test/aottest/pgo_inherited_function_operation/ |
| D | expect_output.txt | 26 [trace] Opcode: MONO_STORE_PROPERTY Count:8 27 [trace] Opcode: LOAD_PROPERTY Count:7 28 [trace] Opcode: MONO_LOAD_PROPERTY_ON_PROTO Count:4 45 [trace] Opcode: MONO_STORE_PROPERTY Count:6 46 [trace] Opcode: LOAD_PROPERTY Count:2 47 [trace] Opcode: STORE_PROPERTY Count:1 48 [trace] Opcode: MONO_LOAD_PROPERTY_ON_PROTO Count:4 57 [trace] Opcode: MONO_STORE_PROPERTY Count:4 58 [trace] Opcode: LOAD_PROPERTY Count:1 59 [trace] Opcode: MONO_LOAD_PROPERTY_ON_PROTO Count:5 [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | optinal_lambda_argument.ets | 16 let count = 1; 38 a.on(() => { count = 100 }) 39 assertEQ(count, 100) 41 let lambda1 = () => { count = 200 }; 43 assertEQ(count, 200) 46 b.on(() => { count = 300 }, () => { count = 400 }); 47 assertEQ(count, 400)
|
| /arkcompiler/ets_frontend/es2panda/test/parser/ts/ |
| D | test-static-blocks-in-class2.ts | 20 static #count = 0; 21 static get count() { 22 return PrivateFoo.#count; 24 get count() { 25 return PrivateFoo.#count; 29 PrivateFoo.#count += addResult();
|
| /arkcompiler/ets_runtime/test/aottest/pgo_function_operation/ |
| D | expect_output.txt | 18 [trace] Opcode: MONO_STORE_PROPERTY Count:3 19 [trace] Opcode: LOAD_PROPERTY Count:2 20 [trace] Opcode: STORE_PROPERTY Count:1 21 [trace] Opcode: MONO_LOAD_PROPERTY_ON_PROTO Count:2 25 [trace] Opcode: MONO_STORE_PROPERTY Count:1 31 [trace] Opcode: LOAD_PROPERTY Count:1
|
| /arkcompiler/runtime_core/static_core/runtime/entrypoints/ |
| D | entrypoints_compiler.inl.erb | 20 COUNT, 21 INVALID = COUNT 26 ASSERT(id < EntrypointId::COUNT); 28 constexpr const char* NAMES[static_cast<size_t>(EntrypointId::COUNT)] = { 38 ASSERT(id < EntrypointId::COUNT); 44 case EntrypointId::COUNT: 52 ASSERT(id < EntrypointId::COUNT); 58 case EntrypointId::COUNT: 65 ASSERT(id < EntrypointId::COUNT);
|
| /arkcompiler/ets_frontend/ets2panda/test/compiler/ets/ |
| D | launch_expression.ets | 18 let count = 2 20 let a: int[] = new int[count]; 21 let v: int[] = new int[count]; 31 if (n >= 0 && n < count) { 34 let p: P[] = new P[count] 35 for (let i = 0; i < count; ++i) { 39 for (let i = 0; i < count; ++i) { 45 if (n >= 0 && n < count) { 49 for (let i = 0; i < count; ++i) {
|