Home
last modified time | relevance | path

Searched refs:offset_ (Results 1 – 25 of 32) sorted by relevance

12

/art/libelffile/stream/
Dvector_output_stream.h35 if (static_cast<size_t>(offset_) == vector_->size()) { in WriteFully()
38 offset_ += byte_count; in WriteFully()
40 off_t new_offset = offset_ + byte_count; in WriteFully()
42 memcpy(&(*vector_)[offset_], buffer, byte_count); in WriteFully()
43 offset_ = new_offset; in WriteFully()
61 off_t offset_; variable
Dvector_output_stream.cc24 : OutputStream(location), offset_(vector->size()), vector_(vector) {} in VectorOutputStream()
35 new_offset = offset_ + offset; in Seek()
44 offset_ = new_offset; in Seek()
45 return offset_; in Seek()
/art/dexlayout/
Dcompact_dex_writer.h55 uint32_t offset_;
68 DCHECK_LE(a.offset_ + a.length_, section_->Size()); in operator()
69 DCHECK_LE(b.offset_ + b.length_, section_->Size()); in operator()
70 return std::equal(data + a.offset_, data + a.offset_ + a.length_, data + b.offset_); in operator()
75 DCHECK_LE(range.offset_ + range.length_, section_->Size()); in operator()
76 return HashBytes(Data() + range.offset_, range.length_); in operator()
Ddex_writer.h44 : type_(type), size_(size), offset_(offset) { } in MapItem()
48 return offset_ > other.offset_;
53 uint32_t offset_ = 0u; member
142 ScopedSeek(Stream* stream, uint32_t offset) : stream_(stream), offset_(stream->Tell()) { in ScopedSeek()
147 stream_->Seek(offset_); in ~ScopedSeek()
152 const uint32_t offset_; variable
Ddex_ir_builder.cc342 CHECK_EQ(item->offset_, 0u); in CheckAndSetRemainingOffsets()
346 CHECK_EQ(item->offset_, header_->StringIds().GetOffset()); in CheckAndSetRemainingOffsets()
350 CHECK_EQ(item->offset_, header_->TypeIds().GetOffset()); in CheckAndSetRemainingOffsets()
354 CHECK_EQ(item->offset_, header_->ProtoIds().GetOffset()); in CheckAndSetRemainingOffsets()
358 CHECK_EQ(item->offset_, header_->FieldIds().GetOffset()); in CheckAndSetRemainingOffsets()
362 CHECK_EQ(item->offset_, header_->MethodIds().GetOffset()); in CheckAndSetRemainingOffsets()
369 CHECK_EQ(item->offset_, header_->ClassDefs().GetOffset()); in CheckAndSetRemainingOffsets()
373 CHECK_EQ(item->offset_, header_->CallSiteIds().GetOffset()); in CheckAndSetRemainingOffsets()
377 CHECK_EQ(item->offset_, header_->MethodHandleItems().GetOffset()); in CheckAndSetRemainingOffsets()
381 CHECK_EQ(item->offset_, disk_header.map_off_); in CheckAndSetRemainingOffsets()
[all …]
Ddex_ir.h218 uint32_t GetOffset() const { return offset_; } in GetOffset()
219 void SetOffset(uint32_t new_offset) { offset_ = new_offset; } in SetOffset()
225 uint32_t offset_ = 0u;
315 return offset_; in GetOffset()
318 void SetOffset(uint32_t offset) { offset_ = offset; } in SetOffset()
321 return offset_ != kOffsetUnassigned; in OffsetAssigned()
325 Item(uint32_t offset, uint32_t size) : offset_(offset), size_(size) { } in Item()
331 uint32_t offset_ = kOffsetUnassigned; variable
Ddex_writer.cc719 map_item.offset_ = item.offset_; in WriteMapItems()
/art/runtime/mirror/
Dstring-alloc-inl.h60 : count_(count), src_array_(src_array), offset_(offset), high_byte_(high_byte) { in SetStringCountAndBytesVisitor()
70 const uint8_t* const src = reinterpret_cast<uint8_t*>(src_array_->GetData()) + offset_; in operator()
87 const int32_t offset_; variable
96 count_(count), src_array_(src_array), offset_(offset) { in SetStringCountAndValueVisitorFromCharArray()
104 const uint16_t* const src = src_array_->GetData() + offset_; in operator()
118 const int32_t offset_; variable
127 count_(count), src_string_(src_string), offset_(offset) { in SetStringCountAndValueVisitorFromString()
138 const uint8_t* const src = src_string_->GetValueCompressed() + offset_; in operator()
141 const uint16_t* const src = src_string_->GetValue() + offset_; in operator()
155 const int32_t offset_; variable
Dfield.h69 return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_)); in GetOffset()
92 int32_t offset_; variable
111 return OFFSET_OF_OBJECT_MEMBER(Field, offset_); in OffsetOffset()
/art/dex2oat/linker/
Doat_writer.cc219 offset_(offset) { in OatClassHeader()
247 uint32_t offset_; member in art::linker::OatWriter::OatClassHeader
333 size_t offset_; member in art::linker::OatWriter::OatDexFile
377 DCHECK_EQ(static_cast<off_t>(file_offset + offset_), out->Seek(0, kSeekCurrent)) \
378 << "file_offset=" << file_offset << " offset_=" << offset_
817 offset_(offset), in DexMethodVisitor()
840 return offset_; in GetOffset()
849 size_t offset_; member in art::linker::OatWriter::DexMethodVisitor
1017 writer_->oat_class_headers_.emplace_back(offset_, in EndClass()
1022 offset_ += header.SizeOf(); in EndClass()
[all …]
/art/runtime/gc/accounting/
Dcard_table.cc96 : mem_map_(std::move(mem_map)), biased_begin_(biased_begin), offset_(offset) { in CardTable()
123 uint8_t* begin = mem_map_.Begin() + offset_; in CheckAddrIsInCardTable()
Dcard_table-inl.h210 << " begin: " << reinterpret_cast<void*>(mem_map_.Begin() + offset_) in AddrFromCard()
225 uint8_t* begin = mem_map_.Begin() + offset_; in IsValidCard()
233 << " begin: " << reinterpret_cast<void*>(mem_map_.Begin() + offset_) in CheckCardValid()
Dcard_table.h162 const size_t offset_; variable
/art/libdexfile/dex/
Ddex_file_tracking_registrar.cc237 …nst void* string_data_begin = reinterpret_cast<const void*>(dex_file_->Begin() + map_item.offset_); in SetAllStringDataRegistration()
238 size_t string_data_size = next_map_item.offset_ - map_item.offset_; in SetAllStringDataRegistration()
Ddex_file_structs.h38 uint32_t offset_; member
Ddex_file.cc194 method_handles_ = reinterpret_cast<const MethodHandleItem*>(Begin() + map_item.offset_); in InitializeSectionsFromMapList()
197 call_site_ids_ = reinterpret_cast<const CallSiteIdItem*>(Begin() + map_item.offset_); in InitializeSectionsFromMapList()
200 hiddenapi_class_data_ = GetHiddenapiClassDataAtOffset(map_item.offset_); in InitializeSectionsFromMapList()
Ddex_file_verifier.cc677 if (UNLIKELY(last_offset >= item->offset_ && i != 0)) { in CheckMap()
680 item->offset_, in CheckMap()
685 if (UNLIKELY(item->offset_ >= header_->file_size_)) { in CheckMap()
687 item->offset_, header_->file_size_); in CheckMap()
717 last_offset = item->offset_; in CheckMap()
2313 uint32_t section_offset = item->offset_; in CheckIntraSection()
3253 uint32_t section_offset = item->offset_; in CheckInterSection()
/art/tools/hiddenapi/
Dhiddenapi.cc701 CHECK_EQ(offset_, new_size); in Encode()
764 offset_ = 0; in AllocateMemory()
768 return data_.data() + offset_; in GetCurrentDataPtr()
772 offset_ += delta; in UpdateDataSize()
782 CHECK_LE(offset_ + len, data_.size()); in Append()
790 size_t len = RoundUp(offset_, alignment) - offset_; in InsertPadding()
807 size_t new_map_offset = offset_; in CreateMapListWithNewItem()
814 CHECK_EQ(old_item.offset_, GetHeader().map_off_); in CreateMapListWithNewItem()
821 new_item.offset_ = new_map_offset; in CreateMapListWithNewItem()
833 old_item.offset_ = payload_offset; in CreateMapListWithNewItem()
[all …]
/art/runtime/
Dimage.h46 ImageSection() : offset_(0), size_(0) { } in ImageSection()
47 ImageSection(uint32_t offset, uint32_t size) : offset_(offset), size_(size) { } in ImageSection()
52 return offset_; in Offset()
64 return offset - offset_ < size_; in Contains()
68 uint32_t offset_;
Dart_field.cc39 offset_ = num_bytes.Uint32Value(); in SetOffset()
Dart_field.h96 return MemberOffset(offset_); in GetOffset()
100 return MemberOffset(OFFSETOF_MEMBER(ArtField, offset_)); in OffsetOffset()
256 uint32_t offset_ = 0; variable
Dart_field-inl.h69 return MemberOffset(offset_); in GetOffsetDuringLinking()
/art/compiler/optimizing/
Dnodes_vector.h32 Alignment(size_t base, size_t offset) : base_(base), offset_(offset) { in Alignment()
42 return ((offset_ | base_) & (base - 1u)) == 0; in IsAlignedAt()
47 size_t Offset() const { return offset_; } in Offset()
50 return "ALIGN(" + std::to_string(base_) + "," + std::to_string(offset_) + ")"; in ToString()
54 return base_ == other.base_ && offset_ == other.offset_;
59 size_t offset_; variable
Dload_store_analysis.h106 offset_(offset), in HeapLocation()
124 size_t GetOffset() const { return offset_; } in GetOffset()
163 const size_t offset_; variable
/art/runtime/gc/collector/
Dmark_sweep.cc434 offset_(offset) {} in MarkObjectSlowPath()
456 ArtField* field = holder_->FindFieldByOffset(offset_); in operator ()()
464 << " offset=" << offset_.Uint32Value() in operator ()()
494 MemberOffset offset_; member in art::gc::collector::MarkSweep::MarkObjectSlowPath

12