Home
last modified time | relevance | path

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

/art/compiler/utils/
Dassembler.cc50 contents_ = arena_->AllocArray<uint8_t>(kInitialBufferCapacity, kArenaAllocAssembler); in AssemblerBuffer()
51 cursor_ = contents_; in AssemblerBuffer()
52 limit_ = ComputeLimit(contents_, kInitialBufferCapacity); in AssemblerBuffer()
68 arena_->MakeInaccessible(contents_, Capacity()); in ~AssemblerBuffer()
102 contents_ = reinterpret_cast<uint8_t*>( in ExtendCapacity()
103 arena_->Realloc(contents_, old_capacity, new_capacity, kArenaAllocAssembler)); in ExtendCapacity()
106 cursor_ = contents_ + old_size; in ExtendCapacity()
107 limit_ = ComputeLimit(contents_, new_capacity); in ExtendCapacity()
Dassembler.h106 return *reinterpret_cast<T*>(contents_ + position); in Load()
111 *reinterpret_cast<T*>(contents_ + position) = value; in Store()
118 cursor_ = contents_ + new_size; in Resize()
125 memmove(contents_ + newposition, contents_ + oldposition, size); in Move()
158 CHECK_GE(cursor_, contents_); in Size()
159 return cursor_ - contents_; in Size()
162 uint8_t* contents() const { return contents_; } in contents()
236 int GetPosition() { return cursor_ - contents_; } in GetPosition()
239 CHECK_GE(limit_, contents_); in Capacity()
240 return (limit_ - contents_) + kMinimumGap; in Capacity()
[all …]