Home
last modified time | relevance | path

Searched full:count (Results 1 – 25 of 1120) sorted by relevance

12345678910>>...45

/arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/class_ops/
Dclass_call_static_method_by_name_void_test.ets18 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 …]
Dcall_static_method_void_test.ets18 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/
Djs_thread_stub_entries.h31 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/
DConsoleCountTest.ets18 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/
Dset_operations_property_test.cpp67 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/
DLinkedListForEachIteratorTest.ets49 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/
Dexpect_output.txt14 [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/
Drw_lock.h29 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 …]
Dmem_utils.cpp20 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/
Dprop_decorators_and_interfaces_4.ets17 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 …]
Dprop_decorators_and_interfaces_4.ets.migrate.ets29 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 …]
Ddollar_binding_1.ets18 @State count: number = 0
24 count: $count
27 count: $$$
35 @Link count: number
39 Text(`${this.count}`)
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/
Dbinary_buffer_parser.cpp19 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/
Dmem_common.h31 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/
Dexpect_output.txt16 [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/
Dmem_manager.h48 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/
Drecipe93.md17 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/
Drule93.ets17 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/
Dheap_tracker_second_test.cpp68 …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/
Dexpect_output.txt26 [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/
Doptinal_lambda_argument.ets16 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/
Dtest-static-blocks-in-class2.ts20 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/
Dexpect_output.txt18 [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/
Dentrypoints_compiler.inl.erb20 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/
Dlaunch_expression.ets18 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) {

12345678910>>...45