From 77fb4aee8189d85d295c6f0735ee8097e9d2946c Mon Sep 17 00:00:00 2001 From: Rodrigo Kumpera Date: Tue, 12 Sep 2017 13:12:06 -0700 Subject: [PATCH] [wasm] Add one more wasm_invoke entry. --- mono/mini/aot-runtime-wasm.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mono/mini/aot-runtime-wasm.c b/mono/mini/aot-runtime-wasm.c index 4fb8906941c..d2ce4fd23ff 100644 --- a/mono/mini/aot-runtime-wasm.c +++ b/mono/mini/aot-runtime-wasm.c @@ -204,6 +204,15 @@ typedef union { } pair; } interp_pair; +static void +wasm_invoke_l (void *target_func, InterpMethodArguments *margs) +{ + gint64 (*func)(void) = target_func; + + gint64 res = func (); + *(gint64*)margs->retval = res; +} + static void wasm_invoke_ll (void *target_func, InterpMethodArguments *margs) { @@ -345,6 +354,8 @@ wasm_enter_icall_trampoline (void *target_func, InterpMethodArguments *margs) wasm_invoke_iiiii (target_func, margs); else if (!strcmp ("IIIIII", cookie)) wasm_invoke_iiiiii (target_func, margs); + else if (!strcmp ("L", cookie)) + wasm_invoke_l (target_func, margs); else if (!strcmp ("LL", cookie)) wasm_invoke_ll (target_func, margs); else if (!strcmp ("LI", cookie)) -- 2.25.1