mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-25 14:41:32 +00:00
Remove commented out code.
This commit is contained in:
@ -4908,18 +4908,6 @@ unsafe extern "C" fn invoke_import(
|
||||
let vmctx: &mut vm::Ctx = &mut *vmctx;
|
||||
let import = (*vmctx.imported_funcs.offset(import_id as isize)).func;
|
||||
|
||||
/*let n_args = (stack_base as usize - stack_top as usize) / 8;
|
||||
|
||||
println!("Calling import: {:?} with vmctx = {:?}, n_args = {}",
|
||||
import,
|
||||
vmctx as *mut _,
|
||||
n_args,
|
||||
);
|
||||
|
||||
for i in 0..n_args {
|
||||
println!("Arg: {:?}", * ((stack_top as usize + i * 8) as *const *const ()));
|
||||
}*/
|
||||
|
||||
CONSTRUCT_STACK_AND_CALL_NATIVE(stack_top, stack_base, vmctx, import)
|
||||
}
|
||||
|
||||
@ -4962,11 +4950,6 @@ unsafe extern "C" fn call_indirect(
|
||||
}
|
||||
};
|
||||
|
||||
/*println!(
|
||||
"SIG INDEX = {}, FUNC INDEX = {:?}, ELEM INDEX = {}",
|
||||
sig_index, func_index, elem_index
|
||||
);*/
|
||||
|
||||
if ctx.signatures[SigIndex::new(sig_index)]
|
||||
!= ctx.signatures[ctx.function_signatures[func_index]]
|
||||
{
|
||||
|
@ -40,7 +40,6 @@ impl CacheGen for Placeholder {
|
||||
&self,
|
||||
_module: &ModuleInner,
|
||||
) -> Result<(Box<ModuleInfo>, Box<[u8]>, Memory), CacheError> {
|
||||
// unimplemented!()
|
||||
Err(CacheError::Unknown(
|
||||
"the dynasm backend doesn't support caching yet".to_string(),
|
||||
))
|
||||
@ -81,7 +80,6 @@ impl Compiler for SinglePassCompiler {
|
||||
Err(CacheError::Unknown(
|
||||
"the dynasm backend doesn't support caching yet".to_string(),
|
||||
))
|
||||
// unimplemented!("the dynasm backend doesn't support caching yet")
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user