• Home
  • Raw
  • Download

Lines Matching refs:w

79     Slot(Writer* w, uintptr_t offset) : w_(w), offset_(offset) { }  in Slot()  argument
343 virtual void WriteBody(Writer::Slot<Header> header, Writer* w) { in WriteBody() argument
344 uintptr_t start = w->position(); in WriteBody()
345 if (WriteBodyInternal(w)) { in WriteBody()
346 uintptr_t end = w->position(); in WriteBody()
352 virtual bool WriteBodyInternal(Writer* w) { in WriteBodyInternal() argument
455 void AttachWriter(Writer* w) { in AttachWriter() argument
456 writer_ = w; in AttachWriter()
467 virtual void WriteBody(Writer::Slot<Header> header, Writer* w) { in WriteBody() argument
510 void Write(Writer* w, uintptr_t code_start, uintptr_t code_size) { in Write() argument
511 Writer::Slot<MachOHeader> header = WriteHeader(w); in Write()
512 uintptr_t load_command_start = w->position(); in Write()
513 Writer::Slot<MachOSegmentCommand> cmd = WriteSegmentCommand(w, in Write()
516 WriteSections(w, cmd, header, load_command_start); in Write()
560 Writer::Slot<MachOHeader> WriteHeader(Writer* w) { in WriteHeader() argument
561 ASSERT(w->position() == 0); in WriteHeader()
562 Writer::Slot<MachOHeader> header = w->CreateSlotHere<MachOHeader>(); in WriteHeader()
583 Writer::Slot<MachOSegmentCommand> WriteSegmentCommand(Writer* w, in WriteSegmentCommand() argument
587 w->CreateSlotHere<MachOSegmentCommand>(); in WriteSegmentCommand()
608 void WriteSections(Writer* w, in WriteSections() argument
613 w->CreateSlotsHere<MachOSection::Header>(sections_.length()); in WriteSections()
614 cmd->fileoff = w->position(); in WriteSections()
615 header->sizeofcmds = w->position() - load_command_start; in WriteSections()
618 sections_[section]->WriteBody(headers.at(section), w); in WriteSections()
620 cmd->filesize = w->position() - (uintptr_t)cmd->fileoff; in WriteSections()
637 void Write(Writer* w) { in Write() argument
638 WriteHeader(w); in Write()
639 WriteSectionTable(w); in Write()
640 WriteSections(w); in Write()
672 void WriteHeader(Writer* w) { in WriteHeader() argument
673 ASSERT(w->position() == 0); in WriteHeader()
674 Writer::Slot<ELFHeader> header = w->CreateSlotHere<ELFHeader>(); in WriteHeader()
713 void WriteSectionTable(Writer* w) { in WriteSectionTable() argument
715 ASSERT(w->position() == sizeof(ELFHeader)); in WriteSectionTable()
718 w->CreateSlotsHere<ELFSection::Header>(sections_.length()); in WriteSectionTable()
722 strtab->AttachWriter(w); in WriteSectionTable()
735 void WriteSections(Writer* w) { in WriteSections() argument
737 w->SlotAt<ELFSection::Header>(sizeof(ELFHeader)); in WriteSections()
742 sections_[i]->WriteBody(headers.at(i), w); in WriteSections()
864 virtual void WriteBody(Writer::Slot<Header> header, Writer* w) { in WriteBody() argument
865 w->Align(header->alignment); in WriteBody()
867 header->offset = w->position(); in WriteBody()
870 w->CreateSlotsHere<ELFSymbol::SerializedLayout>(total_symbols); in WriteBody()
872 header->size = w->position() - header->offset; in WriteBody()
876 static_cast<ELFStringTable*>(w->debug_object()->SectionAt(index() + 1)); in WriteBody()
877 strtab->AttachWriter(w); in WriteBody()
1083 bool WriteBodyInternal(Writer* w) { in WriteBodyInternal() argument
1084 uintptr_t cu_start = w->position(); in WriteBodyInternal()
1085 Writer::Slot<uint32_t> size = w->CreateSlotHere<uint32_t>(); in WriteBodyInternal()
1086 uintptr_t start = w->position(); in WriteBodyInternal()
1087 w->Write<uint16_t>(2); // DWARF version. in WriteBodyInternal()
1088 w->Write<uint32_t>(0); // Abbreviation table offset. in WriteBodyInternal()
1089 w->Write<uint8_t>(sizeof(intptr_t)); in WriteBodyInternal()
1091 w->WriteULEB128(1); // Abbreviation code. in WriteBodyInternal()
1092 w->WriteString(*desc_->GetFilename()); in WriteBodyInternal()
1093 w->Write<intptr_t>(desc_->CodeStart()); in WriteBodyInternal()
1094 w->Write<intptr_t>(desc_->CodeStart() + desc_->CodeSize()); in WriteBodyInternal()
1095 w->Write<uint32_t>(0); in WriteBodyInternal()
1097 uint32_t ty_offset = static_cast<uint32_t>(w->position() - cu_start); in WriteBodyInternal()
1098 w->WriteULEB128(3); in WriteBodyInternal()
1099 w->Write<uint8_t>(kPointerSize); in WriteBodyInternal()
1100 w->WriteString("v8value"); in WriteBodyInternal()
1104 w->WriteULEB128(2); in WriteBodyInternal()
1105 w->WriteString(desc_->name()); in WriteBodyInternal()
1106 w->Write<intptr_t>(desc_->CodeStart()); in WriteBodyInternal()
1107 w->Write<intptr_t>(desc_->CodeStart() + desc_->CodeSize()); in WriteBodyInternal()
1108 Writer::Slot<uint32_t> fb_block_size = w->CreateSlotHere<uint32_t>(); in WriteBodyInternal()
1109 uintptr_t fb_block_start = w->position(); in WriteBodyInternal()
1111 w->Write<uint8_t>(DW_OP_reg5); // The frame pointer's here on ia32 in WriteBodyInternal()
1113 w->Write<uint8_t>(DW_OP_reg6); // and here on x64. in WriteBodyInternal()
1121 fb_block_size.set(static_cast<uint32_t>(w->position() - fb_block_start)); in WriteBodyInternal()
1132 w->WriteULEB128(current_abbreviation++); in WriteBodyInternal()
1133 w->WriteString( in WriteBodyInternal()
1135 w->Write<uint32_t>(ty_offset); in WriteBodyInternal()
1136 Writer::Slot<uint32_t> block_size = w->CreateSlotHere<uint32_t>(); in WriteBodyInternal()
1137 uintptr_t block_start = w->position(); in WriteBodyInternal()
1138 w->Write<uint8_t>(DW_OP_fbreg); in WriteBodyInternal()
1139 w->WriteSLEB128( in WriteBodyInternal()
1142 block_size.set(static_cast<uint32_t>(w->position() - block_start)); in WriteBodyInternal()
1149 w->WriteULEB128(current_abbreviation++); in WriteBodyInternal()
1152 w->WriteString(builder.Finalize()); in WriteBodyInternal()
1161 w->WriteULEB128(current_abbreviation++); in WriteBodyInternal()
1162 w->WriteString(".closure"); in WriteBodyInternal()
1163 w->WriteULEB128(current_abbreviation++); in WriteBodyInternal()
1164 w->WriteString(".previous"); in WriteBodyInternal()
1165 w->WriteULEB128(current_abbreviation++); in WriteBodyInternal()
1166 w->WriteString(".extension"); in WriteBodyInternal()
1167 w->WriteULEB128(current_abbreviation++); in WriteBodyInternal()
1168 w->WriteString(".global"); in WriteBodyInternal()
1173 w->WriteULEB128(current_abbreviation++); in WriteBodyInternal()
1176 w->WriteString(builder.Finalize()); in WriteBodyInternal()
1183 w->WriteULEB128(current_abbreviation++); in WriteBodyInternal()
1184 w->WriteString( in WriteBodyInternal()
1186 w->Write<uint32_t>(ty_offset); in WriteBodyInternal()
1187 Writer::Slot<uint32_t> block_size = w->CreateSlotHere<uint32_t>(); in WriteBodyInternal()
1188 uintptr_t block_start = w->position(); in WriteBodyInternal()
1189 w->Write<uint8_t>(DW_OP_fbreg); in WriteBodyInternal()
1190 w->WriteSLEB128( in WriteBodyInternal()
1193 block_size.set(static_cast<uint32_t>(w->position() - block_start)); in WriteBodyInternal()
1197 w->WriteULEB128(current_abbreviation++); in WriteBodyInternal()
1198 w->WriteString("__function"); in WriteBodyInternal()
1199 w->Write<uint32_t>(ty_offset); in WriteBodyInternal()
1200 Writer::Slot<uint32_t> block_size = w->CreateSlotHere<uint32_t>(); in WriteBodyInternal()
1201 uintptr_t block_start = w->position(); in WriteBodyInternal()
1202 w->Write<uint8_t>(DW_OP_fbreg); in WriteBodyInternal()
1203 w->WriteSLEB128(JavaScriptFrameConstants::kFunctionOffset); in WriteBodyInternal()
1204 block_size.set(static_cast<uint32_t>(w->position() - block_start)); in WriteBodyInternal()
1208 w->WriteULEB128(current_abbreviation++); in WriteBodyInternal()
1209 w->WriteString("__context"); in WriteBodyInternal()
1210 w->Write<uint32_t>(ty_offset); in WriteBodyInternal()
1211 Writer::Slot<uint32_t> block_size = w->CreateSlotHere<uint32_t>(); in WriteBodyInternal()
1212 uintptr_t block_start = w->position(); in WriteBodyInternal()
1213 w->Write<uint8_t>(DW_OP_fbreg); in WriteBodyInternal()
1214 w->WriteSLEB128(StandardFrameConstants::kContextOffset); in WriteBodyInternal()
1215 block_size.set(static_cast<uint32_t>(w->position() - block_start)); in WriteBodyInternal()
1218 w->WriteULEB128(0); // Terminate the sub program. in WriteBodyInternal()
1221 w->WriteULEB128(0); // Terminate the compile unit. in WriteBodyInternal()
1222 size.set(static_cast<uint32_t>(w->position() - start)); in WriteBodyInternal()
1286 void WriteVariableAbbreviation(Writer* w, in WriteVariableAbbreviation() argument
1290 w->WriteULEB128(abbreviation_code); in WriteVariableAbbreviation()
1291 w->WriteULEB128(is_parameter ? DW_TAG_FORMAL_PARAMETER : DW_TAG_VARIABLE); in WriteVariableAbbreviation()
1292 w->Write<uint8_t>(DW_CHILDREN_NO); in WriteVariableAbbreviation()
1293 w->WriteULEB128(DW_AT_NAME); in WriteVariableAbbreviation()
1294 w->WriteULEB128(DW_FORM_STRING); in WriteVariableAbbreviation()
1296 w->WriteULEB128(DW_AT_TYPE); in WriteVariableAbbreviation()
1297 w->WriteULEB128(DW_FORM_REF4); in WriteVariableAbbreviation()
1298 w->WriteULEB128(DW_AT_LOCATION); in WriteVariableAbbreviation()
1299 w->WriteULEB128(DW_FORM_BLOCK4); in WriteVariableAbbreviation()
1301 w->WriteULEB128(0); in WriteVariableAbbreviation()
1302 w->WriteULEB128(0); in WriteVariableAbbreviation()
1305 bool WriteBodyInternal(Writer* w) { in WriteBodyInternal() argument
1309 w->WriteULEB128(current_abbreviation++); in WriteBodyInternal()
1310 w->WriteULEB128(DW_TAG_COMPILE_UNIT); in WriteBodyInternal()
1311 w->Write<uint8_t>(extra_info ? DW_CHILDREN_YES : DW_CHILDREN_NO); in WriteBodyInternal()
1312 w->WriteULEB128(DW_AT_NAME); in WriteBodyInternal()
1313 w->WriteULEB128(DW_FORM_STRING); in WriteBodyInternal()
1314 w->WriteULEB128(DW_AT_LOW_PC); in WriteBodyInternal()
1315 w->WriteULEB128(DW_FORM_ADDR); in WriteBodyInternal()
1316 w->WriteULEB128(DW_AT_HIGH_PC); in WriteBodyInternal()
1317 w->WriteULEB128(DW_FORM_ADDR); in WriteBodyInternal()
1318 w->WriteULEB128(DW_AT_STMT_LIST); in WriteBodyInternal()
1319 w->WriteULEB128(DW_FORM_DATA4); in WriteBodyInternal()
1320 w->WriteULEB128(0); in WriteBodyInternal()
1321 w->WriteULEB128(0); in WriteBodyInternal()
1336 w->WriteULEB128(current_abbreviation++); // Abbreviation code. in WriteBodyInternal()
1337 w->WriteULEB128(DW_TAG_SUBPROGRAM); in WriteBodyInternal()
1338 w->Write<uint8_t>(DW_CHILDREN_YES); in WriteBodyInternal()
1339 w->WriteULEB128(DW_AT_NAME); in WriteBodyInternal()
1340 w->WriteULEB128(DW_FORM_STRING); in WriteBodyInternal()
1341 w->WriteULEB128(DW_AT_LOW_PC); in WriteBodyInternal()
1342 w->WriteULEB128(DW_FORM_ADDR); in WriteBodyInternal()
1343 w->WriteULEB128(DW_AT_HIGH_PC); in WriteBodyInternal()
1344 w->WriteULEB128(DW_FORM_ADDR); in WriteBodyInternal()
1345 w->WriteULEB128(DW_AT_FRAME_BASE); in WriteBodyInternal()
1346 w->WriteULEB128(DW_FORM_BLOCK4); in WriteBodyInternal()
1347 w->WriteULEB128(0); in WriteBodyInternal()
1348 w->WriteULEB128(0); in WriteBodyInternal()
1350 w->WriteULEB128(current_abbreviation++); in WriteBodyInternal()
1351 w->WriteULEB128(DW_TAG_STRUCTURE_TYPE); in WriteBodyInternal()
1352 w->Write<uint8_t>(DW_CHILDREN_NO); in WriteBodyInternal()
1353 w->WriteULEB128(DW_AT_BYTE_SIZE); in WriteBodyInternal()
1354 w->WriteULEB128(DW_FORM_DATA1); in WriteBodyInternal()
1355 w->WriteULEB128(DW_AT_NAME); in WriteBodyInternal()
1356 w->WriteULEB128(DW_FORM_STRING); in WriteBodyInternal()
1357 w->WriteULEB128(0); in WriteBodyInternal()
1358 w->WriteULEB128(0); in WriteBodyInternal()
1361 WriteVariableAbbreviation(w, current_abbreviation++, true, true); in WriteBodyInternal()
1365 WriteVariableAbbreviation(w, current_abbreviation++, false, false); in WriteBodyInternal()
1371 WriteVariableAbbreviation(w, current_abbreviation++, false, false); in WriteBodyInternal()
1377 WriteVariableAbbreviation(w, current_abbreviation++, false, false); in WriteBodyInternal()
1381 WriteVariableAbbreviation(w, current_abbreviation++, true, false); in WriteBodyInternal()
1385 WriteVariableAbbreviation(w, current_abbreviation++, true, false); in WriteBodyInternal()
1388 WriteVariableAbbreviation(w, current_abbreviation++, true, false); in WriteBodyInternal()
1390 w->WriteULEB128(0); // Terminate the sibling list. in WriteBodyInternal()
1393 w->WriteULEB128(0); // Terminate the table. in WriteBodyInternal()
1432 bool WriteBodyInternal(Writer* w) { in WriteBodyInternal() argument
1434 Writer::Slot<uint32_t> total_length = w->CreateSlotHere<uint32_t>(); in WriteBodyInternal()
1435 uintptr_t start = w->position(); in WriteBodyInternal()
1443 w->Write<uint16_t>(2); // Field version. in WriteBodyInternal()
1444 Writer::Slot<uint32_t> prologue_length = w->CreateSlotHere<uint32_t>(); in WriteBodyInternal()
1445 uintptr_t prologue_start = w->position(); in WriteBodyInternal()
1446 w->Write<uint8_t>(1); // Field minimum_instruction_length. in WriteBodyInternal()
1447 w->Write<uint8_t>(1); // Field default_is_stmt. in WriteBodyInternal()
1448 w->Write<int8_t>(line_base); // Field line_base. in WriteBodyInternal()
1449 w->Write<uint8_t>(line_range); // Field line_range. in WriteBodyInternal()
1450 w->Write<uint8_t>(opcode_base); // Field opcode_base. in WriteBodyInternal()
1451 w->Write<uint8_t>(0); // DW_LNS_COPY operands count. in WriteBodyInternal()
1452 w->Write<uint8_t>(1); // DW_LNS_ADVANCE_PC operands count. in WriteBodyInternal()
1453 w->Write<uint8_t>(1); // DW_LNS_ADVANCE_LINE operands count. in WriteBodyInternal()
1454 w->Write<uint8_t>(1); // DW_LNS_SET_FILE operands count. in WriteBodyInternal()
1455 w->Write<uint8_t>(1); // DW_LNS_SET_COLUMN operands count. in WriteBodyInternal()
1456 w->Write<uint8_t>(0); // DW_LNS_NEGATE_STMT operands count. in WriteBodyInternal()
1457 w->Write<uint8_t>(0); // Empty include_directories sequence. in WriteBodyInternal()
1458 w->WriteString(*desc_->GetFilename()); // File name. in WriteBodyInternal()
1459 w->WriteULEB128(0); // Current directory. in WriteBodyInternal()
1460 w->WriteULEB128(0); // Unknown modification time. in WriteBodyInternal()
1461 w->WriteULEB128(0); // Unknown file size. in WriteBodyInternal()
1462 w->Write<uint8_t>(0); in WriteBodyInternal()
1463 prologue_length.set(static_cast<uint32_t>(w->position() - prologue_start)); in WriteBodyInternal()
1465 WriteExtendedOpcode(w, DW_LNE_SET_ADDRESS, sizeof(intptr_t)); in WriteBodyInternal()
1466 w->Write<intptr_t>(desc_->CodeStart()); in WriteBodyInternal()
1467 w->Write<uint8_t>(DW_LNS_COPY); in WriteBodyInternal()
1494 w->Write<uint8_t>(DW_LNS_NEGATE_STMT); in WriteBodyInternal()
1497 w->Write<uint8_t>(DW_LNS_NEGATE_STMT); in WriteBodyInternal()
1518 w->Write<uint8_t>(special_opcode); in WriteBodyInternal()
1520 w->Write<uint8_t>(DW_LNS_ADVANCE_PC); in WriteBodyInternal()
1521 w->WriteSLEB128(pc_diff); in WriteBodyInternal()
1522 w->Write<uint8_t>(DW_LNS_ADVANCE_LINE); in WriteBodyInternal()
1523 w->WriteSLEB128(line_diff); in WriteBodyInternal()
1524 w->Write<uint8_t>(DW_LNS_COPY); in WriteBodyInternal()
1533 w->Write<uint8_t>(DW_LNS_ADVANCE_PC); in WriteBodyInternal()
1534 w->WriteSLEB128(desc_->CodeSize() - pc); in WriteBodyInternal()
1535 WriteExtendedOpcode(w, DW_LNE_END_SEQUENCE, 0); in WriteBodyInternal()
1536 total_length.set(static_cast<uint32_t>(w->position() - start)); in WriteBodyInternal()
1541 void WriteExtendedOpcode(Writer* w, in WriteExtendedOpcode() argument
1544 w->Write<uint8_t>(0); in WriteExtendedOpcode()
1545 w->WriteULEB128(operands_size + 1); in WriteExtendedOpcode()
1546 w->Write<uint8_t>(op); in WriteExtendedOpcode()
1572 virtual bool WriteBodyInternal(Writer* w);
1574 int WriteCIE(Writer* w);
1575 void WriteFDE(Writer* w, int);
1577 void WriteFDEStateOnEntry(Writer* w);
1578 void WriteFDEStateAfterRBPPush(Writer* w);
1579 void WriteFDEStateAfterRBPSet(Writer* w);
1580 void WriteFDEStateAfterRBPPop(Writer* w);
1582 void WriteLength(Writer* w,
1638 void UnwindInfoSection::WriteLength(Writer* w, in WriteLength() argument
1641 uint32_t align = (w->position() - initial_position) % kPointerSize; in WriteLength()
1645 w->Write<uint8_t>(DW_CFA_NOP); in WriteLength()
1649 ASSERT((w->position() - initial_position) % kPointerSize == 0); in WriteLength()
1650 length_slot->set(w->position() - initial_position); in WriteLength()
1663 int UnwindInfoSection::WriteCIE(Writer* w) { in WriteCIE() argument
1664 Writer::Slot<uint32_t> cie_length_slot = w->CreateSlotHere<uint32_t>(); in WriteCIE()
1665 uint32_t cie_position = w->position(); in WriteCIE()
1670 w->Write<uint32_t>(CIE_ID); in WriteCIE()
1671 w->Write<uint8_t>(CIE_VERSION); in WriteCIE()
1672 w->Write<uint8_t>(0); // Null augmentation string. in WriteCIE()
1673 w->WriteSLEB128(CODE_ALIGN_FACTOR); in WriteCIE()
1674 w->WriteSLEB128(DATA_ALIGN_FACTOR); in WriteCIE()
1675 w->Write<uint8_t>(RETURN_ADDRESS_REGISTER); in WriteCIE()
1677 WriteLength(w, &cie_length_slot, cie_position); in WriteCIE()
1683 void UnwindInfoSection::WriteFDE(Writer* w, int cie_position) { in WriteFDE() argument
1685 Writer::Slot<uint32_t> fde_length_slot = w->CreateSlotHere<uint32_t>(); in WriteFDE()
1686 int fde_position = w->position(); in WriteFDE()
1687 w->Write<int32_t>(fde_position - cie_position + 4); in WriteFDE()
1689 w->Write<uintptr_t>(desc_->CodeStart()); in WriteFDE()
1690 w->Write<uintptr_t>(desc_->CodeSize()); in WriteFDE()
1692 WriteFDEStateOnEntry(w); in WriteFDE()
1693 WriteFDEStateAfterRBPPush(w); in WriteFDE()
1694 WriteFDEStateAfterRBPSet(w); in WriteFDE()
1695 WriteFDEStateAfterRBPPop(w); in WriteFDE()
1697 WriteLength(w, &fde_length_slot, fde_position); in WriteFDE()
1701 void UnwindInfoSection::WriteFDEStateOnEntry(Writer* w) { in WriteFDEStateOnEntry() argument
1707 w->Write<uint8_t>(DW_CFA_DEF_CFA_SF); in WriteFDEStateOnEntry()
1708 w->WriteULEB128(AMD64_RSP); in WriteFDEStateOnEntry()
1709 w->WriteSLEB128(-kPointerSize); in WriteFDEStateOnEntry()
1713 w->Write<uint8_t>(DW_CFA_OFFSET_EXTENDED); in WriteFDEStateOnEntry()
1714 w->WriteULEB128(AMD64_RA); in WriteFDEStateOnEntry()
1715 w->WriteSLEB128(StandardFrameConstants::kCallerPCOffset); in WriteFDEStateOnEntry()
1718 w->Write<uint8_t>(DW_CFA_SAME_VALUE); in WriteFDEStateOnEntry()
1719 w->WriteULEB128(AMD64_RBP); in WriteFDEStateOnEntry()
1722 w->Write<uint8_t>(DW_CFA_SET_LOC); in WriteFDEStateOnEntry()
1723 w->Write<uint64_t>( in WriteFDEStateOnEntry()
1728 void UnwindInfoSection::WriteFDEStateAfterRBPPush(Writer* w) { in WriteFDEStateAfterRBPPush() argument
1733 w->Write<uint8_t>(DW_CFA_DEF_CFA_OFFSET); in WriteFDEStateAfterRBPPush()
1734 w->WriteULEB128(0); in WriteFDEStateAfterRBPPush()
1738 w->Write<uint8_t>(DW_CFA_OFFSET_EXTENDED); in WriteFDEStateAfterRBPPush()
1739 w->WriteULEB128(AMD64_RBP); in WriteFDEStateAfterRBPPush()
1740 w->WriteSLEB128(StandardFrameConstants::kCallerFPOffset); in WriteFDEStateAfterRBPPush()
1743 w->Write<uint8_t>(DW_CFA_SET_LOC); in WriteFDEStateAfterRBPPush()
1744 w->Write<uint64_t>( in WriteFDEStateAfterRBPPush()
1749 void UnwindInfoSection::WriteFDEStateAfterRBPSet(Writer* w) { in WriteFDEStateAfterRBPSet() argument
1753 w->Write<uint8_t>(DW_CFA_DEF_CFA); in WriteFDEStateAfterRBPSet()
1754 w->WriteULEB128(AMD64_RBP); in WriteFDEStateAfterRBPSet()
1755 w->WriteULEB128(0); in WriteFDEStateAfterRBPSet()
1758 w->Write<uint8_t>(DW_CFA_SET_LOC); in WriteFDEStateAfterRBPSet()
1759 w->Write<uint64_t>( in WriteFDEStateAfterRBPSet()
1764 void UnwindInfoSection::WriteFDEStateAfterRBPPop(Writer* w) { in WriteFDEStateAfterRBPPop() argument
1769 w->Write<uint8_t>(DW_CFA_DEF_CFA_SF); in WriteFDEStateAfterRBPPop()
1770 w->WriteULEB128(AMD64_RSP); in WriteFDEStateAfterRBPPop()
1771 w->WriteSLEB128(-kPointerSize); in WriteFDEStateAfterRBPPop()
1774 w->Write<uint8_t>(DW_CFA_OFFSET_EXTENDED); in WriteFDEStateAfterRBPPop()
1775 w->WriteULEB128(AMD64_RBP); in WriteFDEStateAfterRBPPop()
1776 w->WriteSLEB128(StandardFrameConstants::kCallerFPOffset); in WriteFDEStateAfterRBPPop()
1779 w->Write<uint8_t>(DW_CFA_SET_LOC); in WriteFDEStateAfterRBPPop()
1780 w->Write<uint64_t>(desc_->CodeEnd()); in WriteFDEStateAfterRBPPop()
1784 bool UnwindInfoSection::WriteBodyInternal(Writer* w) { in WriteBodyInternal() argument
1785 uint32_t cie_position = WriteCIE(w); in WriteBodyInternal()
1786 WriteFDE(w, cie_position); in WriteBodyInternal()
1924 Writer w(&mach_o); in CreateELFObject() local
1932 mach_o.Write(&w, desc->CodeStart(), desc->CodeSize()); in CreateELFObject()
1936 Writer w(&elf); in CreateELFObject()
1952 elf.Write(&w); in CreateELFObject()
1955 return CreateCodeEntry(w.buffer(), w.position()); in CreateELFObject()