/arkcompiler/runtime_core/static_core/runtime/regexp/ecmascript/mem/ |
D | dyn_chunk.cpp | 41 if (memcpy_s(newBuf, size_, buf_, size_) != EOK) { in Expand() 55 if (size_ < position) { in Insert() 58 if (Expand(size_ + len) != 0) { in Insert() 61 size_t moveSize = size_ - position; in Insert() 66 size_ += len; in Insert() 72 if (UNLIKELY((size_ + length) > allocatedSize_)) { in Emit() 73 if (Expand(size_ + length) != 0) { in Emit() 78 if (memcpy_s(buf_ + size_, // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in Emit() 82 size_ += length; in Emit() 93 if (UNLIKELY((size_ + length) > allocatedSize_)) { in EmitSelf() [all …]
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
D | dyn_chunk.cpp | 43 if (memcpy_s(newBuf, size_, buf_, size_) != EOK) { in Expand() 56 if (size_ < position) { in Insert() 59 if (Expand(size_ + len) != 0) { in Insert() 62 size_t moveSize = size_ - position; in Insert() 67 size_ += len; in Insert() 73 if (UNLIKELY((size_ + length) > allocatedSize_)) { in Emit() 74 if (Expand(size_ + length) != 0) { in Emit() 79 if (memcpy_s(buf_ + size_, // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in Emit() 83 size_ += length; in Emit() 94 if (UNLIKELY((size_ + length) > allocatedSize_)) { in EmitSelf() [all …]
|
D | remembered_set.h | 25 explicit RememberedSet(size_t size) : size_(size) {} in RememberedSet() 42 GCBitsetData()->Clear(size_); in ClearAll() 80 GCBitsetData()->IterateMarkedBits<Visitor, AccessType::NON_ATOMIC>(begin, size_, visitor); in IterateAllMarkedBits() 86 GCBitsetData()->IterateMarkedBits<Visitor, AccessType::ATOMIC>(begin, size_, visitor); in AtomicIterateAllMarkedBits() 92 GCBitsetData()->IterateMarkedBitsConst(begin, size_, visitor); in IterateAllMarkedBitsConst() 98 GCBitsetData()->Merge(bitset, size_); in Merge() 103 return size_ + GCBITSET_DATA_OFFSET; in Size() 107 size_t size_;
|
/arkcompiler/ets_runtime/ecmascript/compiler/base/ |
D | depend_chain_helper.cpp | 23 while (size_ > that->size_) { in Merge() 25 size_--; in Merge() 30 size_t rhsSize = that->size_; in Merge() 31 while (rhsSize > size_) { in Merge() 39 size_--; in Merge() 49 if (size_ != that->size_) { in Equals() 71 that->size_ = size_ + 1; in UpdateNode()
|
/arkcompiler/runtime_core/static_core/libpandabase/utils/ |
D | span.h | 42 Span(Iterator data, size_t size) : data_(data), size_(size) {} in Span() 86 return data_ + size_; // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic) in end() 91 return data_ + size_; // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic) in end() 96 return data_ + size_; // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic) in cend() 132 ASSERT(index < size_); 139 ASSERT(index < size_); 145 return size_; in Size() 149 return size_ * sizeof(ElementType); in SizeBytes() 153 return size_ == 0U; in Empty() 167 ASSERT(length <= size_); in First() [all …]
|
D | bit_memory_region.h | 38 size_(size) in BitMemoryRegion() 141 ASSERT(offset < size_); in Read() 150 ASSERT(offset < size_); in Write() 171 ASSERT(offset + length <= size_); in Read() 172 ASSERT(offset < size_); in Read() 195 ASSERT(offset < size_); in ReadBit() 217 ASSERT(offset + length <= size_); in Write() 218 ASSERT(offset < size_); in Write() 238 ASSERT(offset <= size_); in Subregion() 239 ASSERT(offset + length <= size_); in Subregion() [all …]
|
/arkcompiler/runtime_core/libpandabase/utils/ |
D | span.h | 43 Span(Iterator data, size_t size) : data_(data), size_(size) {} in Span() 87 return data_ + size_; // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic) in end() 92 return data_ + size_; // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic) in end() 97 return data_ + size_; // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic) in cend() 133 ASSERT(index < size_); 140 ASSERT(index < size_); 146 return size_; in Size() 150 return size_ * sizeof(ElementType); in SizeBytes() 154 return size_ == 0U; in Empty() 168 ASSERT(length <= size_); in First() [all …]
|
D | bit_memory_region.h | 38 size_(size) in BitMemoryRegion() 131 ASSERT(offset < size_); in Read() 140 ASSERT(offset < size_); in Write() 161 ASSERT(offset + length <= size_); in Read() 162 ASSERT(offset < size_); in Read() 185 ASSERT(offset < size_); in ReadBit() 207 ASSERT(offset + length <= size_); in Write() 208 ASSERT(offset < size_); in Write() 228 ASSERT(offset <= size_); in Subregion() 229 ASSERT(offset + length <= size_); in Subregion() [all …]
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
D | condition_chain.h | 52 size_(size), in ConditionChain() 70 return *(begin_ + size_ - 1); in GetLastBlock() 75 return *(begin_ + size_ - 1); in GetLastBlock() 85 return begin_ + size_; in GetEnd() 90 return size_; in GetSize() 100 return begin_ + size_; in GetEnd() 105 auto last = begin_ + size_; in Contains() 126 size_t size_; variable
|
/arkcompiler/runtime_core/static_core/runtime/mem/ |
D | freelist.h | 35 size_ = size << STATUS_BITS_SIZE; in Initialize() 44 bool used = !((size_ & USED_BIT_MASK_IN_PLACE) == 0x0); in IsUsed() 54 size_ = size_ | USED_BIT_MASK_IN_PLACE; in SetUsed() 63 size_ = size_ & (~USED_BIT_MASK_IN_PLACE); in SetUnused() 74 bool isLastBlockInPool = !((size_ & LAST_BLOCK_IN_POOL_BIT_MASK_IN_PLACE) == 0x0); in IsLastBlockInPool() 84 size_ = size_ | LAST_BLOCK_IN_POOL_BIT_MASK_IN_PLACE; in SetLastBlockInPool() 94 bool isPaddingHeader = GetPaddingStatus(size_) == PADDING_STATUS_PADDING_HEADER; in IsPaddingHeader() 106 size_ = SetPaddingStatus(size_, PADDING_STATUS_PADDING_HEADER); in SetAsPaddingHeader() 116 bool result = GetPaddingStatus(size_) == PADDING_STATUS_COMMON_HEADER_WITH_PADDING_SIZE; in IsPaddingSizeStoredAfterHeader() 128 size_ = SetPaddingStatus(size_, PADDING_STATUS_COMMON_HEADER_WITH_PADDING_SIZE); in SetPaddingSizeStoredAfterHeader() [all …]
|
/arkcompiler/runtime_core/static_core/runtime/include/ |
D | thread.h | 145 storage_[size_++] = data; in PushBack() 153 auto *rawMem = &storage_[size_]; in EmplaceBack() 155 size_++; in EmplaceBack() 161 ASSERT(size_ > 0); in Back() 163 return storage_[size_ - 1]; in Back() 168 return size_ == 0; in Empty() 173 ASSERT(size_ > 0); in PopBack() 174 --size_; in PopBack() 176 (&storage_[size_])->~LockedObjectInfo(); in PopBack() 181 return Span<LockedObjectInfo>(storage_, size_); in Data() [all …]
|
/arkcompiler/runtime_core/static_core/libpandafile/ |
D | code_data_accessor.h | 54 if (size_ == 0) { in GetSize() 58 return size_; in GetSize() 71 size_t size_ {0}; 100 return size_; in GetSize() 108 size_t size_; variable 154 if (size_ == 0) { in GetSize() 158 return size_; in GetSize() 184 size_t size_ {0};
|
/arkcompiler/runtime_core/libpandafile/ |
D | code_data_accessor.h | 54 if (size_ == 0) { in GetSize() 58 return size_; in GetSize() 71 size_t size_; variable 100 return size_; in GetSize() 108 size_t size_; variable 154 if (size_ == 0) { in GetSize() 158 return size_; in GetSize() 184 size_t size_; variable
|
/arkcompiler/ets_frontend/ets2panda/util/ |
D | bitset.cpp | 25 BitSet::BitSet(size_t size) : size_(size) in BitSet() 39 return (size_ >> SHIFT_OFFSET) + 1; in DataSize() 54 ASSERT(pos < size_); in Set() 67 ASSERT(pos < size_); in Test() 76 for (uint32_t i = 0; i < size_; i++) { in Any() 87 for (uint32_t i = 0; i < size_; i++) { in All()
|
/arkcompiler/ets_runtime/ecmascript/platform/ |
D | map.h | 27 MemMap() : originAddr_(nullptr), mem_(nullptr), size_(0) {} in MemMap() 28 MemMap(void *mem, size_t size) : originAddr_(mem), mem_(mem), size_(size) {}; in MemMap() 29 …MemMap(void *originAddr, void *mem, size_t size) : originAddr_(originAddr), mem_(mem), size_(size)… in MemMap() 36 size_ = 0; in Reset() 46 return size_; in GetSize() 56 size_t size_ {0};
|
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/ |
D | executed_memory_allocator.h | 26 size_t size_ {0}; 35 exeMem.size_ = buf.GetSize(); in AllocateBuf() 41 MachineCodePageUnmap(MemMap(exeMem.addr_, exeMem.size_)); in DestroyBuf() 43 exeMem.size_ = 0; in DestroyBuf()
|
/arkcompiler/runtime_core/libpandabase/mem/ |
D | arena-inl.h | 33 size_(buff_size) in Arena() 36 ASAN_POISON_MEMORY_REGION(buff_, size_); in Arena() 42 ASAN_UNPOISON_MEMORY_REGION(buff_, size_); in ~Arena() 43 LOG(DEBUG, ALLOC) << "Destroy Arena buff addr = " << buff_ << " size = " << size_; in ~Arena() 65 if (new_cur_pos <= (ToUintPtr(buff_) + size_)) { in AlignedAlloc() 93 return size_ - (ToUintPtr(curPos_) - ToUintPtr(GetStartPos())); in GetFreeSize() 104 return ToVoidPtr(size_ + ToUintPtr(buff_)); in GetArenaEnd() 148 size_ += size; in ExpandArena()
|
D | mem_pool.h | 29 explicit constexpr Pool(size_t size, void *mem) : size_(size), mem_(mem) {} in Pool() 30 explicit Pool(std::pair<size_t, void *> pool) : size_(pool.first), mem_(pool.second) {} in Pool() 34 return size_; in GetSize() 44 return (this->size_ == other.size_) && (this->mem_ == other.mem_); 58 size_t size_;
|
/arkcompiler/runtime_core/static_core/libpandabase/mem/ |
D | arena-inl.h | 33 size_(buffSize) in Arena() 36 ASAN_POISON_MEMORY_REGION(buff_, size_); in Arena() 42 ASAN_UNPOISON_MEMORY_REGION(buff_, size_); in ~Arena() 43 LOG(DEBUG, ALLOC) << "Destroy Arena buff addr = " << buff_ << " size = " << size_; in ~Arena() 65 if (newCurPos <= (ToUintPtr(buff_) + size_)) { in AlignedAlloc() 93 return size_ - (ToUintPtr(curPos_) - ToUintPtr(GetStartPos())); in GetFreeSize() 104 return ToVoidPtr(size_ + ToUintPtr(buff_)); in GetArenaEnd() 148 size_ += size; in ExpandArena()
|
/arkcompiler/runtime_core/libpandabase/os/ |
D | mem.h | 182 …MapPtr(T *ptr, size_t size, Deleter deleter) : ptr_(ptr), size_(size), page_offset_(0), deleter_(d… in MapPtr() 184 : ptr_(ptr), size_(size), page_offset_(page_offset), deleter_(deleter) in MapPtr() 192 size_ = other.size_; in MapPtr() 202 size_ = other.size_; 216 return size_; in GetSize() 221 return MapRange(ptr_, size_); in GetMapRange() 226 return MapRange(ptr_, size_); in GetMapRange() 236 MapPtr<T, MapPtrType::CONST> res(ptr_, size_, page_offset_, deleter_); in ToConst() 269 size_t size = size_ + page_offset_; in ~MapPtr() 277 size_t size_; variable
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir_builder/ |
D | pbc_iterator.h | 47 BytecodeInstructions(const uint8_t *data, size_t size) : data_(data), size_(size) {} in BytecodeInstructions() 57 …return BytecodeIterator(data_ + size_); // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in end() 66 return size_; in GetSize() 71 size_t size_; member
|
/arkcompiler/runtime_core/compiler/optimizer/ir_builder/ |
D | pbc_iterator.h | 47 BytecodeInstructions(const uint8_t *data, size_t size) : data_(data), size_(size) {} in BytecodeInstructions() 57 …return BytecodeIterator(data_ + size_); // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in end() 66 return size_; in GetSize() 71 size_t size_; member
|
/arkcompiler/runtime_core/static_core/libpandabase/os/ |
D | mem.h | 184 …MapPtr(T *ptr, size_t size, Deleter deleter) : ptr_(ptr), size_(size), pageOffset_(0), deleter_(de… in MapPtr() 186 : ptr_(ptr), size_(size), pageOffset_(pageOffset), deleter_(deleter) in MapPtr() 194 size_ = other.size_; in MapPtr() 204 size_ = other.size_; 218 return size_; in GetSize() 223 return MapRange(ptr_, size_); in GetMapRange() 228 return MapRange(ptr_, size_); in GetMapRange() 238 MapPtr<T, MapPtrType::CONST> res(ptr_, size_, pageOffset_, deleter_); in ToConst() 271 size_t size = size_ + pageOffset_; in ~MapPtr() 277 size_t size_; variable
|
/arkcompiler/ets_frontend/es2panda/compiler/core/ |
D | inlineCache.cpp | 24 return size_; in Size() 29 uint32_t offset = size_ + slotSize; in Offset() 36 size_ = offset; in Offset()
|
/arkcompiler/ets_frontend/es2panda/util/ |
D | bitset.cpp | 25 BitSet::BitSet(size_t size) : size_(size) in BitSet() 39 return (size_ >> shiftOffset) + 1; in DataSize() 54 ASSERT(pos < size_); in Set() 67 ASSERT(pos < size_); in Test()
|