1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:47:34 +00:00

LibWasm: ALWAYS_INLINE some very hot functions

These function couldn't be inlined before because the compiler would've
started flagging invalid paths in Variant as maybe-uninitialized.
This commit is contained in:
Ali Mohammad Pur 2021-06-09 20:31:07 +04:30 committed by Ali Mohammad Pur
parent d3db45c60b
commit aa2916c21b
3 changed files with 17 additions and 14 deletions

View file

@ -457,6 +457,9 @@ void Linker::link(HashMap<Linker::Name, ExternValue> const& exports)
if (m_unresolved_imports.is_empty())
return;
if (exports.is_empty())
return;
HashTable<Name> resolved_imports;
for (auto& import_ : m_unresolved_imports) {
auto export_ = exports.get(import_);