mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-24 22:21:32 +00:00
Fix broken test that was creating a stack overflow
This commit is contained in:
@ -529,7 +529,7 @@ impl<'environment> FuncEnvironmentTrait for FuncEnvironment<'environment> {
|
||||
// Get the pointer type based on machine's pointer size.
|
||||
let ptr_type = self.pointer_type();
|
||||
|
||||
// The `callee` value is an index into a table of function pointers.
|
||||
// The `callee` value is an index into a table of Anyfunc structures.
|
||||
let entry_addr = pos.ins().table_addr(ptr_type, table, callee, 0);
|
||||
|
||||
let mflags = ir::MemFlags::trusted();
|
||||
|
@ -31,7 +31,7 @@ fn create_module_1() -> Box<Instance> {
|
||||
(func (;0;) (type 0) (result i64)
|
||||
i64.const 356)
|
||||
(func (;1;) (type 0) (result i64)
|
||||
i32.const 1
|
||||
i32.const 0
|
||||
call_indirect (type 0))
|
||||
(table (;0;) 2 anyfunc)
|
||||
(export \"type-i64\" (func 1))
|
||||
|
@ -121,8 +121,6 @@ impl LocalBacking {
|
||||
}
|
||||
};
|
||||
|
||||
println!("func_data: {:#?}", func_data);
|
||||
|
||||
elements[init.offset + i] = vm::Anyfunc { func_data, sig_id };
|
||||
}
|
||||
}
|
||||
|
@ -84,8 +84,6 @@ impl Instance {
|
||||
) -> Result<Option<Value>, String> {
|
||||
let (func_ref, ctx, signature) = self.get_func_from_index(func_index);
|
||||
|
||||
println!("func_ref: {:?}", func_ref);
|
||||
|
||||
let func_ptr = CodePtr::from_ptr(func_ref.inner() as _);
|
||||
let vmctx_ptr = match ctx {
|
||||
Context::External(vmctx) => vmctx,
|
||||
|
Reference in New Issue
Block a user