print memory.grow

This commit is contained in:
vms 2021-12-29 20:05:33 +03:00
parent 6424823586
commit 73bfa49dde

View File

@ -37,6 +37,8 @@ pub unsafe extern "C" fn local_static_memory_grow(
Err(_) => -1,
};
println!("local static memory grow: delta {:?}, ret {}", delta, ret);
ctx.internal.memory_base = (*local_memory).base;
ctx.internal.memory_bound = (*local_memory).bound;
@ -82,6 +84,8 @@ pub unsafe extern "C" fn local_dynamic_memory_grow(
Err(_) => -1,
};
println!("local dynamic memory grow: delta {:?}, ret {}", delta, ret);
ctx.internal.memory_base = (*local_memory).base;
ctx.internal.memory_bound = (*local_memory).bound;