Home
last modified time | relevance | path

Searched refs:curPos_ (Results 1 - 6 of 6) sorted by relevance

/arkcompiler/runtime_core/libpandabase/mem/
H A Darena-inl.h32 curPos_(startPos_), in Arena()
50 ret = std::align(GetAlignmentInBytes(alignment), size, curPos_, free_size); in Alloc()
53 curPos_ = ToVoidPtr(ToUintPtr(ret) + size); in Alloc()
61 ASSERT(AlignUp(ToUintPtr(curPos_), GetAlignmentInBytes(alignment)) == ToUintPtr(curPos_)); in AlignedAlloc()
64 uintptr_t new_cur_pos = ToUintPtr(curPos_) + size; in AlignedAlloc()
66 ret = curPos_; in AlignedAlloc()
67 curPos_ = ToVoidPtr(new_cur_pos); in AlignedAlloc()
92 ASSERT(ToUintPtr(curPos_) >= ToUintPtr(GetStartPos())); in GetFreeSize()
93 return size_ - (ToUintPtr(curPos_) in GetFreeSize()
[all...]
H A Darena_allocator.h134 void *new_pos = curPos_; in Alloc()
137 curPos_ = static_cast<char *>(ToVoidPtr(ToUintPtr(ret) + size)); in Alloc()
144 return DEFAULT_ON_STACK_ARENA_ALLOCATOR_BUFF_SIZE - (curPos_ - &buff_[0]); in GetFreeSize()
149 return curPos_ - &buff_[0]; in GetOccupiedSize()
155 curPos_ = static_cast<char *>(ToVoidPtr(ToUintPtr(&buff_[0]) + new_size)); in Resize()
160 char *curPos_ = &buff_[0]; member in panda::ArenaAllocatorT::OnStackBuffT
H A Darena.h95 return curPos_; in GetTop()
150 void *curPos_ = nullptr; member in panda::Arena
/arkcompiler/runtime_core/static_core/libpandabase/mem/
H A Darena-inl.h32 curPos_(startPos_), in Arena()
50 ret = std::align(GetAlignmentInBytes(alignment), size, curPos_, freeSize); in Alloc()
53 curPos_ = ToVoidPtr(ToUintPtr(ret) + size); in Alloc()
61 ASSERT(AlignUp(ToUintPtr(curPos_), GetAlignmentInBytes(alignment)) == ToUintPtr(curPos_)); in AlignedAlloc()
64 uintptr_t newCurPos = ToUintPtr(curPos_) + size; in AlignedAlloc()
66 ret = curPos_; in AlignedAlloc()
67 curPos_ = ToVoidPtr(newCurPos); in AlignedAlloc()
92 ASSERT(ToUintPtr(curPos_) >= ToUintPtr(GetStartPos())); in GetFreeSize()
93 return size_ - (ToUintPtr(curPos_) in GetFreeSize()
[all...]
H A Darena_allocator.h132 void *newPos = curPos_; in Alloc()
135 curPos_ = static_cast<char *>(ToVoidPtr(ToUintPtr(ret) + size)); in Alloc()
142 return DEFAULT_ON_STACK_ARENA_ALLOCATOR_BUFF_SIZE - (curPos_ - &buff_[0]); in GetFreeSize()
147 return curPos_ - &buff_[0]; in GetOccupiedSize()
153 curPos_ = static_cast<char *>(ToVoidPtr(ToUintPtr(&buff_[0]) + newSize)); in Resize()
158 char *curPos_ = &buff_[0]; member in ark::ArenaAllocatorT::OnStackBuffT
H A Darena.h81 return curPos_; in GetTop()
130 void *curPos_ = nullptr; member in ark::Arena

Completed in 3 milliseconds