Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[instantiation linking] Create and import WASMFunctionInstance #3947

Open
wants to merge 22 commits into
base: dev/instantiate_linking
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
ee41140
[inst-link function]Refactor: rename 'is_sub_inst' parameter to 'is_s…
lum1n0us Nov 27, 2024
ba233d0
Refactor: simplify function pointer retrieval in aot_call_function fo…
lum1n0us Nov 27, 2024
295cbbb
Refactor: streamline import function resolution logic and improve err…
lum1n0us Nov 27, 2024
8368647
Refactor: improve comments for clarity in AOT function handling and c…
lum1n0us Nov 29, 2024
d440f6f
Refactor: enhance import function resolution by adding module name ch…
lum1n0us Dec 1, 2024
949eb16
Refactor: update TODO comment to indicate removal of import_func_ptrs
lum1n0us Dec 2, 2024
ed63721
Refactor: add internal functions for creating and destroying WASM fun…
lum1n0us Dec 2, 2024
3adfbb9
Refactor: update WASM function import structure and improve memory ma…
lum1n0us Dec 3, 2024
0b25433
Refactor: streamline function call conventions by consolidating call_…
lum1n0us Dec 3, 2024
264c245
Refactor: rename type variables for clarity and improve error logging…
lum1n0us Dec 3, 2024
44c0475
Refactor: add print wrappers and register native functions for spec test
lum1n0us Dec 3, 2024
dff5399
Refactor: enhance import function handling and add print wrappers for…
lum1n0us Dec 4, 2024
c9ede66
Refactor: enhance function pointer initialization for multi-module su…
lum1n0us Dec 4, 2024
f9383ce
Refactor: enhance function pointer initialization for multi-module su…
lum1n0us Dec 4, 2024
69d006a
Refactor: enhance AOT function and import structures for multi-module…
lum1n0us Dec 4, 2024
e4729df
Refactor: enhance C API function import handling and improve function…
lum1n0us Dec 5, 2024
35949fd
Refactor: enhance multi-module support by adding sub-module instance …
lum1n0us Dec 5, 2024
a4019a3
Refactor: update function instance handling for improved multi-module…
lum1n0us Dec 5, 2024
d619dc9
Refactor: remove redundant import function pointer assignments and im…
lum1n0us Dec 5, 2024
1221057
Refactor: update memory flag handling and improve type consistency in…
lum1n0us Dec 5, 2024
a68d9f9
Refactor: improve function pointer retrieval and error handling in AO…
lum1n0us Dec 5, 2024
cbb33b4
Refactor: enhance C API function import handling in native invocation
lum1n0us Dec 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions core/iwasm/aot/aot_loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ load_native_symbol_section(const uint8 *buf, const uint8 *buf_end,
goto fail;
}

for (i = cnt - 1; i >= 0; i--) {
for (i = (int32)cnt - 1; i >= 0; i--) {
read_string(p, p_end, symbol);
if (!strlen(symbol))
continue;
Expand Down Expand Up @@ -3840,7 +3840,7 @@ load_relocation_section(const uint8 *buf, const uint8 *buf_end,
/* The layout is: literal size + literal + code (with plt table) */
uint8 *mmap_addr = module->literal - sizeof(uint32);
uint32 total_size =
sizeof(uint32) + module->literal_size + module->code_size;
(uint32)sizeof(uint32) + module->literal_size + module->code_size;
os_mprotect(mmap_addr, total_size, map_prot);
}

Expand Down Expand Up @@ -4529,7 +4529,7 @@ aot_unload(AOTModule *module)
/* The layout is: literal size + literal + code (with plt table) */
uint8 *mmap_addr = module->literal - sizeof(uint32);
uint32 total_size =
sizeof(uint32) + module->literal_size + module->code_size;
(uint32)sizeof(uint32) + module->literal_size + module->code_size;
os_munmap(mmap_addr, total_size);
}

Expand Down
Loading
Loading