chore(runtime-core) Remove dbg!.

This commit is contained in:
Ivan Enderlin 2019-11-04 15:13:10 +01:00
parent 2a041f898e
commit 3b34a9187a
2 changed files with 1 additions and 13 deletions

View File

@ -576,7 +576,7 @@ fn import_functions(
let import =
imports.maybe_with_namespace(namespace, |namespace| namespace.get_export(name));
dbg!(vmctx);
match import {
Some(Export::Function {
func,

View File

@ -503,13 +503,9 @@ macro_rules! impl_traits {
Trap: TrapEarly<Rets>,
FN: Fn(&mut vm::Ctx, $( $x, )*) -> Trap,
{
dbg!(func_ctx.vmctx.as_ptr());
let vmctx = unsafe { func_ctx.vmctx.as_mut() };
let func_env = func_ctx.func_env;
dbg!(func_env);
let func: &FN = match func_env {
Some(func_env) => unsafe {
let func: NonNull<FN> = func_env.cast();
@ -551,8 +547,6 @@ macro_rules! impl_traits {
NonNull::new(Box::into_raw(Box::new(self))).map(NonNull::cast)
};
dbg!(func_env);
(
NonNull::new(wrap::<$( $x, )* Rets, Trap, Self> as *mut vm::Func).unwrap(),
func_env
@ -580,13 +574,9 @@ macro_rules! impl_traits {
Trap: TrapEarly<Rets>,
FN: Fn($( $x, )*) -> Trap,
{
dbg!(func_ctx.vmctx.as_ptr());
let vmctx = unsafe { func_ctx.vmctx.as_mut() };
let func_env = func_ctx.func_env;
dbg!(func_env);
let func: &FN = match func_env {
Some(func_env) => unsafe {
let func: NonNull<FN> = func_env.cast();
@ -628,8 +618,6 @@ macro_rules! impl_traits {
NonNull::new(Box::into_raw(Box::new(self))).map(NonNull::cast)
};
dbg!(func_env);
(
NonNull::new(wrap::<$( $x, )* Rets, Trap, Self> as *mut vm::Func).unwrap(),
func_env