Disconnects Store state fields from Compiler (#1761)
* Moves CodeMemory, VMInterrupts and SignatureRegistry from Compiler * CompiledModule holds CodeMemory and GdbJitImageRegistration * Store keeps track of its JIT code * Makes "jit_int.rs" stuff Send+Sync * Adds the threads example.
This commit is contained in:
@@ -12,7 +12,7 @@ fn host_always_has_some_stack() -> anyhow::Result<()> {
|
||||
// Create a module that's infinitely recursive, but calls the host on each
|
||||
// level of wasm stack to always test how much host stack we have left.
|
||||
let module = Module::new(
|
||||
&store,
|
||||
store.engine(),
|
||||
r#"
|
||||
(module
|
||||
(import "" "" (func $host))
|
||||
@@ -23,7 +23,7 @@ fn host_always_has_some_stack() -> anyhow::Result<()> {
|
||||
"#,
|
||||
)?;
|
||||
let func = Func::wrap(&store, test_host_stack);
|
||||
let instance = Instance::new(&module, &[func.into()])?;
|
||||
let instance = Instance::new(&store, &module, &[func.into()])?;
|
||||
let foo = instance.get_func("foo").unwrap().get0::<()>()?;
|
||||
|
||||
// Make sure that our function traps and the trap says that the call stack
|
||||
|
||||
Reference in New Issue
Block a user