mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:37:36 +00:00
LibWasm: Make the Module ctor generate a list of module functions
This list is supposed to be accessed rather frequently, so there's no reason to make things slower by generating it many times on the spot.
This commit is contained in:
parent
6e891822c5
commit
2b755f1fbf
4 changed files with 70 additions and 26 deletions
|
@ -242,7 +242,7 @@ void Printer::print(const Wasm::Expression& expression)
|
|||
print(instr);
|
||||
}
|
||||
|
||||
void Printer::print(const Wasm::Func& func)
|
||||
void Printer::print(const Wasm::CodeSection::Func& func)
|
||||
{
|
||||
print_indent();
|
||||
print("(function\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue