Lines Matching refs:prologue
167 uint32_t *offset_ptr, Prologue *prologue) { in parsePrologue() argument
170 prologue->clear(); in parsePrologue()
171 prologue->TotalLength = debug_line_data.getU32(offset_ptr); in parsePrologue()
172 prologue->Version = debug_line_data.getU16(offset_ptr); in parsePrologue()
173 if (prologue->Version != 2) in parsePrologue()
176 prologue->PrologueLength = debug_line_data.getU32(offset_ptr); in parsePrologue()
177 const uint32_t end_prologue_offset = prologue->PrologueLength + *offset_ptr; in parsePrologue()
178 prologue->MinInstLength = debug_line_data.getU8(offset_ptr); in parsePrologue()
179 prologue->DefaultIsStmt = debug_line_data.getU8(offset_ptr); in parsePrologue()
180 prologue->LineBase = debug_line_data.getU8(offset_ptr); in parsePrologue()
181 prologue->LineRange = debug_line_data.getU8(offset_ptr); in parsePrologue()
182 prologue->OpcodeBase = debug_line_data.getU8(offset_ptr); in parsePrologue()
184 prologue->StandardOpcodeLengths.reserve(prologue->OpcodeBase-1); in parsePrologue()
185 for (uint32_t i = 1; i < prologue->OpcodeBase; ++i) { in parsePrologue()
187 prologue->StandardOpcodeLengths.push_back(op_len); in parsePrologue()
193 prologue->IncludeDirectories.push_back(s); in parsePrologue()
206 prologue->FileNames.push_back(fileEntry); in parsePrologue()
227 Prologue *prologue = &state.Prologue; in parseStatementTable() local
229 if (!parsePrologue(debug_line_data, offset_ptr, prologue)) { in parseStatementTable()
235 const uint32_t end_offset = debug_line_offset + prologue->TotalLength + in parseStatementTable()
236 sizeof(prologue->TotalLength); in parseStatementTable()
310 prologue->FileNames.push_back(fileEntry); in parseStatementTable()
320 } else if (opcode < prologue->OpcodeBase) { in parseStatementTable()
335 prologue->MinInstLength; in parseStatementTable()
381 uint8_t adjust_opcode = 255 - prologue->OpcodeBase; in parseStatementTable()
382 uint64_t addr_offset = (adjust_opcode / prologue->LineRange) * in parseStatementTable()
383 prologue->MinInstLength; in parseStatementTable()
424 assert(opcode - 1U < prologue->StandardOpcodeLengths.size()); in parseStatementTable()
425 uint8_t opcode_length = prologue->StandardOpcodeLengths[opcode - 1]; in parseStatementTable()
465 uint8_t adjust_opcode = opcode - prologue->OpcodeBase; in parseStatementTable()
466 uint64_t addr_offset = (adjust_opcode / prologue->LineRange) * in parseStatementTable()
467 prologue->MinInstLength; in parseStatementTable()
468 int32_t line_offset = prologue->LineBase + in parseStatementTable()
469 (adjust_opcode % prologue->LineRange); in parseStatementTable()