blob: 70f2224d90a80e5efb5c8a736412552f4b5c0108 (
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
|
;;; FLAGS: -dv
(module
(func
(loop $cont
(if (i32.const 1)
(br $cont)))))
(;; 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: 02 ; OPCODE_LOOP
0000043: 01 ; num expressions
0000044: 03 ; OPCODE_IF
0000045: 0a ; OPCODE_I32_CONST
0000046: 01 ; i32 literal
0000047: 01 ; OPCODE_BLOCK
0000048: 01 ; num expressions
0000049: 06 ; OPCODE_BR
000004a: 01 ; break depth
000004b: 00 ; OPCODE_NOP
0000040: 0b ; FIXUP func body size
000002e: 1d ; FIXUP section size
; section "end"
000004c: 00 ; section size (guess)
000004d: 03 ; string length
000004e: 656e 64 ; section id: "end"
000004c: 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 1d0f
0000030: 6675 6e63 7469 6f6e 5f62 6f64 6965 7301
0000040: 0b00 0201 030a 0101 0106 0100 0403 656e
0000050: 64
;;; STDOUT ;;)
|