mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 07:37:03 +00:00
LibWasm: Make sure to place imported functions before the module's
aafef1e92d
broke this while trying to
make the global import available in initialisation, this commit makes
sure we place the module's own functions after all resolved imports.
This commit is contained in:
parent
78f56a0908
commit
6820e0e175
Notes:
sideshowbarker
2024-07-17 03:59:29 +09:00
Author: https://github.com/alimpfard
Commit: 6820e0e175
Pull-request: https://github.com/SerenityOS/serenity/pull/21218
2 changed files with 9 additions and 4 deletions
|
@ -623,7 +623,7 @@ public:
|
|||
void enable_instruction_count_limit() { m_should_limit_instruction_count = true; }
|
||||
|
||||
private:
|
||||
Optional<InstantiationError> allocate_all_initial_phase(Module const&, ModuleInstance&, Vector<ExternValue>&, Vector<Value>& global_values);
|
||||
Optional<InstantiationError> allocate_all_initial_phase(Module const&, ModuleInstance&, Vector<ExternValue>&, Vector<Value>& global_values, Vector<FunctionAddress>& own_functions);
|
||||
Optional<InstantiationError> allocate_all_final_phase(Module const&, ModuleInstance&, Vector<Vector<Reference>>& elements);
|
||||
Store m_store;
|
||||
StackInfo m_stack_info;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue