• Home
  • Raw
  • Download

Lines Matching refs:writer

47   Writer<> writer(buffer);  in WriteCIE()
48 size_t cie_header_start_ = writer.data()->size(); in WriteCIE()
49 writer.PushUint32(0); // Length placeholder. in WriteCIE()
50 writer.PushUint32(0xFFFFFFFF); // CIE id. in WriteCIE()
51 writer.PushUint8(1); // Version. in WriteCIE()
52 writer.PushString("zR"); in WriteCIE()
53 writer.PushUleb128(DebugFrameOpCodeWriter<Vector>::kCodeAlignmentFactor); in WriteCIE()
54 writer.PushSleb128(DebugFrameOpCodeWriter<Vector>::kDataAlignmentFactor); in WriteCIE()
55 writer.PushUleb128(return_address_register.num()); // ubyte in DWARF2. in WriteCIE()
56 writer.PushUleb128(1); // z: Augmentation data size. in WriteCIE()
58 writer.PushUint8(DW_EH_PE_absptr | DW_EH_PE_udata8); // R: Pointer encoding. in WriteCIE()
60 writer.PushUint8(DW_EH_PE_absptr | DW_EH_PE_udata4); // R: Pointer encoding. in WriteCIE()
62 writer.PushData(opcodes.data()); in WriteCIE()
63 writer.Pad(is64bit ? 8 : 4); in WriteCIE()
64 writer.UpdateUint32(cie_header_start_, writer.data()->size() - cie_header_start_ - 4); in WriteCIE()
75 Writer<> writer(buffer); in WriteFDE()
76 size_t fde_header_start = writer.data()->size(); in WriteFDE()
77 writer.PushUint32(0); // Length placeholder. in WriteFDE()
78 writer.PushUint32(cie_pointer); in WriteFDE()
81 writer.PushUint64(code_address); in WriteFDE()
82 writer.PushUint64(code_size); in WriteFDE()
84 writer.PushUint32(code_address); in WriteFDE()
85 writer.PushUint32(code_size); in WriteFDE()
87 writer.PushUleb128(0); // Augmentation data size. in WriteFDE()
88 writer.PushData(opcodes.data(), opcodes.size()); in WriteFDE()
89 writer.Pad(is64bit ? 8 : 4); in WriteFDE()
90 writer.UpdateUint32(fde_header_start, writer.data()->size() - fde_header_start - 4); in WriteFDE()
100 Writer<> writer(debug_info); in WriteDebugInfoCU()
101 size_t start = writer.data()->size(); in WriteDebugInfoCU()
102 writer.PushUint32(0); // Length placeholder. in WriteDebugInfoCU()
103 writer.PushUint16(4); // Version. in WriteDebugInfoCU()
104 writer.PushUint32(debug_abbrev_offset); in WriteDebugInfoCU()
105 writer.PushUint8(entries.Is64bit() ? 8 : 4); in WriteDebugInfoCU()
106 size_t entries_offset = writer.data()->size(); in WriteDebugInfoCU()
108 writer.PushData(entries.data()); in WriteDebugInfoCU()
109 writer.UpdateUint32(start, writer.data()->size() - start - 4); in WriteDebugInfoCU()
127 Writer<> writer(debug_line); in WriteDebugLineTable()
128 size_t header_start = writer.data()->size(); in WriteDebugLineTable()
129 writer.PushUint32(0); // Section-length placeholder. in WriteDebugLineTable()
130 writer.PushUint16(3); // .debug_line version. in WriteDebugLineTable()
131 size_t header_length_pos = writer.data()->size(); in WriteDebugLineTable()
132 writer.PushUint32(0); // Header-length placeholder. in WriteDebugLineTable()
133 writer.PushUint8(1 << opcodes.GetCodeFactorBits()); in WriteDebugLineTable()
134 writer.PushUint8(DebugLineOpCodeWriter<Vector>::kDefaultIsStmt ? 1 : 0); in WriteDebugLineTable()
135 writer.PushInt8(DebugLineOpCodeWriter<Vector>::kLineBase); in WriteDebugLineTable()
136 writer.PushUint8(DebugLineOpCodeWriter<Vector>::kLineRange); in WriteDebugLineTable()
137 writer.PushUint8(DebugLineOpCodeWriter<Vector>::kOpcodeBase); in WriteDebugLineTable()
141 writer.PushUint8(opcode_lengths[i]); in WriteDebugLineTable()
144 writer.PushData(directory.data(), directory.size() + 1); in WriteDebugLineTable()
146 writer.PushUint8(0); // Terminate include_directories list. in WriteDebugLineTable()
148 writer.PushData(file.file_name.data(), file.file_name.size() + 1); in WriteDebugLineTable()
149 writer.PushUleb128(file.directory_index); in WriteDebugLineTable()
150 writer.PushUleb128(file.modification_time); in WriteDebugLineTable()
151 writer.PushUleb128(file.file_size); in WriteDebugLineTable()
153 writer.PushUint8(0); // Terminate file list. in WriteDebugLineTable()
154 writer.UpdateUint32(header_length_pos, writer.data()->size() - header_length_pos - 4); in WriteDebugLineTable()
155 writer.PushData(opcodes.data()); in WriteDebugLineTable()
156 writer.UpdateUint32(header_start, writer.data()->size() - header_start - 4); in WriteDebugLineTable()