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(4); // Version. in WriteCIE()
52 writer.PushString(""); // Augmentation. in WriteCIE()
53 writer.PushUint8(is64bit ? 8 : 4); // Address size. in WriteCIE()
54 writer.PushUint8(0); // Segment size. in WriteCIE()
55 writer.PushUleb128(DebugFrameOpCodeWriter<Vector>::kCodeAlignmentFactor); in WriteCIE()
56 writer.PushSleb128(DebugFrameOpCodeWriter<Vector>::kDataAlignmentFactor); in WriteCIE()
57 writer.PushUleb128(return_address_register.num()); // ubyte in DWARF2. in WriteCIE()
58 writer.PushData(opcodes.data()); in WriteCIE()
59 writer.Pad(is64bit ? 8 : 4); in WriteCIE()
60 writer.UpdateUint32(cie_header_start_, writer.data()->size() - cie_header_start_ - 4); in WriteCIE()
71 Writer<> writer(buffer); in WriteFDE()
72 size_t fde_header_start = writer.data()->size(); in WriteFDE()
73 writer.PushUint32(0); // Length placeholder. in WriteFDE()
74 writer.PushUint32(cie_pointer); in WriteFDE()
77 writer.PushUint64(code_address); in WriteFDE()
78 writer.PushUint64(code_size); in WriteFDE()
80 writer.PushUint32(code_address); in WriteFDE()
81 writer.PushUint32(code_size); in WriteFDE()
83 writer.PushUleb128(0); // Augmentation data size. in WriteFDE()
84 writer.PushData(opcodes.data(), opcodes.size()); in WriteFDE()
85 writer.Pad(is64bit ? 8 : 4); in WriteFDE()
86 writer.UpdateUint32(fde_header_start, writer.data()->size() - fde_header_start - 4); in WriteFDE()
96 Writer<> writer(debug_info); in WriteDebugInfoCU()
97 size_t start = writer.data()->size(); in WriteDebugInfoCU()
98 writer.PushUint32(0); // Length placeholder. in WriteDebugInfoCU()
99 writer.PushUint16(4); // Version. in WriteDebugInfoCU()
100 writer.PushUint32(debug_abbrev_offset); in WriteDebugInfoCU()
101 writer.PushUint8(entries.Is64bit() ? 8 : 4); in WriteDebugInfoCU()
102 size_t entries_offset = writer.data()->size(); in WriteDebugInfoCU()
104 writer.PushData(entries.data()); in WriteDebugInfoCU()
105 writer.UpdateUint32(start, writer.data()->size() - start - 4); in WriteDebugInfoCU()
123 Writer<> writer(debug_line); in WriteDebugLineTable()
124 size_t header_start = writer.data()->size(); in WriteDebugLineTable()
125 writer.PushUint32(0); // Section-length placeholder. in WriteDebugLineTable()
126 writer.PushUint16(3); // .debug_line version. in WriteDebugLineTable()
127 size_t header_length_pos = writer.data()->size(); in WriteDebugLineTable()
128 writer.PushUint32(0); // Header-length placeholder. in WriteDebugLineTable()
129 writer.PushUint8(1 << opcodes.GetCodeFactorBits()); in WriteDebugLineTable()
130 writer.PushUint8(DebugLineOpCodeWriter<Vector>::kDefaultIsStmt ? 1 : 0); in WriteDebugLineTable()
131 writer.PushInt8(DebugLineOpCodeWriter<Vector>::kLineBase); in WriteDebugLineTable()
132 writer.PushUint8(DebugLineOpCodeWriter<Vector>::kLineRange); in WriteDebugLineTable()
133 writer.PushUint8(DebugLineOpCodeWriter<Vector>::kOpcodeBase); in WriteDebugLineTable()
137 writer.PushUint8(opcode_lengths[i]); in WriteDebugLineTable()
140 writer.PushData(directory.data(), directory.size() + 1); in WriteDebugLineTable()
142 writer.PushUint8(0); // Terminate include_directories list. in WriteDebugLineTable()
144 writer.PushData(file.file_name.data(), file.file_name.size() + 1); in WriteDebugLineTable()
145 writer.PushUleb128(file.directory_index); in WriteDebugLineTable()
146 writer.PushUleb128(file.modification_time); in WriteDebugLineTable()
147 writer.PushUleb128(file.file_size); in WriteDebugLineTable()
149 writer.PushUint8(0); // Terminate file list. in WriteDebugLineTable()
150 writer.UpdateUint32(header_length_pos, writer.data()->size() - header_length_pos - 4); in WriteDebugLineTable()
151 writer.PushData(opcodes.data()); in WriteDebugLineTable()
152 writer.UpdateUint32(header_start, writer.data()->size() - header_start - 4); in WriteDebugLineTable()