Allow jump tables in wasmtime.

This commit is contained in:
Yury Delendik
2019-07-02 11:54:11 -05:00
committed by Dan Gohman
parent fb9d6061e4
commit 210e959333
7 changed files with 103 additions and 29 deletions

View File

@@ -77,7 +77,7 @@ impl<'data> RawCompiledModule<'data> {
None
};
let (allocated_functions, relocations, dbg_image) = compiler.compile(
let (allocated_functions, jt_offsets, relocations, dbg_image) = compiler.compile(
&translation.module,
translation.function_body_inputs,
debug_data,
@@ -86,6 +86,7 @@ impl<'data> RawCompiledModule<'data> {
let imports = link_module(
&translation.module,
&allocated_functions,
&jt_offsets,
relocations,
resolver,
)