Skip to content

Commit

Permalink
adapt for WAMR funciton definition update (#153)
Browse files Browse the repository at this point in the history
Signed-off-by: Su Yihan <[email protected]>
  • Loading branch information
yviansu authored Apr 12, 2024
1 parent 3a6af05 commit bef9fcf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion runtime-library/deps/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ if [ ! -d "quickjs" ]; then
fi

if [ ! -d "wamr-gc" ]; then
git clone --branch dev/gc_refactor --depth=1 https://github.com/bytecodealliance/wasm-micro-runtime.git wamr-gc
git clone --branch main --depth=1 https://github.com/bytecodealliance/wasm-micro-runtime.git wamr-gc
fi
2 changes: 1 addition & 1 deletion runtime-library/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ main(int argc, char *argv[])

ret = 0;

start_func = wasm_runtime_lookup_function(wasm_module_inst, "_entry", NULL);
start_func = wasm_runtime_lookup_function(wasm_module_inst, "_entry");
if (!start_func) {
printf("%s\n", "Missing '_entry' function in wasm module\n");
goto fail4;
Expand Down
2 changes: 1 addition & 1 deletion runtime-library/utils/object_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ box_value_to_any(wasm_exec_env_t exec_env, dyn_ctx_t ctx, wasm_value_t *value,
}

alloc_extref_table_slot = wasm_runtime_lookup_function(
module_inst, "allocExtRefTableSlot", "(r)i");
module_inst, "allocExtRefTableSlot");
bh_assert(alloc_extref_table_slot);

bh_memcpy_s(extref_argv + occupied_slots,
Expand Down
2 changes: 1 addition & 1 deletion runtime-library/utils/type_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,7 @@ get_prop_index_of_struct(wasm_exec_env_t exec_env, const char *prop,
&meta);
struct_type = (wasm_struct_type_t)wasm_obj_get_defined_type(*wasm_obj);
func = wasm_runtime_lookup_function(module_inst,
"find_property_flag_and_index", NULL);
"find_property_flag_and_index");
bh_assert(func);

argv[0] = meta.i32;
Expand Down

0 comments on commit bef9fcf

Please sign in to comment.