blob: 6a7557e88d709013446cfb135cd8bcf24f33ba72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
(module
(type $0 (func))
(import "env" "STACKTOP" (global $STACKTOP$asm2wasm$import i32))
(import "env" "STACK_MAX" (global $STACK_MAX$asm2wasm$import i32))
(import "env" "tempDoublePtr" (global $tempDoublePtr i32))
(global $mine (mut i32) (i32.const 1))
(global $STACKTOP (mut i32) (get_global $STACKTOP$asm2wasm$import))
(global $STACK_MAX (mut i32) (get_global $STACK_MAX$asm2wasm$import))
(global $do-not-use (mut i32) (get_global $tempDoublePtr))
(memory $0 256 256)
(data (i32.const 10) "wasa waka waka waka waka")
(export "test1" (func $test1))
(export "test2" (func $test2))
(export "test3" (func $test3))
(func $test1 (; 0 ;) (type $0)
(local $temp i32)
(nop)
)
(func $test2 (; 1 ;) (type $0)
(set_global $tempDoublePtr
(i32.const 1)
)
(i32.store8
(i32.const 13)
(i32.const 115)
)
)
(func $test3 (; 2 ;) (type $0)
(i32.store8
(i32.const 14)
(i32.const 115)
)
)
)
|