Lines Matching refs:reader_

56     : offset_from_section_start_(offset), reader_(reader),  in CompilationUnit()
96 const uint64 number = reader_->ReadUnsignedLEB128(abbrevptr, &len); in ReadAbbrevs()
104 const uint64 tag = reader_->ReadUnsignedLEB128(abbrevptr, &len); in ReadAbbrevs()
109 abbrev.has_children = reader_->ReadOneByte(abbrevptr); in ReadAbbrevs()
115 const uint64 nametemp = reader_->ReadUnsignedLEB128(abbrevptr, &len); in ReadAbbrevs()
119 const uint64 formtemp = reader_->ReadUnsignedLEB128(abbrevptr, &len); in ReadAbbrevs()
152 form = static_cast<enum DwarfForm>(reader_->ReadUnsignedLEB128(start, in SkipAttribute()
177 reader_->ReadUnsignedLEB128(start, &len); in SkipAttribute()
181 reader_->ReadSignedLEB128(start, &len); in SkipAttribute()
184 return start + reader_->AddressSize(); in SkipAttribute()
190 return start + reader_->AddressSize(); in SkipAttribute()
192 return start + reader_->OffsetSize(); in SkipAttribute()
197 return start + 1 + reader_->ReadOneByte(start); in SkipAttribute()
199 return start + 2 + reader_->ReadTwoBytes(start); in SkipAttribute()
201 return start + 4 + reader_->ReadFourBytes(start); in SkipAttribute()
204 uint64 size = reader_->ReadUnsignedLEB128(start, &len); in SkipAttribute()
209 return start + reader_->OffsetSize(); in SkipAttribute()
226 = reader_->ReadInitialLength(headerptr, &initial_length_size); in ReadHeader()
231 header_.version = reader_->ReadTwoBytes(headerptr); in ReadHeader()
234 assert(headerptr + reader_->OffsetSize() < buffer_ + buffer_length_); in ReadHeader()
235 header_.abbrev_offset = reader_->ReadOffset(headerptr); in ReadHeader()
236 headerptr += reader_->OffsetSize(); in ReadHeader()
239 header_.address_size = reader_->ReadOneByte(headerptr); in ReadHeader()
240 reader_->SetAddressSize(header_.address_size); in ReadHeader()
272 if (reader_->OffsetSize() == 8) in Start()
279 reader_->AddressSize(), in Start()
280 reader_->OffsetSize(), in Start()
317 form = static_cast<enum DwarfForm>(reader_->ReadUnsignedLEB128(start, in ProcessAttribute()
328 reader_->ReadOneByte(start)); in ProcessAttribute()
332 reader_->ReadTwoBytes(start)); in ProcessAttribute()
336 reader_->ReadFourBytes(start)); in ProcessAttribute()
340 reader_->ReadEightBytes(start)); in ProcessAttribute()
350 reader_->ReadUnsignedLEB128(start, in ProcessAttribute()
356 reader_->ReadSignedLEB128(start, &len)); in ProcessAttribute()
360 reader_->ReadAddress(start)); in ProcessAttribute()
361 return start + reader_->AddressSize(); in ProcessAttribute()
364 reader_->ReadOffset(start)); in ProcessAttribute()
365 return start + reader_->OffsetSize(); in ProcessAttribute()
369 reader_->ReadOneByte(start) in ProcessAttribute()
374 reader_->ReadTwoBytes(start) in ProcessAttribute()
379 reader_->ReadFourBytes(start) in ProcessAttribute()
384 reader_->ReadEightBytes(start) in ProcessAttribute()
389 reader_->ReadUnsignedLEB128(start, in ProcessAttribute()
399 reader_->ReadAddress(start)); in ProcessAttribute()
400 return start + reader_->AddressSize(); in ProcessAttribute()
403 reader_->ReadOffset(start)); in ProcessAttribute()
404 return start + reader_->OffsetSize(); in ProcessAttribute()
409 reader_->ReadEightBytes(start)); in ProcessAttribute()
413 uint64 datalen = reader_->ReadOneByte(start); in ProcessAttribute()
419 uint64 datalen = reader_->ReadTwoBytes(start); in ProcessAttribute()
425 uint64 datalen = reader_->ReadFourBytes(start); in ProcessAttribute()
432 uint64 datalen = reader_->ReadUnsignedLEB128(start, &len); in ProcessAttribute()
440 const uint64 offset = reader_->ReadOffset(start); in ProcessAttribute()
446 return start + reader_->OffsetSize(); in ProcessAttribute()
474 if (reader_->OffsetSize() == 8) in ProcessDIEs()
486 uint64 abbrev_num = reader_->ReadUnsignedLEB128(dieptr, &len); in ProcessDIEs()
520 handler_(handler), reader_(reader), buffer_(buffer), in LineInfo()
538 = reader_->ReadInitialLength(lineptr, &initial_length_size); in ReadHeader()
546 assert(reader_->AddressSize() != 0); in ReadHeader()
548 header_.version = reader_->ReadTwoBytes(lineptr); in ReadHeader()
551 header_.prologue_length = reader_->ReadOffset(lineptr); in ReadHeader()
552 lineptr += reader_->OffsetSize(); in ReadHeader()
554 header_.min_insn_length = reader_->ReadOneByte(lineptr); in ReadHeader()
557 header_.default_is_stmt = reader_->ReadOneByte(lineptr); in ReadHeader()
563 header_.line_range = reader_->ReadOneByte(lineptr); in ReadHeader()
566 header_.opcode_base = reader_->ReadOneByte(lineptr); in ReadHeader()
573 (*header_.std_opcode_lengths)[i] = reader_->ReadOneByte(lineptr); in ReadHeader()
597 uint64 dirindex = reader_->ReadUnsignedLEB128(lineptr, &len); in ReadHeader()
600 uint64 mod_time = reader_->ReadUnsignedLEB128(lineptr, &len); in ReadHeader()
603 uint64 filelength = reader_->ReadUnsignedLEB128(lineptr, &len); in ReadHeader()
811 if (reader_->OffsetSize() == 8) in ReadLines()
830 bool add_row = ProcessOneOpcode(reader_, handler_, header_, in ReadLines()
1208 : reader_(reader), handler_(handler), reporter_(reporter), in State()
1299 ByteReader *reader_; member in dwarf2reader::CallFrameInfo::State
1360 operands->register_number = reader_->ReadUnsignedLEB128(cursor_, &len); in ParseOperands()
1366 operands->offset = reader_->ReadUnsignedLEB128(cursor_, &len); in ParseOperands()
1372 operands->signed_offset = reader_->ReadSignedLEB128(cursor_, &len); in ParseOperands()
1379 reader_->ReadEncodedPointer(cursor_, entry_->cie->pointer_encoding, in ParseOperands()
1392 operands->offset = reader_->ReadTwoBytes(cursor_); in ParseOperands()
1398 operands->offset = reader_->ReadFourBytes(cursor_); in ParseOperands()
1404 operands->offset = reader_->ReadEightBytes(cursor_); in ParseOperands()
1409 size_t expression_length = reader_->ReadUnsignedLEB128(cursor_, &len); in ParseOperands()
1688 (i - 16) * reader_->AddressSize()))) in DoInstruction()
1777 uint64 length = reader_->ReadInitialLength(cursor, &length_size); in ReadEntryPrologue()
1802 size_t offset_size = reader_->OffsetSize(); in ReadEntryPrologue()
1804 entry->id = reader_->ReadOffset(cursor); in ReadEntryPrologue()
1863 cie->version = reader_->ReadOneByte(cursor); in ReadCIEFields()
1901 cie->code_alignment_factor = reader_->ReadUnsignedLEB128(cursor, &len); in ReadCIEFields()
1906 cie->data_alignment_factor = reader_->ReadSignedLEB128(cursor, &len); in ReadCIEFields()
1916 cie->return_address_register = reader_->ReadUnsignedLEB128(cursor, &len); in ReadCIEFields()
1924 uint64_t data_size = reader_->ReadUnsignedLEB128(cursor, &len); in ReadCIEFields()
1948 if (!reader_->ValidEncoding(cie->lsda_encoding)) { in ReadCIEFields()
1966 if (!reader_->ValidEncoding(cie->personality_encoding)) { in ReadCIEFields()
1971 if (!reader_->UsableEncoding(cie->personality_encoding)) { in ReadCIEFields()
1978 reader_->ReadEncodedPointer(data, cie->personality_encoding, in ReadCIEFields()
1990 if (!reader_->ValidEncoding(cie->pointer_encoding)) { in ReadCIEFields()
1995 if (!reader_->UsableEncoding(cie->pointer_encoding)) { in ReadCIEFields()
2025 fde->address = reader_->ReadEncodedPointer(cursor, fde->cie->pointer_encoding, in ReadFDEFields()
2030 reader_->SetFunctionBase(fde->address); in ReadFDEFields()
2036 fde->size = reader_->ReadEncodedPointer(cursor, length_encoding, &size); in ReadFDEFields()
2044 uint64_t data_size = reader_->ReadUnsignedLEB128(cursor, &size); in ReadFDEFields()
2064 if (!reader_->UsableEncoding(fde->cie->lsda_encoding)) { in ReadFDEFields()
2071 reader_->ReadEncodedPointer(cursor, fde->cie->lsda_encoding, &size); in ReadFDEFields()
2199 State state(reader_, handler_, reporter_, fde.address); in Start()
2204 reader_->ClearFunctionBase(); in Start()