mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 09:18:11 +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
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