diff options
Diffstat (limited to 'test/memorygrowth.fromasm.no-opts')
-rw-r--r-- | test/memorygrowth.fromasm.no-opts | 102 |
1 files changed, 51 insertions, 51 deletions
diff --git a/test/memorygrowth.fromasm.no-opts b/test/memorygrowth.fromasm.no-opts index 46625f4b0..3c25e569e 100644 --- a/test/memorygrowth.fromasm.no-opts +++ b/test/memorygrowth.fromasm.no-opts @@ -5,6 +5,10 @@ (type $FUNCSIG$v (func)) (type $FUNCSIG$vii (func (param i32 i32))) (type $FUNCSIG$iii (func (param i32 i32) (result i32))) + (import "env" "memory" (memory $0 256)) + (import "env" "table" (table 8 8 anyfunc)) + (import "env" "memoryBase" (global $memoryBase i32)) + (import "env" "tableBase" (global $tableBase i32)) (import "env" "STACKTOP" (global $r$asm2wasm$import i32)) (import "env" "STACK_MAX" (global $s$asm2wasm$import i32)) (import "env" "tempDoublePtr" (global $t$asm2wasm$import i32)) @@ -23,10 +27,6 @@ (import "env" "___syscall54" (func $wa (param i32 i32) (result i32))) (import "env" "___unlock" (func $xa (param i32))) (import "env" "___syscall146" (func $ya (param i32 i32) (result i32))) - (import "env" "memory" (memory $0 256)) - (import "env" "table" (table 8 8 anyfunc)) - (import "env" "memoryBase" (global $memoryBase i32)) - (import "env" "tableBase" (global $tableBase i32)) (global $r (mut i32) (get_global $r$asm2wasm$import)) (global $s (mut i32) (get_global $s$asm2wasm$import)) (global $t (mut i32) (get_global $t$asm2wasm$import)) @@ -58,6 +58,7 @@ (global $T (mut i32) (i32.const 0)) (global $za (mut f64) (f64.const 0)) (elem (get_global $tableBase) $nb $Oa $ob $Va $Ua $Ra $pb $Sa) + (export "__growWasmMemory" (func $__growWasmMemory)) (export "_free" (func $fb)) (export "_main" (func $Na)) (export "_pthread_self" (func $ib)) @@ -77,8 +78,12 @@ (export "dynCall_ii" (func $kb)) (export "dynCall_iiii" (func $lb)) (export "dynCall_vi" (func $mb)) - (export "__growWasmMemory" (func $__growWasmMemory)) - (func $eb (; 12 ;) (param $a i32) (result i32) + (func $__growWasmMemory (; 12 ;) (param $newSize i32) (result i32) + (grow_memory + (get_local $newSize) + ) + ) + (func $eb (; 13 ;) (param $a i32) (result i32) (local $b i32) (local $c i32) (local $d i32) @@ -7094,7 +7099,7 @@ (get_local $p) ) ) - (func $fb (; 13 ;) (param $a i32) + (func $fb (; 14 ;) (param $a i32) (local $b i32) (local $c i32) (local $d i32) @@ -9286,7 +9291,7 @@ ) (return) ) - (func $Ra (; 14 ;) (param $a i32) (param $b i32) (param $c i32) (result i32) + (func $Ra (; 15 ;) (param $a i32) (param $b i32) (param $c i32) (result i32) (local $d i32) (local $e i32) (local $f i32) @@ -9751,7 +9756,7 @@ (get_local $z) ) ) - (func $Wa (; 15 ;) (param $a i32) (param $b i32) (param $c i32) (result i32) + (func $Wa (; 16 ;) (param $a i32) (param $b i32) (param $c i32) (result i32) (local $d i32) (local $e i32) (local $f i32) @@ -10020,7 +10025,7 @@ (get_local $h) ) ) - (func $Za (; 16 ;) (param $a i32) (result i32) + (func $Za (; 17 ;) (param $a i32) (result i32) (local $b i32) (local $c i32) (local $d i32) @@ -10219,7 +10224,7 @@ ) ) ) - (func $_a (; 17 ;) (param $a i32) (result i32) + (func $_a (; 18 ;) (param $a i32) (result i32) (local $b i32) (local $c i32) (local $d i32) @@ -10414,7 +10419,7 @@ (get_local $h) ) ) - (func $ab (; 18 ;) (param $a i32) (param $b i32) (result i32) + (func $ab (; 19 ;) (param $a i32) (param $b i32) (result i32) (local $c i32) (local $d i32) (local $e i32) @@ -10590,7 +10595,7 @@ (get_local $m) ) ) - (func $$a (; 19 ;) (param $a i32) (result i32) + (func $$a (; 20 ;) (param $a i32) (result i32) (local $b i32) (local $c i32) (local $d i32) @@ -10745,7 +10750,7 @@ (get_local $d) ) ) - (func $jb (; 20 ;) (param $a i32) (param $b i32) (param $c i32) (result i32) + (func $jb (; 21 ;) (param $a i32) (param $b i32) (param $c i32) (result i32) (local $d i32) (if (i32.ge_s @@ -10909,10 +10914,10 @@ (get_local $d) ) ) - (func $gb (; 21 ;) + (func $gb (; 22 ;) (nop) ) - (func $hb (; 22 ;) (param $a i32) (param $b i32) (param $c i32) (result i32) + (func $hb (; 23 ;) (param $a i32) (param $b i32) (param $c i32) (result i32) (local $d i32) (local $e i32) (local $f i32) @@ -11072,7 +11077,7 @@ ) ) ) - (func $db (; 23 ;) (param $a i32) (result i32) + (func $db (; 24 ;) (param $a i32) (result i32) (local $b i32) (local $c i32) (local $d i32) @@ -11195,7 +11200,7 @@ ) ) ) - (func $Xa (; 24 ;) (param $a i32) (result i32) + (func $Xa (; 25 ;) (param $a i32) (result i32) (local $b i32) (local $c i32) (local $d i32) @@ -11305,7 +11310,7 @@ (get_local $d) ) ) - (func $i32u-div (; 25 ;) (param $0 i32) (param $1 i32) (result i32) + (func $i32u-div (; 26 ;) (param $0 i32) (param $1 i32) (result i32) (if (result i32) (i32.eqz (get_local $1) @@ -11317,7 +11322,7 @@ ) ) ) - (func $bb (; 26 ;) (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32) + (func $bb (; 27 ;) (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32) (local $e i32) (local $f i32) (local $g i32) @@ -11397,7 +11402,7 @@ (get_local $i) ) ) - (func $Ua (; 27 ;) (param $a i32) (param $b i32) (param $c i32) (result i32) + (func $Ua (; 28 ;) (param $a i32) (param $b i32) (param $c i32) (result i32) (local $d i32) (local $e i32) (local $f i32) @@ -11489,7 +11494,7 @@ (get_local $g) ) ) - (func $Va (; 28 ;) (param $a i32) (param $b i32) (param $c i32) (result i32) + (func $Va (; 29 ;) (param $a i32) (param $b i32) (param $c i32) (result i32) (local $d i32) (local $e i32) (set_local $d @@ -11576,7 +11581,7 @@ (get_local $e) ) ) - (func $Ka (; 29 ;) (param $a i32) + (func $Ka (; 30 ;) (param $a i32) (i32.store8 (get_global $t) (i32.load8_s @@ -11668,7 +11673,7 @@ ) ) ) - (func $Oa (; 30 ;) (param $a i32) (result i32) + (func $Oa (; 31 ;) (param $a i32) (result i32) (local $b i32) (local $c i32) (set_local $b @@ -11707,7 +11712,7 @@ (get_local $a) ) ) - (func $Pa (; 31 ;) (param $a i32) (result i32) + (func $Pa (; 32 ;) (param $a i32) (result i32) (local $b i32) (local $c i32) (if @@ -11738,7 +11743,7 @@ (get_local $c) ) ) - (func $Ja (; 32 ;) (param $a i32) + (func $Ja (; 33 ;) (param $a i32) (i32.store8 (get_global $t) (i32.load8_s @@ -11782,7 +11787,7 @@ ) ) ) - (func $Qa (; 33 ;) (result i32) + (func $Qa (; 34 ;) (result i32) (local $a i32) (local $b i32) (if @@ -11812,7 +11817,7 @@ (get_local $a) ) ) - (func $lb (; 34 ;) (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32) + (func $lb (; 35 ;) (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32) (return (call_indirect (type $FUNCSIG$iiii) (get_local $b) @@ -11828,7 +11833,7 @@ ) ) ) - (func $Ea (; 35 ;) (param $a i32) (result i32) + (func $Ea (; 36 ;) (param $a i32) (result i32) (local $b i32) (set_local $b (get_global $r) @@ -11852,7 +11857,7 @@ (get_local $b) ) ) - (func $cb (; 36 ;) (param $a i32) (param $b i32) (result i32) + (func $cb (; 37 ;) (param $a i32) (param $b i32) (result i32) (return (i32.add (call $bb @@ -11867,7 +11872,7 @@ ) ) ) - (func $ob (; 37 ;) (param $a i32) (param $b i32) (param $c i32) (result i32) + (func $ob (; 38 ;) (param $a i32) (param $b i32) (param $c i32) (result i32) (call $ja (i32.const 1) ) @@ -11875,7 +11880,7 @@ (i32.const 0) ) ) - (func $Ia (; 38 ;) (param $a i32) (param $b i32) + (func $Ia (; 39 ;) (param $a i32) (param $b i32) (if (i32.eqz (get_global $v) @@ -11890,7 +11895,7 @@ ) ) ) - (func $kb (; 39 ;) (param $a i32) (param $b i32) (result i32) + (func $kb (; 40 ;) (param $a i32) (param $b i32) (result i32) (return (call_indirect (type $FUNCSIG$ii) (get_local $b) @@ -11904,7 +11909,7 @@ ) ) ) - (func $Sa (; 40 ;) (param $a i32) + (func $Sa (; 41 ;) (param $a i32) (if (i32.eqz (i32.load @@ -11920,7 +11925,7 @@ ) (return) ) - (func $mb (; 41 ;) (param $a i32) (param $b i32) + (func $mb (; 42 ;) (param $a i32) (param $b i32) (call_indirect (type $FUNCSIG$vi) (get_local $b) (i32.add @@ -11932,7 +11937,7 @@ ) ) ) - (func $Ha (; 42 ;) (param $a i32) (param $b i32) + (func $Ha (; 43 ;) (param $a i32) (param $b i32) (set_global $r (get_local $a) ) @@ -11940,7 +11945,7 @@ (get_local $b) ) ) - (func $nb (; 43 ;) (param $a i32) (result i32) + (func $nb (; 44 ;) (param $a i32) (result i32) (call $ja (i32.const 0) ) @@ -11948,7 +11953,7 @@ (i32.const 0) ) ) - (func $Na (; 44 ;) (result i32) + (func $Na (; 45 ;) (result i32) (drop (call $db (i32.const 1144) @@ -11958,47 +11963,42 @@ (i32.const 0) ) ) - (func $Ya (; 45 ;) (param $a i32) (result i32) + (func $Ya (; 46 ;) (param $a i32) (result i32) (return (i32.const 0) ) ) - (func $Ta (; 46 ;) (param $a i32) + (func $Ta (; 47 ;) (param $a i32) (return) ) - (func $pb (; 47 ;) (param $a i32) + (func $pb (; 48 ;) (param $a i32) (call $ja (i32.const 2) ) ) - (func $La (; 48 ;) (param $a i32) + (func $La (; 49 ;) (param $a i32) (set_global $K (get_local $a) ) ) - (func $Ga (; 49 ;) (param $a i32) + (func $Ga (; 50 ;) (param $a i32) (set_global $r (get_local $a) ) ) - (func $Ma (; 50 ;) (result i32) + (func $Ma (; 51 ;) (result i32) (return (get_global $K) ) ) - (func $Fa (; 51 ;) (result i32) + (func $Fa (; 52 ;) (result i32) (return (get_global $r) ) ) - (func $ib (; 52 ;) (result i32) + (func $ib (; 53 ;) (result i32) (return (i32.const 0) ) ) - (func $__growWasmMemory (; 53 ;) (param $newSize i32) (result i32) - (grow_memory - (get_local $newSize) - ) - ) ) |