support tail-call in AoT (#419)

This commit is contained in:
Xu Jun
2020-10-13 08:34:31 +08:00
committed by GitHub
parent cc0aab1063
commit c87f28eacd
9 changed files with 55 additions and 4 deletions

View File

@ -2093,8 +2093,14 @@ aot_convert_wasm_module(WASMModule *wasm_module,
}
option.is_jit_mode = true;
#if WASM_ENABLE_BULK_MEMORY != 0
option.enable_bulk_memory = true;
#endif
#if WASM_ENABLE_THREAD_MGR != 0
option.enable_thread_mgr = true;
#endif
#if WASM_ENABLE_TAIL_CALL != 0
option.enable_tail_call = true;
#endif
comp_ctx = aot_create_comp_context(comp_data, &option);
if (!comp_ctx) {