• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/lld/lib/ReaderWriter/MachO/

Lines Matching refs:pages

70                  std::vector<UnwindInfoPage> &pages, uint32_t numLSDAs)
78 3 * (pages.size() + 1) * sizeof(uint32_t)),
82 addHeader(commonEncodings.size(), personalities.size(), pages.size());
85 addTopLevelIndexes(pages);
86 addLSDAIndexes(pages, numLSDAs);
87 addSecondLevelPages(pages);
156 void addTopLevelIndexes(std::vector<UnwindInfoPage> &pages) {
159 uint32_t numIndexes = pages.size() + 1;
168 for (unsigned i = 0; i < pages.size(); ++i) {
171 pages[i].entries[0].rangeStart);
177 for (auto &entry : pages[i].entries)
183 auto &finalEntry = pages[pages.size() - 1].entries.back();
185 3 * pages.size() * sizeof(uint32_t),
188 write32(indexData + (3 * pages.size() + 2) * sizeof(uint32_t),
192 void addLSDAIndexes(std::vector<UnwindInfoPage> &pages, uint32_t numLSDAs) {
196 for (auto &page : pages) {
208 void addSecondLevelPages(std::vector<UnwindInfoPage> &pages) {
209 for (auto &page : pages) {
307 // TODO: Find common encodings for use by compressed pages.
319 // Finally, we can start creating pages based on these entries.
321 LLVM_DEBUG(llvm::dbgs() << " Splitting entries into pages\n");
322 // FIXME: we split the entries into pages naively: lots of 4k pages followed
326 std::vector<UnwindInfoPage> pages;
329 pages.push_back(UnwindInfoPage());
331 // FIXME: we only create regular pages at the moment. These can hold up to
335 pages.back().entries = remainingInfos.slice(0, entriesInPage);
340 << pages.back().entries[0].rangeStart->name() << " to "
341 << pages.back().entries.back().rangeStart->name() << " + "
343 pages.back().entries.back().rangeLength)
349 commonEncodings, pages, numLSDAs);