/arkcompiler/runtime_core/static_core/runtime/ |
D | object_header_config.h | 48 using Size = uint32_t; 49 static constexpr Size BITS = 32U; 50 static constexpr Size LOCK_THREADID_SIZE = 13U; 58 using Size = uint64_t; 59 static constexpr Size BITS = 64UL; 60 static constexpr Size LOCK_THREADID_SIZE = 29UL; 68 using Size = uint16_t; 69 static constexpr Size BITS = 16U; 70 static constexpr Size LOCK_THREADID_SIZE = 7U;
|
D | imtable_builder.cpp | 23 if (cda->IsInterface() || itable.Size() == 0U) { in Build() 28 for (size_t i = 0; i < itable.Size(); i++) { in Build() 31 ifmNum += methods.Size(); in Build() 46 if (isInterface || itable.Size() == 0U) { in Build() 51 for (size_t i = 0; i < itable.Size(); i++) { in Build() 54 ifmNum += methods.Size(); in Build() 79 for (size_t i = 0; i < itable.Size(); i++) { in UpdateClass() 84 for (size_t j = 0; j < itfMethods.Size(); j++) { in UpdateClass()
|
/arkcompiler/runtime_core/static_core/verification/util/tests/ |
D | bit_vector_property_test.cpp | 68 for (size_t idx = 0; idx < bitset.bits.Size(); ++idx) { in ShowValue() 141 ClassifySize("Bits.size() in", bitset.bits.Size(), g_statIntervals); in Stat() 161 RC_ASSERT(bits.Size() == bit_set.bits.Size()); 162 for (size_t idx = 0; idx < bits.Size(); ++idx) { 179 RC_ASSERT(bset.bits.SetBitsCount() == bset.bits.Size()); 185 auto zeroBits = bset.bits.Size() - bset.bits.SetBitsCount(); 193 auto size = bset.bits.Size(); 204 auto size = bset.bits.Size(); 216 auto size = bset.bits.Size(); 231 RC_PRE(interval.Finish() < bset.bits.Size()); [all …]
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_tagged_queue_test.cpp | 61 EXPECT_EQ(queue->Size(), 0U); in HWTEST_F_L0() 74 EXPECT_EQ(queue2->Size(), 1U); in HWTEST_F_L0() 80 EXPECT_EQ(queue3->Size(), 2U); in HWTEST_F_L0() 87 EXPECT_EQ(queue4->Size(), 3U); in HWTEST_F_L0() 94 EXPECT_EQ(queue5->Size(), 4U); in HWTEST_F_L0() 100 EXPECT_EQ(queue5->Size(), 3U); in HWTEST_F_L0() 104 EXPECT_EQ(queue5->Size(), 2U); in HWTEST_F_L0() 108 EXPECT_EQ(queue5->Size(), 1U); in HWTEST_F_L0() 112 EXPECT_EQ(queue5->Size(), 0U); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/base/ |
D | aligned_struct.h | 29 static constexpr size_t Size = 1; 36 static constexpr size_t Size = 1 + sizeof...(Res); 44 static constexpr size_t NumOfTypes = ElemTypeList::Size; 85 static constexpr size_t Size() 94 static constexpr size_t Size() 103 static constexpr size_t Size() 112 static constexpr size_t Size() 121 static constexpr size_t Size() 130 static constexpr size_t Size()
|
/arkcompiler/runtime_core/libpandafile/ |
D | helpers.h | 70 THROW_IF(sp->Size() < width, INVALID_SPAN_OFFSET); in Read() 84 THROW_IF(sp->Size() < sizeof(uint16_t), INVALID_SPAN_OFFSET); 99 THROW_IF(sp->Size() < sizeof(uint32_t), INVALID_SPAN_OFFSET); 122 THROW_IF(sp->Size() == 0U, INVALID_SPAN_OFFSET); in ReadULeb128() 128 THROW_IF(!is_full || sp->Size() < n, INVALID_SPAN_OFFSET); in ReadULeb128() 135 if (sp->Size() > 0U && (*sp)[0U] <= leb128::PAYLOAD_MASK) { in SkipULeb128() 140 if (sp->Size() > 1U && (*sp)[1U] <= leb128::PAYLOAD_MASK) { in SkipULeb128() 145 if (sp->Size() > 2U && (*sp)[2U] <= leb128::PAYLOAD_MASK) { in SkipULeb128() 150 if (sp->Size() > 3U && (*sp)[3U] <= leb128::PAYLOAD_MASK) { in SkipULeb128() 161 THROW_IF(!is_full || sp->Size() < n, INVALID_SPAN_OFFSET); in ReadLeb128() [all …]
|
D | class_data_accessor.cpp | 32 THROW_IF(sp.Size() < size, File::INVALID_FILE_OFFSET); in ClassDataAccessor() 41 THROW_IF(sp.Size() == 0U, File::INVALID_FILE_OFFSET); in ClassDataAccessor() 45 THROW_IF(sp.Size() == 0U, File::INVALID_FILE_OFFSET); in ClassDataAccessor() 52 THROW_IF(sp.Size() < size, File::INVALID_FILE_OFFSET); in ClassDataAccessor() 56 THROW_IF(sp.Size() == 0U, File::INVALID_FILE_OFFSET); in ClassDataAccessor() 65 THROW_IF(sp.Size() < TAG_SIZE, File::INVALID_FILE_OFFSET); in ClassDataAccessor()
|
D | field_data_accessor.cpp | 49 THROW_IF(tagged_values_sp_.Size() == 0U, File::INVALID_FILE_OFFSET); in GetValueInternal() 56 THROW_IF(sp.Size() == 0U, File::INVALID_FILE_OFFSET); in GetValueInternal() 60 THROW_IF(sp.Size() == 0U, File::INVALID_FILE_OFFSET); in GetValueInternal()
|
/arkcompiler/runtime_core/static_core/verification/util/ |
D | bit_vector.h | 262 ASSERT(idx < Size()); 290 ASSERT(idx < Size()); in Clr() 295 ASSERT(idx < Size()); in Set() 312 if (Size() != rhs.Size()) { 315 size_t lastWordPartialBits = Size() % BITS_IN_WORD; 323 size_t lastWordStart = Size() - lastWordPartialBits; 324 return bits(lastWordStart, Size() - 1) == rhs.bits(lastWordStart, Size() - 1); 389 size_t sz = std::min(Size(), rhs.Size()); in Process() 412 if (Size() < rhs.Size()) { 413 Resize(rhs.Size()); [all …]
|
/arkcompiler/runtime_core/libpandabase/utils/ |
D | regmask.h | 75 static constexpr size_t Size() in Size() function 92 ASSERT(bit < Size()); in Test() 107 ASSERT(bit < Size()); in Set() 113 ASSERT(bit < Size()); in Set() 123 ASSERT(bit < Size()); in Reset() 141 ASSERT(reg < Size()); in GetDistanceFromTail() 150 if (reg < (Size() - 1)) { in GetDistanceFromHead() 154 if (reg == Size() - 1) { in GetDistanceFromHead() 282 return Size(); in size()
|
D | bit_memory_region.h | 55 if (bit_ != region_.Size() && !region_.ReadBit(bit_)) { in Iterator() 78 ASSERT(bit_ + n < region_.Size()); 101 … for (bit_ += step; bit_ > 0 && bit_ != region_.Size() && !region_.ReadBit(bit_); bit_ += step) { in Next() 104 bit_ = region_.Size(); in Next() 126 return Iterator(*this, Size()); in end() 179 ASSERT(sizeof(T) * BITS_PER_BYTE >= Size()); in ReadAll() 180 return Read(0, Size()); in ReadAll() 240 size_t Size() const in Size() function 247 ASSERT(first < Size()); in Popcount() 248 ASSERT((first + length) <= Size()); in Popcount() [all …]
|
D | bit_memory_region-inl.h | 31 if (Size() >= BITS_PER_WORD) { in Dump() 33 size_t width = BITS_PER_WORD - (BITS_PER_HEX_DIGIT - Size() % BITS_PER_HEX_DIGIT); in Dump() 34 for (ssize_t i = Size() - width; i >= 0; i -= width) { in Dump()
|
/arkcompiler/runtime_core/static_core/libpandabase/utils/ |
D | regmask.h | 75 static constexpr size_t Size() in Size() function 92 ASSERT(bit < Size()); in Test() 107 ASSERT(bit < Size()); in Set() 113 ASSERT(bit < Size()); in Set() 123 ASSERT(bit < Size()); in Reset() 141 ASSERT(reg < Size()); in GetDistanceFromTail() 150 if (reg < (Size() - 1)) { in GetDistanceFromHead() 154 if (reg == Size() - 1) { in GetDistanceFromHead() 289 return Size(); in size()
|
D | bit_memory_region.h | 63 if (bit_ != region_.Size() && !region_.ReadBit(bit_)) { in Iterator() 86 ASSERT(bit_ + n < region_.Size()); 109 … for (bit_ += step; bit_ > 0 && bit_ != region_.Size() && !region_.ReadBit(bit_); bit_ += step) { in Next() 112 bit_ = region_.Size(); in Next() 136 return Iterator(*this, Size()); in end() 189 ASSERT(sizeof(T) * BITS_PER_BYTE >= Size()); in ReadAll() 190 return Read(0, Size()); in ReadAll() 250 size_t Size() const in Size() function 257 ASSERT(first < Size()); in Popcount() 258 ASSERT((first + length) <= Size()); in Popcount() [all …]
|
D | bit_memory_region-inl.h | 43 if (Size() >= BITS_PER_WORD) { in Dump() 45 size_t width = BITS_PER_WORD - (BITS_PER_HEX_DIGIT - Size() % BITS_PER_HEX_DIGIT); in Dump() 46 for (ssize_t i = Size() - width; i >= 0; i -= width) { in Dump()
|
/arkcompiler/runtime_core/static_core/runtime/mem/ |
D | region_space.cpp | 38 ASSERT(Size() >= GetAllocatedBytes()); in GetFragmentation() 39 return static_cast<double>(Size() - GetAllocatedBytes()) / Size(); in GetFragmentation() 93 auto bitmapData = allocator->Alloc(MarkBitmap::GetBitMapSizeInByte(Size())); in CreateMarkBitmap() 95 markBitmap_ = allocator->New<MarkBitmap>(this, Size(), bitmapData); in CreateMarkBitmap() 105 auto bitmapData = allocator->Alloc(MarkBitmap::GetBitMapSizeInByte(Size())); in CreateLiveBitmap() 107 liveBitmap_ = allocator->New<MarkBitmap>(this, Size(), bitmapData); in CreateLiveBitmap() 192 for (size_t i = 0; i < occupied_.Size(); ++i) { in AllocRegion() 209 while (left + allocRegionNum <= occupied_.Size()) { in AllocLargeRegion() 238 size_t regionNum = region->Size() / regionSize_; in FreeRegion() 239 ASSERT(regionIdx + regionNum <= occupied_.Size()); in FreeRegion() [all …]
|
/arkcompiler/ets_runtime/ecmascript/ |
D | tagged_hash_table.h | 40 inline int Size() const in Size() function 69 int freeSize = table->Size() - table->EntriesCount() - numOfAddedElements; 71 int copyLength = Derived::GetEntryIndex(table->Size()); 73 copyTable->SetHashTableSize(thread, table->Size()); 79 …int newSize = Derived::ComputeCompactSize(table, ComputeHashTableSize(table->Size() + numOfAddedEl… 80 table->Size(), numOfAddedElements); 151 int newSize = RecalculateTableSize(table->Size(), table->EntriesCount() + additionalSize); in Shrink() 152 if (newSize == table->Size()) { in Shrink() 165 int currentSize = Size(); in IsNeedGrowHashTable() 199 int size = Size(); in GetAllKeys() [all …]
|
D | tagged_dictionary.cpp | 63 if (data1.Size() != data2.Size()) { in IsMatch() 72 int size = Size(); in GetAllKeys() 92 int size = Size(); in GetAllKeysByFilter() 123 int size = Size(); in GetNumOfEnumKeys() 143 int size = Size(); in GetAllEnumKeys() 172 int size = Size(); in GetAllEnumKeys() 284 int size = obj->Size(); in GetAllKeys() 310 uint32_t size = static_cast<uint32_t>(obj->Size()); in GetAllKeysByFilter() 337 int size = obj->Size(); in GetAllEnumKeys()
|
/arkcompiler/runtime_core/static_core/runtime/tests/ |
D | string_table_test.cpp | 95 ASSERT_EQ(table.Size(), 0); in EmptyTable() 110 ASSERT_EQ(table.Size(), 1); in InternCompressedUtf8AndString() 124 ASSERT_EQ(table.Size(), 1); in InternUncompressedUtf8AndString() 142 ASSERT_EQ(table.Size(), 1); in InternTheSameUtf16String() 163 ASSERT_EQ(table.Size(), ITERATIONS); in InternManyStrings() 170 auto tableInitSize = table->Size(); in SweepObjectInTable() 194 ASSERT_EQ(table->Size(), tableInitSize + expectedTableSize); in SweepObjectInTable() 200 ASSERT_EQ(table->Size(), tableInitSize); in SweepObjectInTable() 207 auto tableInitSize = table->Size(); in SweepNonMovableObjectInTable() 234 ASSERT_EQ(table->Size(), tableInitSize + expectedTableSize); in SweepNonMovableObjectInTable() [all …]
|
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
D | getter_setter_static_modifier.ets | 46 public static set Size(s: int): void { 54 public static get Size(): int { 78 Glass.Size = 150; 81 const size = Glass.Size; 85 assert Glass.Size == 150;
|
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ap_file/ |
D | pgo_file_info.cpp | 26 size_t desSize = Size(inHeader->GetSectionNumber()); in BuildFromLegacy() 50 size_t desSize = inHeader->Size(); in BuildFromElastic() 107 fileStream.write(reinterpret_cast<const char *>(this), Size()); in ProcessToBinary() 112 auto sectionSize = Size() - sizeof(FileHeaderElastic); in ProcessToBinary()
|
D | pgo_file_info.h | 121 GetPandaInfoSection()->offset_ = Size(); in PGOProfilerHeader() 122 SetHeaderSize(Size()); in PGOProfilerHeader() 130 static size_t Size(uint32_t sectionNumber) in Size() function 135 size_t Size() const in Size() function 137 return Size(sectionNumber_); in Size()
|
/arkcompiler/ets_runtime/ecmascript/serializer/ |
D | serialize_data.h | 188 ASSERT(position_ < Size()); in ReadUint8() 204 ASSERT(position_ < Size()); in ReadUint32() 227 ASSERT(position_ < Size()); in ReadJSTaggedType() 235 ASSERT(position_ + len <= Size()); in ReadRawData() 248 size_t Size() const in Size() function
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/ |
D | ets_itable_builder.cpp | 82 superItableSize = base->GetITable().Size(); in Build() 108 for (size_t i = superItableSize; i < itable.Size(); i++) { in Build() 129 for (size_t i = itable_.Size(); i > 0; i--) { in Resolve() 156 for (size_t i = 0; i < itable.Size(); i++) { in DumpITable()
|
/arkcompiler/ets_runtime/ecmascript/jobs/ |
D | micro_job_queue.cpp | 34 return promiseQueue->Size(); in GetPromiseQueueSize() 53 LOG_ECMA(VERBOSE) << "EnqueueJob length: " << newPromiseQueue->Size(); in EnqueueJob() 67 LOG_ECMA(VERBOSE) << "ExecutePendingJob length: " << promiseQueue->Size(); in ExecutePendingJob()
|