| 428 | } |
| 429 | |
| 430 | Error 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 | // ============================= |
no test coverage detected