Fix wasm linking bugs

This commit is contained in:
Brian Carroll 2021-11-09 21:22:12 +00:00
parent a9ce02799c
commit e2b95662a8
3 changed files with 22 additions and 10 deletions

View file

@ -21,6 +21,9 @@ const PTR_TYPE: ValueType = ValueType::I32;
pub const STACK_POINTER_GLOBAL_ID: u32 = 0;
pub const FRAME_ALIGNMENT_BYTES: i32 = 16;
pub const MEMORY_NAME: &str = "memory";
pub const BUILTINS_IMPORT_MODULE_NAME: &str = "builtins";
pub const STACK_POINTER_NAME: &str = "__stack_pointer";
pub struct Env<'a> {
pub arena: &'a Bump,