blob: 4de6364953d5e75b538a7d97b289df34206b4fe2 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
;;; FLAGS: -dv
(module
(func
(i32.load (i32.const 0))
(i32.load8_s (i32.const 0))
(i32.load16_s (i32.const 0))
(i32.load8_u (i32.const 0))
(i32.load16_u (i32.const 0))
(i64.load (i32.const 0))
(i64.load8_s (i32.const 0))
(i64.load16_s (i32.const 0))
(i64.load32_s (i32.const 0))
(i64.load8_u (i32.const 0))
(i64.load16_u (i32.const 0))
(i64.load32_u (i32.const 0))
(f32.load (i32.const 0))
(f64.load (i32.const 0))))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
0000004: 0a00 0000 ; WASM_BINARY_VERSION
; section "signatures"
0000008: 00 ; section size (guess)
0000009: 0a ; string length
000000a: 7369 676e 6174 7572 6573 ; section id: "signatures"
0000014: 01 ; num signatures
; signature 0
0000015: 00 ; num params
0000016: 00 ; result_type
0000008: 0e ; FIXUP section size
; section "function_signatures"
0000017: 00 ; section size (guess)
0000018: 13 ; string length
0000019: 6675 6e63 7469 6f6e 5f73 6967 6e61 7475
0000029: 7265 73 ; section id: "function_signatures"
000002c: 01 ; num functions
000002d: 00 ; function 0 signature index
0000017: 16 ; FIXUP section size
; section "function_bodies"
000002e: 00 ; section size (guess)
000002f: 0f ; string length
0000030: 6675 6e63 7469 6f6e 5f62 6f64 6965 73 ; section id: "function_bodies"
000003f: 01 ; num functions
; function body 0
0000040: 00 ; func body size (guess)
0000041: 00 ; local decl count
0000042: 2a ; OPCODE_I32_LOAD_MEM
0000043: 02 ; alignment
0000044: 00 ; load offset
0000045: 0a ; OPCODE_I32_CONST
0000046: 00 ; i32 literal
0000047: 20 ; OPCODE_I32_LOAD_MEM8_S
0000048: 00 ; alignment
0000049: 00 ; load offset
000004a: 0a ; OPCODE_I32_CONST
000004b: 00 ; i32 literal
000004c: 22 ; OPCODE_I32_LOAD_MEM16_S
000004d: 01 ; alignment
000004e: 00 ; load offset
000004f: 0a ; OPCODE_I32_CONST
0000050: 00 ; i32 literal
0000051: 21 ; OPCODE_I32_LOAD_MEM8_U
0000052: 00 ; alignment
0000053: 00 ; load offset
0000054: 0a ; OPCODE_I32_CONST
0000055: 00 ; i32 literal
0000056: 23 ; OPCODE_I32_LOAD_MEM16_U
0000057: 01 ; alignment
0000058: 00 ; load offset
0000059: 0a ; OPCODE_I32_CONST
000005a: 00 ; i32 literal
000005b: 2b ; OPCODE_I64_LOAD_MEM
000005c: 03 ; alignment
000005d: 00 ; load offset
000005e: 0a ; OPCODE_I32_CONST
000005f: 00 ; i32 literal
0000060: 24 ; OPCODE_I64_LOAD_MEM8_S
0000061: 00 ; alignment
0000062: 00 ; load offset
0000063: 0a ; OPCODE_I32_CONST
0000064: 00 ; i32 literal
0000065: 26 ; OPCODE_I64_LOAD_MEM16_S
0000066: 01 ; alignment
0000067: 00 ; load offset
0000068: 0a ; OPCODE_I32_CONST
0000069: 00 ; i32 literal
000006a: 28 ; OPCODE_I64_LOAD_MEM32_S
000006b: 02 ; alignment
000006c: 00 ; load offset
000006d: 0a ; OPCODE_I32_CONST
000006e: 00 ; i32 literal
000006f: 25 ; OPCODE_I64_LOAD_MEM8_U
0000070: 00 ; alignment
0000071: 00 ; load offset
0000072: 0a ; OPCODE_I32_CONST
0000073: 00 ; i32 literal
0000074: 27 ; OPCODE_I64_LOAD_MEM16_U
0000075: 01 ; alignment
0000076: 00 ; load offset
0000077: 0a ; OPCODE_I32_CONST
0000078: 00 ; i32 literal
0000079: 29 ; OPCODE_I64_LOAD_MEM32_U
000007a: 02 ; alignment
000007b: 00 ; load offset
000007c: 0a ; OPCODE_I32_CONST
000007d: 00 ; i32 literal
000007e: 2c ; OPCODE_F32_LOAD_MEM
000007f: 02 ; alignment
0000080: 00 ; load offset
0000081: 0a ; OPCODE_I32_CONST
0000082: 00 ; i32 literal
0000083: 2d ; OPCODE_F64_LOAD_MEM
0000084: 03 ; alignment
0000085: 00 ; load offset
0000086: 0a ; OPCODE_I32_CONST
0000087: 00 ; i32 literal
0000040: 47 ; FIXUP func body size
000002e: 59 ; FIXUP section size
; section "end"
0000088: 00 ; section size (guess)
0000089: 03 ; string length
000008a: 656e 64 ; section id: "end"
0000088: 04 ; FIXUP section size
;; dump
0000000: 0061 736d 0a00 0000 0e0a 7369 676e 6174
0000010: 7572 6573 0100 0016 1366 756e 6374 696f
0000020: 6e5f 7369 676e 6174 7572 6573 0100 590f
0000030: 6675 6e63 7469 6f6e 5f62 6f64 6965 7301
0000040: 4700 2a02 000a 0020 0000 0a00 2201 000a
0000050: 0021 0000 0a00 2301 000a 002b 0300 0a00
0000060: 2400 000a 0026 0100 0a00 2802 000a 0025
0000070: 0000 0a00 2701 000a 0029 0200 0a00 2c02
0000080: 000a 002d 0300 0a00 0403 656e 64
;;; STDOUT ;;)
|