summaryrefslogtreecommitdiff
path: root/test/memorygrowth.fromasm
diff options
context:
space:
mode:
Diffstat (limited to 'test/memorygrowth.fromasm')
-rw-r--r--test/memorygrowth.fromasm94
1 files changed, 47 insertions, 47 deletions
diff --git a/test/memorygrowth.fromasm b/test/memorygrowth.fromasm
index c556c8896..c807bf937 100644
--- a/test/memorygrowth.fromasm
+++ b/test/memorygrowth.fromasm
@@ -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" "abort" (func $ja (param i32)))
@@ -19,10 +23,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 $v (mut i32) (i32.const 0))
@@ -30,6 +30,7 @@
(global $K (mut i32) (i32.const 0))
(elem (get_global $tableBase) $nb $Oa $ob $Va $Ua $Ra $pb $Sa)
(data (get_global $memoryBase) "memorygrowth.asm.js")
+ (export "__growWasmMemory" (func $__growWasmMemory))
(export "_free" (func $fb))
(export "_main" (func $Na))
(export "_pthread_self" (func $ib))
@@ -49,8 +50,12 @@
(export "dynCall_ii" (func $kb))
(export "dynCall_iiii" (func $lb))
(export "dynCall_vi" (func $mb))
- (export "__growWasmMemory" (func $__growWasmMemory))
- (func $eb (; 12 ;) (param $0 i32) (result i32)
+ (func $__growWasmMemory (; 12 ;) (param $0 i32) (result i32)
+ (grow_memory
+ (get_local $0)
+ )
+ )
+ (func $eb (; 13 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -5905,7 +5910,7 @@
(i32.const 8)
)
)
- (func $fb (; 13 ;) (param $0 i32)
+ (func $fb (; 14 ;) (param $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -7736,7 +7741,7 @@
(i32.const -1)
)
)
- (func $Ra (; 14 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $Ra (; 15 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -8110,7 +8115,7 @@
)
(get_local $15)
)
- (func $Wa (; 15 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $Wa (; 16 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -8322,7 +8327,7 @@
)
(get_local $4)
)
- (func $Za (; 16 ;) (param $0 i32) (result i32)
+ (func $Za (; 17 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -8466,7 +8471,7 @@
(get_local $3)
)
)
- (func $_a (; 17 ;) (param $0 i32) (result i32)
+ (func $_a (; 18 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(block $do-once
@@ -8603,7 +8608,7 @@
)
(get_local $1)
)
- (func $ab (; 18 ;) (param $0 i32) (param $1 i32) (result i32)
+ (func $ab (; 19 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@@ -8752,7 +8757,7 @@
)
(get_local $4)
)
- (func $$a (; 19 ;) (param $0 i32) (result i32)
+ (func $$a (; 20 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -8887,7 +8892,7 @@
)
(get_local $2)
)
- (func $jb (; 20 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $jb (; 21 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(if
(i32.ge_s
@@ -9034,10 +9039,10 @@
)
(get_local $3)
)
- (func $gb (; 21 ;)
+ (func $gb (; 22 ;)
(nop)
)
- (func $hb (; 22 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $hb (; 23 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -9175,7 +9180,7 @@
(get_local $2)
)
)
- (func $db (; 23 ;) (param $0 i32) (result i32)
+ (func $db (; 24 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -9284,7 +9289,7 @@
(i32.const 31)
)
)
- (func $Xa (; 24 ;) (param $0 i32) (result i32)
+ (func $Xa (; 25 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $2
@@ -9362,7 +9367,7 @@
)
)
)
- (func $bb (; 25 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $bb (; 26 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(local $4 i32)
(local $5 i32)
(set_local $4
@@ -9428,7 +9433,7 @@
)
(get_local $2)
)
- (func $Ua (; 26 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $Ua (; 27 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(set_local $4
@@ -9497,7 +9502,7 @@
)
(get_local $0)
)
- (func $Va (; 27 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $Va (; 28 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(set_local $4
@@ -9567,7 +9572,7 @@
)
(get_local $3)
)
- (func $Oa (; 28 ;) (param $0 i32) (result i32)
+ (func $Oa (; 29 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $1
@@ -9600,7 +9605,7 @@
)
(get_local $0)
)
- (func $Pa (; 29 ;) (param $0 i32) (result i32)
+ (func $Pa (; 30 ;) (param $0 i32) (result i32)
(if (result i32)
(i32.gt_u
(get_local $0)
@@ -9619,7 +9624,7 @@
(get_local $0)
)
)
- (func $Qa (; 30 ;) (result i32)
+ (func $Qa (; 31 ;) (result i32)
(if (result i32)
(i32.load
(i32.const 1160)
@@ -9630,7 +9635,7 @@
(i32.const 1204)
)
)
- (func $lb (; 31 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $lb (; 32 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(call_indirect (type $FUNCSIG$iiii)
(get_local $1)
(get_local $2)
@@ -9644,7 +9649,7 @@
)
)
)
- (func $Ea (; 32 ;) (param $0 i32) (result i32)
+ (func $Ea (; 33 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(get_global $r)
@@ -9666,13 +9671,13 @@
)
(get_local $1)
)
- (func $ob (; 33 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $ob (; 34 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(call $ja
(i32.const 1)
)
(i32.const 0)
)
- (func $Ia (; 34 ;) (param $0 i32) (param $1 i32)
+ (func $Ia (; 35 ;) (param $0 i32) (param $1 i32)
(if
(i32.eqz
(get_global $v)
@@ -9687,7 +9692,7 @@
)
)
)
- (func $kb (; 35 ;) (param $0 i32) (param $1 i32) (result i32)
+ (func $kb (; 36 ;) (param $0 i32) (param $1 i32) (result i32)
(call_indirect (type $FUNCSIG$ii)
(get_local $1)
(i32.and
@@ -9696,7 +9701,7 @@
)
)
)
- (func $Sa (; 36 ;) (param $0 i32)
+ (func $Sa (; 37 ;) (param $0 i32)
(if
(i32.eqz
(i32.load offset=68
@@ -9708,7 +9713,7 @@
)
)
)
- (func $mb (; 37 ;) (param $0 i32) (param $1 i32)
+ (func $mb (; 38 ;) (param $0 i32) (param $1 i32)
(call_indirect (type $FUNCSIG$vi)
(get_local $1)
(i32.add
@@ -9720,7 +9725,7 @@
)
)
)
- (func $Ha (; 38 ;) (param $0 i32) (param $1 i32)
+ (func $Ha (; 39 ;) (param $0 i32) (param $1 i32)
(set_global $r
(get_local $0)
)
@@ -9728,13 +9733,13 @@
(get_local $1)
)
)
- (func $nb (; 39 ;) (param $0 i32) (result i32)
+ (func $nb (; 40 ;) (param $0 i32) (result i32)
(call $ja
(i32.const 0)
)
(i32.const 0)
)
- (func $Na (; 40 ;) (result i32)
+ (func $Na (; 41 ;) (result i32)
(drop
(call $db
(i32.const 1144)
@@ -9742,39 +9747,34 @@
)
(i32.const 0)
)
- (func $Ya (; 41 ;) (param $0 i32) (result i32)
+ (func $Ya (; 42 ;) (param $0 i32) (result i32)
(i32.const 0)
)
- (func $Ta (; 42 ;) (param $0 i32)
+ (func $Ta (; 43 ;) (param $0 i32)
(nop)
)
- (func $pb (; 43 ;) (param $0 i32)
+ (func $pb (; 44 ;) (param $0 i32)
(call $ja
(i32.const 2)
)
)
- (func $La (; 44 ;) (param $0 i32)
+ (func $La (; 45 ;) (param $0 i32)
(set_global $K
(get_local $0)
)
)
- (func $Ga (; 45 ;) (param $0 i32)
+ (func $Ga (; 46 ;) (param $0 i32)
(set_global $r
(get_local $0)
)
)
- (func $Ma (; 46 ;) (result i32)
+ (func $Ma (; 47 ;) (result i32)
(get_global $K)
)
- (func $Fa (; 47 ;) (result i32)
+ (func $Fa (; 48 ;) (result i32)
(get_global $r)
)
- (func $ib (; 48 ;) (result i32)
+ (func $ib (; 49 ;) (result i32)
(i32.const 0)
)
- (func $__growWasmMemory (; 49 ;) (param $newSize i32) (result i32)
- (grow_memory
- (get_local $newSize)
- )
- )
)