Remove commented out code.

This commit is contained in:
losfair
2019-03-18 00:52:16 +08:00
parent 4ca27b68b0
commit e48ff027a6
2 changed files with 24 additions and 43 deletions

View File

@ -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]]
{

View File

@ -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")
}
}