Home
last modified time | relevance | path

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

12345678910>>...33

/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/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 …]
Dobj_pool_test.cpp44 EXPECT_EQ(pool.Count(), 2U); in VerifierTestObjPool1()
50 EXPECT_EQ(pool.Count(), 2U); in VerifierTestObjPool1()
58 EXPECT_EQ(pool.Count(), 2U); in VerifierTestObjPool1()
67 EXPECT_EQ(pool.Count(), 2U); in VerifierTestObjPool1()
73 EXPECT_EQ(pool.Count(), 3U); in VerifierTestObjPool1()
78 EXPECT_EQ(pool.Count(), 3U); in VerifierTestObjPool1()
84 EXPECT_EQ(pool.Count(), 3U); in VerifierTestObjPool1()
95 EXPECT_EQ(pool.Count(), 3U); in VerifierTestObjPool2()
104 EXPECT_EQ(pool.Count(), 2U); in VerifierTestObjPool2()
110 EXPECT_EQ(pool.Count(), 2U); in VerifierTestObjPool2()
[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/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.h47 constexpr uint64_t operator"" _KB(long double count)
49 return count * (1ULL << SHIFT_KB);
53 constexpr uint64_t operator"" _KB(unsigned long long count)
55 return count * (1ULL << SHIFT_KB);
58 constexpr uint64_t operator"" _MB(long double count)
60 return count * (1ULL << SHIFT_MB);
64 constexpr uint64_t operator"" _MB(unsigned long long count)
66 return count * (1ULL << SHIFT_MB);
69 constexpr uint64_t operator"" _GB(long double count)
71 return count * (1ULL << SHIFT_GB);
[all …]
/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 …]
Dheap_tracker_first_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()
175 int count = 100; in HWTEST_F_L0() local
176 while (count-- > 0) { in HWTEST_F_L0()
180 count = 100; in HWTEST_F_L0()
[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_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/linter/test_rules/
Drule93.sts17 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_frontend/ets2panda/test/compiler/ets/
Dlaunch_expression.sts16 let count = 2
18 let a: int[] = new int[count];
19 let v: int[] = new int[count];
29 if (n >= 0 && n < count) {
32 let p: P[] = new P[count]
33 for (let i = 0; i < count; ++i) {
37 for (let i = 0; i < count; ++i) {
43 if (n >= 0 && n < count) {
47 for (let i = 0; i < count; ++i) {
/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();
Dtest-ts-private-class-element-12.ts18 #count: number = 1;
22 override #count: number = 0;
26 static #count = 0;
30 accessor #count = 0;
34 readonly #count = 0;
/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/runtime_core/static_core/libpandabase/utils/
Dutils.cpp27 uint32_t count = 1U; in CountDigits() local
30 return count + 1U; in CountDigits()
33 return count + 2U; in CountDigits()
36 return count + 3U; in CountDigits()
38 count += 4U; in CountDigits()
41 return count; in CountDigits()
/arkcompiler/runtime_core/static_core/runtime/tests/
Dobject_helpers_test.cpp164 size_t count = 0; in TEST_F() local
165 …auto handler = [klass, &count, expected](ObjectHeader *obj, ObjectHeader *ref, uint32_t offset, bo… in TEST_F()
166 ++count; in TEST_F()
174 ASSERT_EQ(1, count); in TEST_F()
193 size_t count = 0; in TEST_F() local
194 …auto handler = [klass, &count, expected](ObjectHeader *obj, ObjectHeader *ref, uint32_t offset, bo… in TEST_F()
195 ++count; in TEST_F()
203 ASSERT_EQ(1, count); in TEST_F()
224 size_t count = 0; in TEST_F() local
225 …auto handler = [object, &count, expected](ObjectHeader *obj, ObjectHeader *ref, uint32_t offset, b… in TEST_F()
[all …]
Dintrusive_gc_test_api_test.cpp67 size_t count = 0; in TEST_P() local
69 vm->IterateOverMarkQueue([&count, &found, object](ObjectHeader *obj) { in TEST_P()
70 ++count; in TEST_P()
75 ASSERT_EQ(1U, count); in TEST_P()
96 count = 0; in TEST_P()
97 vm->IterateOverMarkQueue([&count]([[maybe_unused]] ObjectHeader *obj) { ++count; }); in TEST_P()
98 ASSERT_EQ(0, count); in TEST_P()
Dinvokation_helper.cpp37 counter.Count<int32_t>(); in CountMethodTypes()
40 counter.Count<float>(); in CountMethodTypes()
43 counter.Count<double>(); in CountMethodTypes()
47 counter.Count<int64_t>(); in CountMethodTypes()
50 counter.Count<ObjectHeader *>(); in CountMethodTypes()
53 counter.Count<coretypes::TaggedValue>(); in CountMethodTypes()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/16.Support_for_GUI_Programming/annotations/
Dannotation_@Watch_2.sts24 @Prop @Watch("onCountUpdated") count : number = 0;
28 this.total += this.count;
38 @State count : number = 0;
42 .onClick(() => { this.count++ })
43 TotalView({ count: this.count })
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/16.Support_for_GUI_Programming/trailing_lambdas/
Dtrailing_stmt_07.sts31 let count = 0
35 count++
42 is_active() { count++ }
45 assert count == 2: "Expected 2, actual " + count
/arkcompiler/runtime_core/static_core/libpandafile/
Dparam_annotations_data_accessor.h28 … AnnotationArray(uint32_t count, Span<const uint8_t> offsets) : count_(count), offsets_(offsets) {} in AnnotationArray() argument
78 auto count = helpers::Read<COUNT_SIZE>(&sp); in EnumerateAnnotationArrays() local
79 AnnotationArray array(count, sp); in EnumerateAnnotationArrays()
80 sp = sp.SubSpan(count * ID_SIZE); in EnumerateAnnotationArrays()
94 auto count = helpers::Read<COUNT_SIZE>(&sp); in GetAnnotationArray() local
96 return AnnotationArray {count, sp}; in GetAnnotationArray()
98 sp = sp.SubSpan(count * ID_SIZE); in GetAnnotationArray()
/arkcompiler/runtime_core/libpandafile/
Dparam_annotations_data_accessor.h28 … AnnotationArray(uint32_t count, Span<const uint8_t> offsets) : count_(count), offsets_(offsets) {} in AnnotationArray() argument
78 auto count = helpers::Read<COUNT_SIZE>(&sp); in EnumerateAnnotationArrays() local
79 AnnotationArray array(count, sp); in EnumerateAnnotationArrays()
80 sp = sp.SubSpan(count * ID_SIZE); in EnumerateAnnotationArrays()
94 auto count = helpers::Read<COUNT_SIZE>(&sp); in GetAnnotationArray() local
96 return AnnotationArray {count, sp}; in GetAnnotationArray()
98 sp = sp.SubSpan(count * ID_SIZE); in GetAnnotationArray()
/arkcompiler/ets_runtime/ecmascript/base/tests/
Dgc_ring_buffer_test.cpp38 EXPECT_EQ(gcBuffer.Count(), 0); in HWTEST_F_L0()
42 EXPECT_EQ(gcBuffer.Count(), LENGTH); in HWTEST_F_L0()
69 EXPECT_EQ(gcBuffer.Count(), LENGTH); in HWTEST_F_L0()
76 …* The next time you store data, store it from the first position. then call the "Count" …
77 * whether the count of the container is zero.
90 EXPECT_EQ(gcBuffer.Count(), 1); in HWTEST_F_L0()
91 // reset count to zero in HWTEST_F_L0()
93 EXPECT_EQ(gcBuffer.Count(), 0); in HWTEST_F_L0()

12345678910>>...33