mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:27:43 +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:
parent
d3db45c60b
commit
aa2916c21b
3 changed files with 17 additions and 14 deletions
|
@ -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_);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue