diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-09-20 13:45:16 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-09-20 13:45:16 -0700 |
commit | 947cd3f224623f2d1e76f3c6cc30487ea8fd79ef (patch) | |
tree | 084235cae91bc812f2bd31c58c75a5c9fccb7a2d /test/memorygrowth.fromasm | |
parent | 2aa7ba43b59782243cd4960df43c7936292c41f4 (diff) | |
download | binaryen-947cd3f224623f2d1e76f3c6cc30487ea8fd79ef.tar.gz binaryen-947cd3f224623f2d1e76f3c6cc30487ea8fd79ef.tar.bz2 binaryen-947cd3f224623f2d1e76f3c6cc30487ea8fd79ef.zip |
memory and table printing fixes
Diffstat (limited to 'test/memorygrowth.fromasm')
-rw-r--r-- | test/memorygrowth.fromasm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/memorygrowth.fromasm b/test/memorygrowth.fromasm index 9c335557f..7847fa1dc 100644 --- a/test/memorygrowth.fromasm +++ b/test/memorygrowth.fromasm @@ -1,5 +1,4 @@ (module - (memory 256 256) (data (get_global $memoryBase) "memorygrowth.asm.js") (type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32))) (type $FUNCSIG$iii (func (param i32 i32) (result i32))) @@ -26,8 +25,8 @@ (import "env" "___unlock" (func $xa (param i32))) (import "env" "___syscall146" (func $ya (param i32 i32) (result i32))) (import "asm2wasm" "i32u-div" (func $i32u-div (param i32 i32) (result i32))) - (import "env" "memory" (memory $memory)) - (import "env" "table" (table $table)) + (import "env" "memory" (memory 256 256)) + (import "env" "table" (table 8 8 anyfunc)) (import "env" "memoryBase" (global $memoryBase i32)) (import "env" "tableBase" (global $tableBase i32)) (export "_free" (func $fb)) @@ -80,7 +79,6 @@ (global $S (mut i32) (i32.const 0)) (global $T (mut i32) (i32.const 0)) (global $za (mut f64) (f64.const 0)) - (table 8 8 anyfunc) (elem (i32.const 0) $nb $Oa $ob $Va $Ua $Ra $pb $Sa) (func $eb (param $0 i32) (result i32) (local $1 i32) |