Home
last modified time | relevance | path

Searched refs:contents_ (Results 1 – 2 of 2) sorted by relevance

/art/compiler/utils/
Dassembler.cc49 contents_ = arena_->AllocArray<uint8_t>(kInitialBufferCapacity, kArenaAllocAssembler); in AssemblerBuffer()
50 cursor_ = contents_; in AssemblerBuffer()
51 limit_ = ComputeLimit(contents_, kInitialBufferCapacity); in AssemblerBuffer()
67 arena_->MakeInaccessible(contents_, Capacity()); in ~AssemblerBuffer()
101 contents_ = reinterpret_cast<uint8_t*>( in ExtendCapacity()
102 arena_->Realloc(contents_, old_capacity, new_capacity, kArenaAllocAssembler)); in ExtendCapacity()
105 cursor_ = contents_ + old_size; in ExtendCapacity()
106 limit_ = ComputeLimit(contents_, new_capacity); in ExtendCapacity()
Dassembler.h108 return *reinterpret_cast<T*>(contents_ + position); in Load()
113 *reinterpret_cast<T*>(contents_ + position) = value; in Store()
120 cursor_ = contents_ + new_size; in Resize()
127 memmove(contents_ + newposition, contents_ + oldposition, size); in Move()
160 CHECK_GE(cursor_, contents_); in Size()
161 return cursor_ - contents_; in Size()
164 uint8_t* contents() const { return contents_; } in contents()
238 int GetPosition() { return cursor_ - contents_; } in GetPosition()
241 CHECK_GE(limit_, contents_); in Capacity()
242 return (limit_ - contents_) + kMinimumGap; in Capacity()
[all …]