Home
last modified time | relevance | path

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

12345678910>>...13

/arkcompiler/runtime_core/verification/util/tests/
Dset_operations_property_test.cpp78 RC_ASSERT(result.count(elt) > 0U); in __anon36fc55b10302()
93 RC_ASSERT(set1.count(elt) > 0U && set2.count(elt) > 0U); in __anon36fc55b10402()
96 RC_ASSERT(result.count(elt) == 0U || set2.count(elt) > 0U); in __anon36fc55b10402()
99 RC_ASSERT(result.count(elt) == 0U || set1.count(elt) > 0U); in __anon36fc55b10402()
105 RC_ASSERT(set1.count(elt) > 0U || set2.count(elt) > 0U); in __anon36fc55b10502()
108 RC_ASSERT(result.count(elt) > 0U); in __anon36fc55b10502()
111 RC_ASSERT(result.count(elt) > 0U); in __anon36fc55b10502()
117 RC_ASSERT(set1.count(elt) > 0U && set2.count(elt) == 0U); in __anon36fc55b10602()
132 RC_ASSERT(set1.count(elt) > 0U && set2.count(elt) > 0U && set3.count(elt) > 0U); in __anon36fc55b10702()
135 … RC_ASSERT(result.count(elt) == 0U || (set2.count(elt) > 0U && set3.count(elt) > 0U)); in __anon36fc55b10702()
[all …]
Dobj_pool_test.cpp51 EXPECT_EQ(pool.Count(), 2); in TEST()
57 EXPECT_EQ(pool.Count(), 2); in TEST()
65 EXPECT_EQ(pool.Count(), 2); in TEST()
74 EXPECT_EQ(pool.Count(), 2); in TEST()
80 EXPECT_EQ(pool.Count(), 3); in TEST()
85 EXPECT_EQ(pool.Count(), 3); in TEST()
91 EXPECT_EQ(pool.Count(), 3); in TEST()
98 EXPECT_EQ(pool.Count(), 3); in TEST()
107 EXPECT_EQ(pool.Count(), 2); in TEST()
113 EXPECT_EQ(pool.Count(), 2); in TEST()
[all …]
/arkcompiler/ets_runtime/ecmascript/mem/
Dmem_common.h46 constexpr uint64_t operator"" _KB(long double count)
48 return count * (1ULL << SHIFT_KB);
52 constexpr uint64_t operator"" _KB(unsigned long long count)
54 return count * (1ULL << SHIFT_KB);
57 constexpr uint64_t operator"" _MB(long double count)
59 return count * (1ULL << SHIFT_MB);
63 constexpr uint64_t operator"" _MB(unsigned long long count)
65 return count * (1ULL << SHIFT_MB);
68 constexpr uint64_t operator"" _GB(long double count)
70 return count * (1ULL << SHIFT_GB);
[all …]
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/
Dheap_tracker_test.cpp64 … void UpdateHeapStats([[maybe_unused]]HeapStat* updateData, [[maybe_unused]]int32_t count) override in UpdateHeapStats() argument
117 int count = 100; in HWTEST_F_L0() local
118 while (count-- > 0) { in HWTEST_F_L0()
122 count = 100; in HWTEST_F_L0()
123 while (count-- > 0) { in HWTEST_F_L0()
127 count = 100; in HWTEST_F_L0()
128 while (count-- > 0) { in HWTEST_F_L0()
170 int count = 100; in HWTEST_F_L0() local
171 while (count-- > 0) { in HWTEST_F_L0()
175 count = 100; in HWTEST_F_L0()
[all …]
/arkcompiler/runtime_core/runtime/tests/
Dobject_helpers_test.cpp162 size_t count = 0; in TEST_F() local
163 …auto handler = [klass, &count, expected](ObjectHeader *obj, ObjectHeader *ref, uint32_t offset, bo… in TEST_F()
164 ++count; in TEST_F()
172 ASSERT_EQ(1, count); in TEST_F()
191 size_t count = 0; in TEST_F() local
192 …auto handler = [klass, &count, expected](ObjectHeader *obj, ObjectHeader *ref, uint32_t offset, bo… in TEST_F()
193 ++count; in TEST_F()
201 ASSERT_EQ(1, count); in TEST_F()
222 size_t count = 0; in TEST_F() local
223 …auto handler = [object, &count, expected](ObjectHeader *obj, ObjectHeader *ref, uint32_t offset, b… in TEST_F()
[all …]
Dinternal_allocator_test.cpp81 static size_t count; member
84 value = ++count; in A()
88 --count; in ~A()
94 size_t A::count = 0; member in panda::mem::test::A
98 constexpr size_t COUNT = 5; in TEST_F() local
100 auto arr = allocator_->New<A[]>(COUNT); in TEST_F()
103 ASSERT_EQ(A::count, COUNT); in TEST_F()
104 for (uint8_t i = 1; i <= COUNT; ++i) { in TEST_F()
108 ASSERT_EQ(A::count, 0); in TEST_F()
Dinvokation_helper.h103 counter.Count<Method *>(); in InvokeEntryPoint()
105 counter.Count<ObjectHeader *>(); in InvokeEntryPoint()
118 counter.Count<int32_t>(); in InvokeEntryPoint()
121 counter.Count<float>(); in InvokeEntryPoint()
124 counter.Count<double>(); in InvokeEntryPoint()
128 counter.Count<int64_t>(); in InvokeEntryPoint()
131 counter.Count<ObjectHeader *>(); in InvokeEntryPoint()
134 counter.Count<DecodedTaggedValue>(); in InvokeEntryPoint()
159 counter.Count<Method *>(); in InvokeDynEntryPoint()
160 counter.Count<uint32_t>(); in InvokeDynEntryPoint()
[all …]
Dmem_stats_gen_gc_test.cpp59 count++; in GCStarted()
67 int count = 0; member in panda::mem::test::MemStatsGenGCTest::GCCounter
117 …ObjVec MakeAllocationsWithRepeats(size_t min_size, size_t max_size, size_t count, size_t *allocate…
166 …bjVec MemStatsGenGCTest::MakeAllocationsWithRepeats(size_t min_size, size_t max_size, size_t count, in MakeAllocationsWithRepeats() argument
174 // Create array of object templates based on count and max size in MakeAllocationsWithRepeats()
175 PandaVector<PandaString> obj_templates(count); in MakeAllocationsWithRepeats()
177 for (size_t i = 0; i < count; ++i) { in MakeAllocationsWithRepeats()
181 obj_size += (max_size / count + i); // +i to mess with the alignment in MakeAllocationsWithRepeats()
187 result.reserve(count * repeat); in MakeAllocationsWithRepeats()
188 for (size_t j = 0; j < count; ++j) { in MakeAllocationsWithRepeats()
[all …]
/arkcompiler/ets_runtime/ecmascript/
Djs_thread.h61 static constexpr size_t COUNT = kungfu::BytecodeStubCSigns::NUM_OF_STUBS; member
62 static_assert(EXISTING_BC_HANDLER_STUB_ENTRIES_COUNT <= COUNT);
63 Address stubEntries_[COUNT] = {0};
65 static constexpr size_t SizeArch32 = sizeof(uint32_t) * COUNT;
66 static constexpr size_t SizeArch64 = sizeof(uint64_t) * COUNT;
70 ASSERT(index < COUNT); in Set()
81 ASSERT(index < COUNT); in Get()
88 static constexpr size_t COUNT = kungfu::RuntimeStubCSigns::NUM_OF_STUBS; member
89 Address stubEntries_[COUNT];
91 static constexpr size_t SizeArch32 = sizeof(uint32_t) * COUNT;
[all …]
Dtagged_node.cpp39 JSHandle<JSTaggedValue> value, int count) in InitRBTreeNode() argument
45 SetCount(count); in InitRBTreeNode()
49 uint32_t RBTreeNode::Count(JSTaggedValue nodeValue) in Count() function in panda::ecmascript::RBTreeNode
216 // 1 : root count in Set()
217 uint32_t count = Count(treeNode->GetLeft()) + Count(treeNode->GetRight()) + 1; in Set() local
218 treeNode->SetCount(count); in Set()
235 // 1 : root count in RotateLeft()
236 uint32_t count = Count(GetLeft()) + Count(GetRight()) + 1; in RotateLeft() local
237 SetCount(count); in RotateLeft()
254 // 1 : root count in RotateRight()
[all …]
Djs_arraybuffer.cpp27 …opyDataBlockBytes(JSTaggedValue toBlock, JSTaggedValue fromBlock, int32_t fromIndex, int32_t count) in CopyDataBlockBytes() argument
31 CopyDataPointBytes(toBuf, fromBuf, fromIndex, count); in CopyDataBlockBytes()
34 void JSArrayBuffer::CopyDataPointBytes(void *toBuf, void *fromBuf, int32_t fromIndex, int32_t count) in CopyDataPointBytes() argument
38 if (memcpy_s(to, count, from + fromIndex, count) != EOK) { // NOLINT in CopyDataPointBytes()
/arkcompiler/runtime_core/runtime/entrypoints/
Dentrypoints_compiler.inl.erb20 COUNT
24 ASSERT(id < EntrypointId::COUNT);
26 constexpr const char* NAMES[static_cast<size_t>(EntrypointId::COUNT)] = {
35 ASSERT(id < EntrypointId::COUNT);
41 case EntrypointId::COUNT:
48 ASSERT(id < EntrypointId::COUNT);
54 case EntrypointId::COUNT:
/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/runtime_core/libpandabase/mem/
Dmem.h154 constexpr uint64_t operator"" _KB(long double count)
156 return count * (1ULL << SHIFT_KB);
160 constexpr uint64_t operator"" _KB(unsigned long long count)
162 return count * (1ULL << SHIFT_KB);
165 constexpr uint64_t operator"" _MB(long double count)
167 return count * (1ULL << SHIFT_MB);
171 constexpr uint64_t operator"" _MB(unsigned long long count)
173 return count * (1ULL << SHIFT_MB);
176 constexpr uint64_t operator"" _GB(long double count)
178 return count * (1ULL << SHIFT_GB);
[all …]
/arkcompiler/ets_runtime/ecmascript/base/tests/
Dgc_ring_buffer_test.cpp62 EXPECT_EQ(gcBuffer.Count(), 0); in HWTEST_F_L0()
66 EXPECT_EQ(gcBuffer.Count(), LENGTH); in HWTEST_F_L0()
93 EXPECT_EQ(gcBuffer.Count(), LENGTH); in HWTEST_F_L0()
100 …* The next time you store data, store it from the first position. then call the "Count" …
101 * whether the count of the container is zero.
114 EXPECT_EQ(gcBuffer.Count(), 1); in HWTEST_F_L0()
115 // reset count to zero in HWTEST_F_L0()
117 EXPECT_EQ(gcBuffer.Count(), 0); in HWTEST_F_L0()
/arkcompiler/runtime_core/runtime/mem/gc/
Dgenerational-gc-base.h125 ALWAYS_INLINE void RecordCountFreedYoung(size_t count) in RecordCountFreedYoung() argument
131 ->fetch_add(count, std::memory_order_relaxed); in RecordCountFreedYoung()
134 young_free_object_count_ += count; in RecordCountFreedYoung()
153 ALWAYS_INLINE void RecordCountMovedYoung(size_t count) in RecordCountMovedYoung() argument
159 ->fetch_add(count, std::memory_order_relaxed); in RecordCountMovedYoung()
162 young_move_object_count_ += count; in RecordCountMovedYoung()
181 ALWAYS_INLINE void RecordCountMovedTenured(size_t count) in RecordCountMovedTenured() argument
187 ->fetch_add(count, std::memory_order_relaxed); in RecordCountMovedTenured()
190 tenured_move_object_count_ += count; in RecordCountMovedTenured()
209 ALWAYS_INLINE void RecordCountFreedTenured(size_t count) in RecordCountFreedTenured() argument
[all …]
/arkcompiler/ets_runtime/ecmascript/dfx/vmstat/
Dopt_code_profiler.cpp32 return x.second.Count() > y.second.Count(); in ~OptCodeProfiler()
40 << std::setw(numberRightAdjustment) << "Count" in ~OptCodeProfiler()
53 if (val.Count() == 0) { in ~OptCodeProfiler()
58 << std::setw(numberRightAdjustment) << val.Count() in ~OptCodeProfiler()
61 … << std::setw(numberRightAdjustment) << val.TypedPathCount() * hundred / val.Count() << "%"; in ~OptCodeProfiler()
63 totalCount += val.Count(); in ~OptCodeProfiler()
/arkcompiler/runtime_core/runtime/include/
Dhistogram.h28 * Minimum, maximum, count, average, sum, dispersion
56 * @param count
109 * Minimum, maximum, count, average, sum, dispersion
130 * with the number of their count
132 * @return PandaString with in format: "[key:count[,]]*"
139 * @param count
/arkcompiler/runtime_core/runtime/
Dhandle_storage-inl.h94 uint32_t count = (i != nid) ? NODE_BLOCK_SIZE : offset; in UpdateHeapObject() local
95 for (uint32_t j = 0; j < count; ++j) { in UpdateHeapObject()
118 uint32_t count = (i != nid) ? NODE_BLOCK_SIZE : offset; in VisitGCRoots() local
119 for (uint32_t j = 0; j < count; ++j) { in VisitGCRoots()
142 uint32_t count = (i != nid) ? NODE_BLOCK_SIZE : offset; in UpdateHeapObject() local
143 for (uint32_t j = 0; j < count; ++j) { in UpdateHeapObject()
162 uint32_t count = (i != nid) ? NODE_BLOCK_SIZE : offset; in VisitGCRoots() local
163 for (uint32_t j = 0; j < count; ++j) { in VisitGCRoots()
/arkcompiler/runtime_core/scripts/
Dgc_pause_stats.py27 LIST_OF_STATS = ["count", "min", "max", "avg", "sum"]
36 return sorted(stats_list, key=lambda x: stats.get(x)["count"], reverse=True)
45 stats_info.sort(key=lambda x: stats.get(x[0])["count"], reverse=True)
105 "count": 0
107 count_v = trigger_info.get("count") + 1
120 "count": count_v
149 "count": 0
169 print("Incorrect parameters count", file=sys.stderr)
185 "count": 0
/arkcompiler/runtime_core/verification/value/tests/
Dvariables_test.cpp46 size_t count = 0; in TEST_F() local
48 ForEach(vars.AllVariables(), [&count, &v1, &v2, &v4, &v5](auto v) { in TEST_F()
49 ++count; in TEST_F()
53 EXPECT_EQ(count, 4); in TEST_F()
/arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/
Dreg_alloc_stat.cpp42 regs_ = static_cast<size_t>(std::count(used_regs.begin(), used_regs.end(), true)); in RegAllocStat()
43 vregs_ = static_cast<size_t>(std::count(used_vregs.begin(), used_vregs.end(), true)); in RegAllocStat()
44 slots_ = static_cast<size_t>(std::count(used_slots.begin(), used_slots.end(), true)); in RegAllocStat()
45 vslots_ = static_cast<size_t>(std::count(used_vslots.begin(), used_vslots.end(), true)); in RegAllocStat()
/arkcompiler/ets_runtime/ecmascript/dfx/pgo_profiler/
Dpgo_profiler_manager.h41 * "recordName1:[methodId/count/mode/name,methodId/count/mode/name......]"
42 * "recordName2:[methodId/count/mode/name,methodId/count/mode/name,methodId/count/mode/name......]"
49 MethodProfilerInfo(EntityId id, uint32_t count, SampleMode mode, uint16_t length) in MethodProfilerInfo() argument
50 : id_(id), count_(count), mode_(mode), methodLength_(length) {} in MethodProfilerInfo()
/arkcompiler/runtime_core/compiler/optimizer/templates/intrinsics/
Dentrypoints_bridge_asm_macro.inl.erb16 // Generate macro for each intrinsic - bridge name, function name, parameters count:
19 …&:has_impl?).uniq { |intrn| intrn.impl + ", " + intrn.impl_signature.args.count.to_s + ";;" + intr…
26 ENTRYPOINT <%= implementation %>Bridge, <%= implementation %>, <%= intrn.impl_signature.args.count.…
28 …iBridge, <%= implementation %>CompiledAbi, <%= (intrn.impl_signature.args.count + 1).to_s %>, <%= …
/arkcompiler/ets_runtime/test/moduletest/weaktransitions/
Dweaktransitions.js22 var count = 0; variable
25 let key = count.toString() + "-" +index.toString() + "key";
36 count++;

12345678910>>...13