mirror of
https://github.com/fluencelabs/wasmer
synced 2025-05-28 17:41:20 +00:00
print memory.grow
This commit is contained in:
parent
6424823586
commit
73bfa49dde
@ -37,6 +37,8 @@ pub unsafe extern "C" fn local_static_memory_grow(
|
|||||||
Err(_) => -1,
|
Err(_) => -1,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
println!("local static memory grow: delta {:?}, ret {}", delta, ret);
|
||||||
|
|
||||||
ctx.internal.memory_base = (*local_memory).base;
|
ctx.internal.memory_base = (*local_memory).base;
|
||||||
ctx.internal.memory_bound = (*local_memory).bound;
|
ctx.internal.memory_bound = (*local_memory).bound;
|
||||||
|
|
||||||
@ -82,6 +84,8 @@ pub unsafe extern "C" fn local_dynamic_memory_grow(
|
|||||||
Err(_) => -1,
|
Err(_) => -1,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
println!("local dynamic memory grow: delta {:?}, ret {}", delta, ret);
|
||||||
|
|
||||||
ctx.internal.memory_base = (*local_memory).base;
|
ctx.internal.memory_base = (*local_memory).base;
|
||||||
ctx.internal.memory_bound = (*local_memory).bound;
|
ctx.internal.memory_bound = (*local_memory).bound;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user