Lines Matching full:size
40 [[nodiscard]] void *Allocate(size_t size) in Allocate() argument
42 if (size == 0) { in Allocate()
43 LOG_ECMA_MEM(FATAL) << "size must have a size bigger than 0"; in Allocate()
47 size = AlignUp(size, MEM_ALIGN); in Allocate()
48 if (UNLIKELY(size > end_ - ptr_)) { in Allocate()
49 result = Expand(size); in Allocate()
51 ptr_ += size; in Allocate()
58 [[nodiscard]] T *NewArray(size_t size) in NewArray() argument
60 return static_cast<T *>(Allocate(size * sizeof(T))); in NewArray()
88 uintptr_t Expand(size_t size);
89 Area *NewArea(size_t size);
102 void *operator new(size_t size, Chunk* chunk) in new() argument
104 return chunk->Allocate(size); in new()