/arkcompiler/ets_runtime/ecmascript/mem/ |
H A 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_ in Emit() [all...] |
H A D | jit_fort_memdesc.h | 63 return mem_ + size_; in GetEnd() 73 size_ = size; in SetSize() 88 return size_; in Available() 98 size_ = size; in SetAvailable() 103 ASAN_POISON_MEMORY_REGION((const volatile void *)mem_, size_); in AsanPoisonFreeObject() 108 ASAN_UNPOISON_MEMORY_REGION((const volatile void *)mem_, size_); in AsanUnPoisonFreeObject() 123 size_t size_ {0};
|
H A D | remembered_set.h | 25 explicit RememberedSet(size_t size) : size_(size) {} in RememberedSet() 42 GCBitsetData()->Clear(size_); in ClearAll() 85 GCBitsetData()->IterateMarkedBits<Visitor, AccessType::NON_ATOMIC>(begin, size_, visitor); in IterateAllMarkedBits() 91 GCBitsetData()->IterateMarkedBits<Visitor, AccessType::ATOMIC>(begin, size_, visitor); in AtomicIterateAllMarkedBits() 97 GCBitsetData()->IterateMarkedBitsConst(begin, size_, visitor); in IterateAllMarkedBitsConst() 103 GCBitsetData()->Merge(bitset, size_); in Merge() 108 return size_ + GCBITSET_DATA_OFFSET; in Size() 112 size_t size_; member in panda::ecmascript::RememberedSet
|
/arkcompiler/runtime_core/static_core/runtime/regexp/ecmascript/mem/ |
H A 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_ in Emit() [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/base/ |
H A 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_ in UpdateNode() [all...] |
/arkcompiler/runtime_core/libpandabase/utils/ |
H A 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_); in operator []() 140 ASSERT(index < size_); 146 return size_; 150 return size_ * sizeof(ElementType); 154 return size_ == 0U; 168 ASSERT(length <= size_); [all...] |
H A D | bit_memory_region.h | 38 size_(size) in BitMemoryRegion() 131 ASSERT(offset < size_); in Read() 140 ASSERT(offset < size_); 161 ASSERT(offset + length <= size_); 162 ASSERT(offset < size_); 185 ASSERT(offset < size_); 207 ASSERT(offset + length <= size_); 208 ASSERT(offset < size_); 228 ASSERT(offset <= size_); 229 ASSERT(offset + length <= size_); [all...] |
/arkcompiler/runtime_core/static_core/libpandabase/utils/ |
H A 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_); in operator []() 139 ASSERT(index < size_); 145 return size_; 149 return size_ * sizeof(ElementType); 153 return size_ == 0U; 167 ASSERT(length <= size_); [all...] |
H A D | bit_memory_region.h | 38 size_(size) in BitMemoryRegion() 134 ASSERT(offset < size_); in Read() 143 ASSERT(offset < size_); 164 ASSERT(offset + length <= size_); 165 ASSERT(offset < size_); 188 ASSERT(offset < size_); 210 ASSERT(offset + length <= size_); 211 ASSERT(offset < size_); 231 ASSERT(offset <= size_); 232 ASSERT(offset + length <= size_); [all...] |
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
H A 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_; member in ark::compiler::ConditionChain
|
/arkcompiler/runtime_core/static_core/runtime/mem/ |
H A 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_) in IsPaddingHeader() [all...] |
/arkcompiler/runtime_core/libpandafile/ |
H A D | code_data_accessor.h | 54 if (size_ == 0) { in GetSize() 58 return size_; in GetSize() 71 size_t size_; member in panda::panda_file::CodeDataAccessor::TryBlock 100 return size_; in GetSize() 108 size_t size_; member in panda::panda_file::CodeDataAccessor::CatchBlock 154 if (size_ == 0) { in GetSize() 158 return size_; in GetSize() 184 size_t size_; member in panda::panda_file::CodeDataAccessor
|
/arkcompiler/runtime_core/static_core/libpandafile/ |
H A 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_; member in ark::panda_file::CodeDataAccessor::CatchBlock 154 if (size_ == 0) { in GetSize() 158 return size_; in GetSize() 184 size_t size_ {0};
|
/arkcompiler/ets_frontend/ets2panda/util/ |
H A D | bitset.cpp | 25 BitSet::BitSet(size_t size) : size_(size) in BitSet() 39 return (size_ >> SHIFT_OFFSET) + 1; 54 ASSERT(pos < size_); 67 ASSERT(pos < size_); 76 for (uint32_t i = 0; i < size_; i++) { 87 for (uint32_t i = 0; i < size_; i++) {
|
/arkcompiler/runtime_core/static_core/runtime/include/ |
H A D | thread.h | 146 storage_[size_++] = data; in PushBack() 154 auto *rawMem = &storage_[size_]; in EmplaceBack() 156 size_++; in EmplaceBack() 162 ASSERT(size_ > 0); in Back() 164 return storage_[size_ - 1]; in Back() 169 return size_ == 0; in Empty() 174 ASSERT(size_ > 0); in PopBack() 175 --size_; in PopBack() 177 (&storage_[size_])->~LockedObjectInfo(); in PopBack() 182 return Span<LockedObjectInfo>(storage_, size_); in Data() [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/ |
H A 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/compiler/optimizer/ir_builder/ |
H A D | pbc_iterator.h | 53 BytecodeInstructions(const uint8_t *data, size_t size) : data_(data), size_(size) {} in BytecodeInstructions() 63 return BytecodeIterator(data_ + size_); // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in end() 73 return size_; in GetSize() 78 size_t size_; member
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir_builder/ |
H A 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/libpandabase/mem/ |
H A 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() local 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()
|
/arkcompiler/runtime_core/static_core/libpandabase/mem/ |
H A 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() local 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/compiler/optimizer/ir/ |
H A D | inst.cpp | 80 for (size_t i = 0; i < size_; i++) { in Reallocate() 103 ASSERT(capacity_ >= size_); in Append() 104 if (capacity_ == size_) { in Append() 107 SetInput(size_, Input(inst)); in Append() 109 new (users_ + capacity_ - size_ - 1) User(false, size_, capacity_); in Append() 110 auto user {GetUser(size_)}; in Append() 112 user->SetBbNum(size_); in Append() 115 return size_++; in Append() 120 size_ in Remove() [all...] |
/arkcompiler/ets_frontend/es2panda/compiler/core/ |
H A D | inlineCache.cpp | 24 return size_; in Size() 29 uint32_t offset = size_ + slotSize; in Offset() 36 size_ = offset; in Offset()
|
/arkcompiler/runtime_core/libpandabase/os/ |
H A D | mem.h | 182 MapPtr(T *ptr, size_t size, Deleter deleter) : ptr_(ptr), size_(size), page_offset_(0), deleter_(deleter) {} in MapPtr() 184 : ptr_(ptr), size_(size), page_offset_(page_offset), deleter_(deleter) in MapPtr() 192 size_ = other.size_; 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 in ToConst() 277 size_t size_; global() member in panda::os::mem::MapPtr [all...] |
/arkcompiler/runtime_core/static_core/libpandabase/os/ |
H A D | mem.h | 184 MapPtr(T *ptr, size_t size, Deleter deleter) : ptr_(ptr), size_(size), pageOffset_(0), deleter_(deleter) {} in MapPtr() 186 : ptr_(ptr), size_(size), pageOffset_(pageOffset), deleter_(deleter) in MapPtr() 194 size_ = other.size_; 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 in ToConst() 277 size_t size_; global() member in ark::os::mem::MapPtr [all...] |
/arkcompiler/runtime_core/static_core/runtime/tooling/sampler/ |
H A D | lock_free_queue.h | 34 size_ = 0; in LockFreeQueue() 40 while (size_ != 0) { in ~LockFreeQueue() 51 return size_; in Size() 79 std::atomic<size_t> size_; member in ark::tooling::sampler::LockFreeQueue
|