Lines Matching refs:w
60 Slot(Writer* w, uintptr_t offset) : w_(w), offset_(offset) { } in Slot() argument
319 virtual void WriteBody(Writer::Slot<Header> header, Writer* w) { in WriteBody() argument
320 uintptr_t start = w->position(); in WriteBody()
321 if (WriteBodyInternal(w)) { in WriteBody()
322 uintptr_t end = w->position(); in WriteBody()
328 virtual bool WriteBodyInternal(Writer* w) { in WriteBodyInternal() argument
427 void AttachWriter(Writer* w) { in AttachWriter() argument
428 writer_ = w; in AttachWriter()
439 virtual void WriteBody(Writer::Slot<Header> header, Writer* w) { in WriteBody() argument
482 void Write(Writer* w, uintptr_t code_start, uintptr_t code_size) { in Write() argument
483 Writer::Slot<MachOHeader> header = WriteHeader(w); in Write()
484 uintptr_t load_command_start = w->position(); in Write()
485 Writer::Slot<MachOSegmentCommand> cmd = WriteSegmentCommand(w, in Write()
488 WriteSections(w, cmd, header, load_command_start); in Write()
532 Writer::Slot<MachOHeader> WriteHeader(Writer* w) { in WriteHeader() argument
533 DCHECK(w->position() == 0); in WriteHeader()
534 Writer::Slot<MachOHeader> header = w->CreateSlotHere<MachOHeader>(); in WriteHeader()
555 Writer::Slot<MachOSegmentCommand> WriteSegmentCommand(Writer* w, in WriteSegmentCommand() argument
559 w->CreateSlotHere<MachOSegmentCommand>(); in WriteSegmentCommand()
580 void WriteSections(Writer* w, in WriteSections() argument
585 w->CreateSlotsHere<MachOSection::Header>(sections_.length()); in WriteSections()
586 cmd->fileoff = w->position(); in WriteSections()
588 static_cast<uint32_t>(w->position() - load_command_start); in WriteSections()
591 sections_[section]->WriteBody(headers.at(section), w); in WriteSections()
593 cmd->filesize = w->position() - (uintptr_t)cmd->fileoff; in WriteSections()
610 void Write(Writer* w) { in Write() argument
611 WriteHeader(w); in Write()
612 WriteSectionTable(w); in Write()
613 WriteSections(w); in Write()
645 void WriteHeader(Writer* w) { in WriteHeader() argument
646 DCHECK(w->position() == 0); in WriteHeader()
647 Writer::Slot<ELFHeader> header = w->CreateSlotHere<ELFHeader>(); in WriteHeader()
699 void WriteSectionTable(Writer* w) { in WriteSectionTable() argument
701 DCHECK(w->position() == sizeof(ELFHeader)); in WriteSectionTable()
704 w->CreateSlotsHere<ELFSection::Header>(sections_.length()); in WriteSectionTable()
708 strtab->AttachWriter(w); in WriteSectionTable()
721 void WriteSections(Writer* w) { in WriteSections() argument
723 w->SlotAt<ELFSection::Header>(sizeof(ELFHeader)); in WriteSections()
728 sections_[i]->WriteBody(headers.at(i), w); in WriteSections()
852 virtual void WriteBody(Writer::Slot<Header> header, Writer* w) { in WriteBody() argument
853 w->Align(header->alignment); in WriteBody()
855 header->offset = w->position(); in WriteBody()
858 w->CreateSlotsHere<ELFSymbol::SerializedLayout>(total_symbols); in WriteBody()
860 header->size = w->position() - header->offset; in WriteBody()
864 static_cast<ELFStringTable*>(w->debug_object()->SectionAt(index() + 1)); in WriteBody()
865 strtab->AttachWriter(w); in WriteBody()
1109 bool WriteBodyInternal(Writer* w) { in WriteBodyInternal() argument
1110 uintptr_t cu_start = w->position(); in WriteBodyInternal()
1111 Writer::Slot<uint32_t> size = w->CreateSlotHere<uint32_t>(); in WriteBodyInternal()
1112 uintptr_t start = w->position(); in WriteBodyInternal()
1113 w->Write<uint16_t>(2); // DWARF version. in WriteBodyInternal()
1114 w->Write<uint32_t>(0); // Abbreviation table offset. in WriteBodyInternal()
1115 w->Write<uint8_t>(sizeof(intptr_t)); in WriteBodyInternal()
1117 w->WriteULEB128(1); // Abbreviation code. in WriteBodyInternal()
1118 w->WriteString(desc_->GetFilename().get()); in WriteBodyInternal()
1119 w->Write<intptr_t>(desc_->CodeStart()); in WriteBodyInternal()
1120 w->Write<intptr_t>(desc_->CodeStart() + desc_->CodeSize()); in WriteBodyInternal()
1121 w->Write<uint32_t>(0); in WriteBodyInternal()
1123 uint32_t ty_offset = static_cast<uint32_t>(w->position() - cu_start); in WriteBodyInternal()
1124 w->WriteULEB128(3); in WriteBodyInternal()
1125 w->Write<uint8_t>(kPointerSize); in WriteBodyInternal()
1126 w->WriteString("v8value"); in WriteBodyInternal()
1130 w->WriteULEB128(2); in WriteBodyInternal()
1131 w->WriteString(desc_->name()); in WriteBodyInternal()
1132 w->Write<intptr_t>(desc_->CodeStart()); in WriteBodyInternal()
1133 w->Write<intptr_t>(desc_->CodeStart() + desc_->CodeSize()); in WriteBodyInternal()
1134 Writer::Slot<uint32_t> fb_block_size = w->CreateSlotHere<uint32_t>(); in WriteBodyInternal()
1135 uintptr_t fb_block_start = w->position(); in WriteBodyInternal()
1137 w->Write<uint8_t>(DW_OP_reg5); // The frame pointer's here on ia32 in WriteBodyInternal()
1139 w->Write<uint8_t>(DW_OP_reg6); // and here on x64. in WriteBodyInternal()
1147 w->Write<uint8_t>(DW_OP_reg31); // The frame pointer is here on PPC64. in WriteBodyInternal()
1151 fb_block_size.set(static_cast<uint32_t>(w->position() - fb_block_start)); in WriteBodyInternal()
1162 w->WriteULEB128(current_abbreviation++); in WriteBodyInternal()
1163 w->WriteString( in WriteBodyInternal()
1165 w->Write<uint32_t>(ty_offset); in WriteBodyInternal()
1166 Writer::Slot<uint32_t> block_size = w->CreateSlotHere<uint32_t>(); in WriteBodyInternal()
1167 uintptr_t block_start = w->position(); in WriteBodyInternal()
1168 w->Write<uint8_t>(DW_OP_fbreg); in WriteBodyInternal()
1169 w->WriteSLEB128( in WriteBodyInternal()
1172 block_size.set(static_cast<uint32_t>(w->position() - block_start)); in WriteBodyInternal()
1179 w->WriteULEB128(current_abbreviation++); in WriteBodyInternal()
1182 w->WriteString(builder.Finalize()); in WriteBodyInternal()
1191 w->WriteULEB128(current_abbreviation++); in WriteBodyInternal()
1192 w->WriteString(".closure"); in WriteBodyInternal()
1193 w->WriteULEB128(current_abbreviation++); in WriteBodyInternal()
1194 w->WriteString(".previous"); in WriteBodyInternal()
1195 w->WriteULEB128(current_abbreviation++); in WriteBodyInternal()
1196 w->WriteString(".extension"); in WriteBodyInternal()
1197 w->WriteULEB128(current_abbreviation++); in WriteBodyInternal()
1198 w->WriteString(".native_context"); in WriteBodyInternal()
1203 w->WriteULEB128(current_abbreviation++); in WriteBodyInternal()
1206 w->WriteString(builder.Finalize()); in WriteBodyInternal()
1210 w->WriteULEB128(current_abbreviation++); in WriteBodyInternal()
1211 w->WriteString( in WriteBodyInternal()
1213 w->Write<uint32_t>(ty_offset); in WriteBodyInternal()
1214 Writer::Slot<uint32_t> block_size = w->CreateSlotHere<uint32_t>(); in WriteBodyInternal()
1215 uintptr_t block_start = w->position(); in WriteBodyInternal()
1216 w->Write<uint8_t>(DW_OP_fbreg); in WriteBodyInternal()
1217 w->WriteSLEB128( in WriteBodyInternal()
1220 block_size.set(static_cast<uint32_t>(w->position() - block_start)); in WriteBodyInternal()
1224 w->WriteULEB128(current_abbreviation++); in WriteBodyInternal()
1225 w->WriteString("__function"); in WriteBodyInternal()
1226 w->Write<uint32_t>(ty_offset); in WriteBodyInternal()
1227 Writer::Slot<uint32_t> block_size = w->CreateSlotHere<uint32_t>(); in WriteBodyInternal()
1228 uintptr_t block_start = w->position(); in WriteBodyInternal()
1229 w->Write<uint8_t>(DW_OP_fbreg); in WriteBodyInternal()
1230 w->WriteSLEB128(JavaScriptFrameConstants::kFunctionOffset); in WriteBodyInternal()
1231 block_size.set(static_cast<uint32_t>(w->position() - block_start)); in WriteBodyInternal()
1235 w->WriteULEB128(current_abbreviation++); in WriteBodyInternal()
1236 w->WriteString("__context"); in WriteBodyInternal()
1237 w->Write<uint32_t>(ty_offset); in WriteBodyInternal()
1238 Writer::Slot<uint32_t> block_size = w->CreateSlotHere<uint32_t>(); in WriteBodyInternal()
1239 uintptr_t block_start = w->position(); in WriteBodyInternal()
1240 w->Write<uint8_t>(DW_OP_fbreg); in WriteBodyInternal()
1241 w->WriteSLEB128(StandardFrameConstants::kContextOffset); in WriteBodyInternal()
1242 block_size.set(static_cast<uint32_t>(w->position() - block_start)); in WriteBodyInternal()
1245 w->WriteULEB128(0); // Terminate the sub program. in WriteBodyInternal()
1248 w->WriteULEB128(0); // Terminate the compile unit. in WriteBodyInternal()
1249 size.set(static_cast<uint32_t>(w->position() - start)); in WriteBodyInternal()
1313 void WriteVariableAbbreviation(Writer* w, in WriteVariableAbbreviation() argument
1317 w->WriteULEB128(abbreviation_code); in WriteVariableAbbreviation()
1318 w->WriteULEB128(is_parameter ? DW_TAG_FORMAL_PARAMETER : DW_TAG_VARIABLE); in WriteVariableAbbreviation()
1319 w->Write<uint8_t>(DW_CHILDREN_NO); in WriteVariableAbbreviation()
1320 w->WriteULEB128(DW_AT_NAME); in WriteVariableAbbreviation()
1321 w->WriteULEB128(DW_FORM_STRING); in WriteVariableAbbreviation()
1323 w->WriteULEB128(DW_AT_TYPE); in WriteVariableAbbreviation()
1324 w->WriteULEB128(DW_FORM_REF4); in WriteVariableAbbreviation()
1325 w->WriteULEB128(DW_AT_LOCATION); in WriteVariableAbbreviation()
1326 w->WriteULEB128(DW_FORM_BLOCK4); in WriteVariableAbbreviation()
1328 w->WriteULEB128(0); in WriteVariableAbbreviation()
1329 w->WriteULEB128(0); in WriteVariableAbbreviation()
1332 bool WriteBodyInternal(Writer* w) { in WriteBodyInternal() argument
1336 w->WriteULEB128(current_abbreviation++); in WriteBodyInternal()
1337 w->WriteULEB128(DW_TAG_COMPILE_UNIT); in WriteBodyInternal()
1338 w->Write<uint8_t>(extra_info ? DW_CHILDREN_YES : DW_CHILDREN_NO); 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_STMT_LIST); in WriteBodyInternal()
1346 w->WriteULEB128(DW_FORM_DATA4); in WriteBodyInternal()
1347 w->WriteULEB128(0); in WriteBodyInternal()
1348 w->WriteULEB128(0); in WriteBodyInternal()
1363 w->WriteULEB128(current_abbreviation++); // Abbreviation code. in WriteBodyInternal()
1364 w->WriteULEB128(DW_TAG_SUBPROGRAM); in WriteBodyInternal()
1365 w->Write<uint8_t>(DW_CHILDREN_YES); in WriteBodyInternal()
1366 w->WriteULEB128(DW_AT_NAME); in WriteBodyInternal()
1367 w->WriteULEB128(DW_FORM_STRING); in WriteBodyInternal()
1368 w->WriteULEB128(DW_AT_LOW_PC); in WriteBodyInternal()
1369 w->WriteULEB128(DW_FORM_ADDR); in WriteBodyInternal()
1370 w->WriteULEB128(DW_AT_HIGH_PC); in WriteBodyInternal()
1371 w->WriteULEB128(DW_FORM_ADDR); in WriteBodyInternal()
1372 w->WriteULEB128(DW_AT_FRAME_BASE); in WriteBodyInternal()
1373 w->WriteULEB128(DW_FORM_BLOCK4); in WriteBodyInternal()
1374 w->WriteULEB128(0); in WriteBodyInternal()
1375 w->WriteULEB128(0); in WriteBodyInternal()
1377 w->WriteULEB128(current_abbreviation++); in WriteBodyInternal()
1378 w->WriteULEB128(DW_TAG_STRUCTURE_TYPE); in WriteBodyInternal()
1379 w->Write<uint8_t>(DW_CHILDREN_NO); in WriteBodyInternal()
1380 w->WriteULEB128(DW_AT_BYTE_SIZE); in WriteBodyInternal()
1381 w->WriteULEB128(DW_FORM_DATA1); in WriteBodyInternal()
1382 w->WriteULEB128(DW_AT_NAME); in WriteBodyInternal()
1383 w->WriteULEB128(DW_FORM_STRING); in WriteBodyInternal()
1384 w->WriteULEB128(0); in WriteBodyInternal()
1385 w->WriteULEB128(0); in WriteBodyInternal()
1388 WriteVariableAbbreviation(w, current_abbreviation++, true, true); in WriteBodyInternal()
1392 WriteVariableAbbreviation(w, current_abbreviation++, false, false); in WriteBodyInternal()
1398 WriteVariableAbbreviation(w, current_abbreviation++, false, false); in WriteBodyInternal()
1404 WriteVariableAbbreviation(w, current_abbreviation++, false, false); in WriteBodyInternal()
1408 WriteVariableAbbreviation(w, current_abbreviation++, true, false); in WriteBodyInternal()
1412 WriteVariableAbbreviation(w, current_abbreviation++, true, false); in WriteBodyInternal()
1415 WriteVariableAbbreviation(w, current_abbreviation++, true, false); in WriteBodyInternal()
1417 w->WriteULEB128(0); // Terminate the sibling list. in WriteBodyInternal()
1420 w->WriteULEB128(0); // Terminate the table. in WriteBodyInternal()
1459 bool WriteBodyInternal(Writer* w) { in WriteBodyInternal() argument
1461 Writer::Slot<uint32_t> total_length = w->CreateSlotHere<uint32_t>(); in WriteBodyInternal()
1462 uintptr_t start = w->position(); in WriteBodyInternal()
1470 w->Write<uint16_t>(2); // Field version. in WriteBodyInternal()
1471 Writer::Slot<uint32_t> prologue_length = w->CreateSlotHere<uint32_t>(); in WriteBodyInternal()
1472 uintptr_t prologue_start = w->position(); in WriteBodyInternal()
1473 w->Write<uint8_t>(1); // Field minimum_instruction_length. in WriteBodyInternal()
1474 w->Write<uint8_t>(1); // Field default_is_stmt. in WriteBodyInternal()
1475 w->Write<int8_t>(line_base); // Field line_base. in WriteBodyInternal()
1476 w->Write<uint8_t>(line_range); // Field line_range. in WriteBodyInternal()
1477 w->Write<uint8_t>(opcode_base); // Field opcode_base. in WriteBodyInternal()
1478 w->Write<uint8_t>(0); // DW_LNS_COPY operands count. in WriteBodyInternal()
1479 w->Write<uint8_t>(1); // DW_LNS_ADVANCE_PC operands count. in WriteBodyInternal()
1480 w->Write<uint8_t>(1); // DW_LNS_ADVANCE_LINE operands count. in WriteBodyInternal()
1481 w->Write<uint8_t>(1); // DW_LNS_SET_FILE operands count. in WriteBodyInternal()
1482 w->Write<uint8_t>(1); // DW_LNS_SET_COLUMN operands count. in WriteBodyInternal()
1483 w->Write<uint8_t>(0); // DW_LNS_NEGATE_STMT operands count. in WriteBodyInternal()
1484 w->Write<uint8_t>(0); // Empty include_directories sequence. in WriteBodyInternal()
1485 w->WriteString(desc_->GetFilename().get()); // File name. in WriteBodyInternal()
1486 w->WriteULEB128(0); // Current directory. in WriteBodyInternal()
1487 w->WriteULEB128(0); // Unknown modification time. in WriteBodyInternal()
1488 w->WriteULEB128(0); // Unknown file size. in WriteBodyInternal()
1489 w->Write<uint8_t>(0); in WriteBodyInternal()
1490 prologue_length.set(static_cast<uint32_t>(w->position() - prologue_start)); in WriteBodyInternal()
1492 WriteExtendedOpcode(w, DW_LNE_SET_ADDRESS, sizeof(intptr_t)); in WriteBodyInternal()
1493 w->Write<intptr_t>(desc_->CodeStart()); in WriteBodyInternal()
1494 w->Write<uint8_t>(DW_LNS_COPY); in WriteBodyInternal()
1521 w->Write<uint8_t>(DW_LNS_NEGATE_STMT); in WriteBodyInternal()
1524 w->Write<uint8_t>(DW_LNS_NEGATE_STMT); in WriteBodyInternal()
1545 w->Write<uint8_t>(special_opcode); in WriteBodyInternal()
1547 w->Write<uint8_t>(DW_LNS_ADVANCE_PC); in WriteBodyInternal()
1548 w->WriteSLEB128(pc_diff); in WriteBodyInternal()
1549 w->Write<uint8_t>(DW_LNS_ADVANCE_LINE); in WriteBodyInternal()
1550 w->WriteSLEB128(line_diff); in WriteBodyInternal()
1551 w->Write<uint8_t>(DW_LNS_COPY); in WriteBodyInternal()
1560 w->Write<uint8_t>(DW_LNS_ADVANCE_PC); in WriteBodyInternal()
1561 w->WriteSLEB128(desc_->CodeSize() - pc); in WriteBodyInternal()
1562 WriteExtendedOpcode(w, DW_LNE_END_SEQUENCE, 0); in WriteBodyInternal()
1563 total_length.set(static_cast<uint32_t>(w->position() - start)); in WriteBodyInternal()
1568 void WriteExtendedOpcode(Writer* w, in WriteExtendedOpcode() argument
1571 w->Write<uint8_t>(0); in WriteExtendedOpcode()
1572 w->WriteULEB128(operands_size + 1); in WriteExtendedOpcode()
1573 w->Write<uint8_t>(op); in WriteExtendedOpcode()
1599 virtual bool WriteBodyInternal(Writer* w);
1601 int WriteCIE(Writer* w);
1602 void WriteFDE(Writer* w, int);
1604 void WriteFDEStateOnEntry(Writer* w);
1605 void WriteFDEStateAfterRBPPush(Writer* w);
1606 void WriteFDEStateAfterRBPSet(Writer* w);
1607 void WriteFDEStateAfterRBPPop(Writer* w);
1609 void WriteLength(Writer* w,
1665 void UnwindInfoSection::WriteLength(Writer* w, in WriteLength() argument
1668 uint32_t align = (w->position() - initial_position) % kPointerSize; in WriteLength()
1672 w->Write<uint8_t>(DW_CFA_NOP); in WriteLength()
1676 DCHECK((w->position() - initial_position) % kPointerSize == 0); in WriteLength()
1677 length_slot->set(static_cast<uint32_t>(w->position() - initial_position)); in WriteLength()
1690 int UnwindInfoSection::WriteCIE(Writer* w) { in WriteCIE() argument
1691 Writer::Slot<uint32_t> cie_length_slot = w->CreateSlotHere<uint32_t>(); in WriteCIE()
1692 uint32_t cie_position = static_cast<uint32_t>(w->position()); in WriteCIE()
1697 w->Write<uint32_t>(CIE_ID); in WriteCIE()
1698 w->Write<uint8_t>(CIE_VERSION); in WriteCIE()
1699 w->Write<uint8_t>(0); // Null augmentation string. in WriteCIE()
1700 w->WriteSLEB128(CODE_ALIGN_FACTOR); in WriteCIE()
1701 w->WriteSLEB128(DATA_ALIGN_FACTOR); in WriteCIE()
1702 w->Write<uint8_t>(RETURN_ADDRESS_REGISTER); in WriteCIE()
1704 WriteLength(w, &cie_length_slot, cie_position); in WriteCIE()
1710 void UnwindInfoSection::WriteFDE(Writer* w, int cie_position) { in WriteFDE() argument
1712 Writer::Slot<uint32_t> fde_length_slot = w->CreateSlotHere<uint32_t>(); in WriteFDE()
1713 int fde_position = static_cast<uint32_t>(w->position()); in WriteFDE()
1714 w->Write<int32_t>(fde_position - cie_position + 4); in WriteFDE()
1716 w->Write<uintptr_t>(desc_->CodeStart()); in WriteFDE()
1717 w->Write<uintptr_t>(desc_->CodeSize()); in WriteFDE()
1719 WriteFDEStateOnEntry(w); in WriteFDE()
1720 WriteFDEStateAfterRBPPush(w); in WriteFDE()
1721 WriteFDEStateAfterRBPSet(w); in WriteFDE()
1722 WriteFDEStateAfterRBPPop(w); in WriteFDE()
1724 WriteLength(w, &fde_length_slot, fde_position); in WriteFDE()
1728 void UnwindInfoSection::WriteFDEStateOnEntry(Writer* w) { in WriteFDEStateOnEntry() argument
1734 w->Write<uint8_t>(DW_CFA_DEF_CFA_SF); in WriteFDEStateOnEntry()
1735 w->WriteULEB128(AMD64_RSP); in WriteFDEStateOnEntry()
1736 w->WriteSLEB128(-kPointerSize); in WriteFDEStateOnEntry()
1740 w->Write<uint8_t>(DW_CFA_OFFSET_EXTENDED); in WriteFDEStateOnEntry()
1741 w->WriteULEB128(AMD64_RA); in WriteFDEStateOnEntry()
1742 w->WriteSLEB128(StandardFrameConstants::kCallerPCOffset); in WriteFDEStateOnEntry()
1745 w->Write<uint8_t>(DW_CFA_SAME_VALUE); in WriteFDEStateOnEntry()
1746 w->WriteULEB128(AMD64_RBP); in WriteFDEStateOnEntry()
1749 w->Write<uint8_t>(DW_CFA_SET_LOC); in WriteFDEStateOnEntry()
1750 w->Write<uint64_t>( in WriteFDEStateOnEntry()
1755 void UnwindInfoSection::WriteFDEStateAfterRBPPush(Writer* w) { in WriteFDEStateAfterRBPPush() argument
1760 w->Write<uint8_t>(DW_CFA_DEF_CFA_OFFSET); in WriteFDEStateAfterRBPPush()
1761 w->WriteULEB128(0); in WriteFDEStateAfterRBPPush()
1765 w->Write<uint8_t>(DW_CFA_OFFSET_EXTENDED); in WriteFDEStateAfterRBPPush()
1766 w->WriteULEB128(AMD64_RBP); in WriteFDEStateAfterRBPPush()
1767 w->WriteSLEB128(StandardFrameConstants::kCallerFPOffset); in WriteFDEStateAfterRBPPush()
1770 w->Write<uint8_t>(DW_CFA_SET_LOC); in WriteFDEStateAfterRBPPush()
1771 w->Write<uint64_t>( in WriteFDEStateAfterRBPPush()
1776 void UnwindInfoSection::WriteFDEStateAfterRBPSet(Writer* w) { in WriteFDEStateAfterRBPSet() argument
1780 w->Write<uint8_t>(DW_CFA_DEF_CFA); in WriteFDEStateAfterRBPSet()
1781 w->WriteULEB128(AMD64_RBP); in WriteFDEStateAfterRBPSet()
1782 w->WriteULEB128(0); in WriteFDEStateAfterRBPSet()
1785 w->Write<uint8_t>(DW_CFA_SET_LOC); in WriteFDEStateAfterRBPSet()
1786 w->Write<uint64_t>( in WriteFDEStateAfterRBPSet()
1791 void UnwindInfoSection::WriteFDEStateAfterRBPPop(Writer* w) { in WriteFDEStateAfterRBPPop() argument
1796 w->Write<uint8_t>(DW_CFA_DEF_CFA_SF); in WriteFDEStateAfterRBPPop()
1797 w->WriteULEB128(AMD64_RSP); in WriteFDEStateAfterRBPPop()
1798 w->WriteSLEB128(-kPointerSize); in WriteFDEStateAfterRBPPop()
1801 w->Write<uint8_t>(DW_CFA_OFFSET_EXTENDED); in WriteFDEStateAfterRBPPop()
1802 w->WriteULEB128(AMD64_RBP); in WriteFDEStateAfterRBPPop()
1803 w->WriteSLEB128(StandardFrameConstants::kCallerFPOffset); in WriteFDEStateAfterRBPPop()
1806 w->Write<uint8_t>(DW_CFA_SET_LOC); in WriteFDEStateAfterRBPPop()
1807 w->Write<uint64_t>(desc_->CodeEnd()); in WriteFDEStateAfterRBPPop()
1811 bool UnwindInfoSection::WriteBodyInternal(Writer* w) { in WriteBodyInternal() argument
1812 uint32_t cie_position = WriteCIE(w); in WriteBodyInternal()
1813 WriteFDE(w, cie_position); in WriteBodyInternal()
1932 Writer w(&mach_o); in CreateELFObject() local
1940 mach_o.Write(&w, desc->CodeStart(), desc->CodeSize()); in CreateELFObject()
1944 Writer w(&elf); in CreateELFObject()
1960 elf.Write(&w); in CreateELFObject()
1963 return CreateCodeEntry(w.buffer(), w.position()); in CreateELFObject()