MCPcopy Create free account
hub / github.com/Chemiculs/qengine / addAddressToAddressTable

Method addAddressToAddressTable

src/qengine/extern/asmjit/core/codeholder.cpp:430–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428}
429
430Error CodeHolder::addAddressToAddressTable(uint64_t address) noexcept {
431 AddressTableEntry* entry = _addressTableEntries.get(address);
432 if (entry)
433 return kErrorOk;
434
435 Section* section = ensureAddressTableSection();
436 if (ASMJIT_UNLIKELY(!section))
437 return DebugUtils::errored(kErrorOutOfMemory);
438
439 entry = _zone.newT<AddressTableEntry>(address);
440 if (ASMJIT_UNLIKELY(!entry))
441 return DebugUtils::errored(kErrorOutOfMemory);
442
443 _addressTableEntries.insert(entry);
444 section->_virtualSize += _environment.registerSize();
445
446 return kErrorOk;
447}
448
449// CodeHolder - Labels & Symbols
450// =============================

Callers 1

_emitMethod · 0.80

Calls 4

erroredFunction · 0.85
getMethod · 0.45
insertMethod · 0.45
registerSizeMethod · 0.45

Tested by

no test coverage detected