blob: acf288fe04bdd021e2a52ef8d1b23ff9df41c9d3 (
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
|
;;; FLAGS: -dv
(module
(func
(block $outer ;; 3
(loop ;; 2
(block ;; 1
(i32.const 0)
(block $inner ;; 0
(br $inner)
(br $outer)))))))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
0000004: 0a00 0000 ; WASM_BINARY_VERSION
0000008: 01 ; WASM_BINARY_SECTION_SIGNATURES
0000009: 01 ; num signatures
; signature 0
000000a: 00 ; num params
000000b: 00 ; result_type
000000c: 02 ; WASM_BINARY_SECTION_FUNCTIONS
000000d: 01 ; num functions
; function 0
000000e: 00 ; func flags
000000f: 0000 ; func signature index
0000011: 0000 ; func body size
0000013: 01 ; OPCODE_BLOCK
0000014: 01 ; num expressions
0000015: 02 ; OPCODE_LOOP
0000016: 01 ; num expressions
0000017: 01 ; OPCODE_BLOCK
0000018: 02 ; num expressions
0000019: 09 ; OPCODE_I8_CONST
000001a: 00 ; u8 literal
000001b: 01 ; OPCODE_BLOCK
000001c: 02 ; num expressions
000001d: 06 ; OPCODE_BR
000001e: 00 ; break depth
000001f: 00 ; OPCODE_NOP
0000020: 06 ; OPCODE_BR
0000021: 04 ; break depth
0000022: 00 ; OPCODE_NOP
0000011: 1000 ; FIXUP func body size
0000023: 06 ; WASM_BINARY_SECTION_END
;; dump
0000000: 0061 736d 0a00 0000 0101 0000 0201 0000
0000010: 0010 0001 0102 0101 0209 0001 0206 0000
0000020: 0604 0006
;;; STDOUT ;;)
|