Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions mono/mini/m2n-gen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class Driver {
"IIL",
"IILI",
"IILLLI",
"IDIII",
"LII",
"VID",
"VIIIIIII",
Expand Down
12 changes: 12 additions & 0 deletions mono/mini/wasm_m2n_invoke.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,16 @@ wasm_invoke_iillli (void *target_func, InterpMethodArguments *margs)

}

static void
wasm_invoke_idiii (void *target_func, InterpMethodArguments *margs)
{
int (*func)(double arg_0, int arg_1, int arg_2, int arg_3) = target_func;

int res = func (margs->fargs [FIDX (0)], (int)margs->iargs [0], (int)margs->iargs [1], (int)margs->iargs [2]);
*(int*)margs->retval = res;

}

static void
wasm_invoke_lii (void *target_func, InterpMethodArguments *margs)
{
Expand Down Expand Up @@ -510,6 +520,8 @@ icall_trampoline_dispatch (const char *cookie, void *target_func, InterpMethodAr
wasm_invoke_iili (target_func, margs);
else if (!strcmp ("IILLLI", cookie))
wasm_invoke_iillli (target_func, margs);
else if (!strcmp ("IDIII", cookie))
wasm_invoke_idiii (target_func, margs);
else if (!strcmp ("LII", cookie))
wasm_invoke_lii (target_func, margs);
else if (!strcmp ("VID", cookie))
Expand Down