MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / new_fixup

Method new_fixup

lib/asmjit/asmjit/core/codeholder.cpp:663–683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

661}
662
663Fixup* CodeHolder::new_fixup(LabelEntry& le, uint32_t section_id, size_t offset, intptr_t rel, const OffsetFormat& format) noexcept {
664 // Cannot be bound if we are creating a link.
665 ASMJIT_ASSERT(!le.is_bound());
666
667 Fixup* link = _fixup_data_pool.alloc(_arena);
668 if (ASMJIT_UNLIKELY(!link)) {
669 return nullptr;
670 }
671
672 link->next = le._get_fixups();
673 link->section_id = section_id;
674 link->label_or_reloc_id = Globals::kInvalidId;
675 link->offset = offset;
676 link->rel = rel;
677 link->format = format;
678
679 le._set_fixups(link);
680 _unresolved_fixup_count++;
681
682 return link;
683}
684
685Error CodeHolder::new_label_id(Out<uint32_t> label_id_out) noexcept {
686 uint32_t label_id = _label_entries._size;

Callers 3

embed_labelMethod · 0.80
_emitMethod · 0.80
_emitMethod · 0.80

Calls 4

is_boundMethod · 0.80
_get_fixupsMethod · 0.80
_set_fixupsMethod · 0.80
allocMethod · 0.45

Tested by

no test coverage detected