| 407 | } // anonymous namespace |
| 408 | |
| 409 | LabelLink* CodeHolder::newLabelLink(LabelEntry* le, uint32_t sectionId, size_t offset, intptr_t rel) noexcept { |
| 410 | LabelLink* link = _baseHeap.allocT<LabelLink>(); |
| 411 | if (ASMJIT_UNLIKELY(!link)) return nullptr; |
| 412 | |
| 413 | link->prev = le->_links; |
| 414 | le->_links = link; |
| 415 | |
| 416 | link->sectionId = sectionId; |
| 417 | link->relocId = RelocEntry::kInvalidId; |
| 418 | link->offset = offset; |
| 419 | link->rel = rel; |
| 420 | |
| 421 | _unresolvedLabelsCount++; |
| 422 | return link; |
| 423 | } |
| 424 | |
| 425 | Error CodeHolder::newLabelId(uint32_t& idOut) noexcept { |
| 426 | idOut = 0; |
no outgoing calls
no test coverage detected