summaryrefslogtreecommitdiff
path: root/test/dump/loop.txt
blob: b4e972664ec66fd3f669e29f78a706e36f581916 (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
;;; FLAGS: -dv
(module
  (func
    (loop
      (nop)
      (nop))))
(;; STDOUT ;;;
0000000: 00                                         ; WASM_SECTION_MEMORY
0000001: 00                                         ; min mem size log 2
0000002: 00                                         ; max mem size log 2
0000003: 01                                         ; export mem
0000004: 01                                         ; WASM_SECTION_SIGNATURES
0000005: 01                                         ; num signatures
; signature 0
0000006: 00                                         ; num args
0000007: 00                                         ; result_type
0000008: 02                                         ; WASM_SECTION_FUNCTIONS
0000009: 01                                         ; num functions
; function 0
000000a: 01                                         ; func flags
000000b: 0000                                       ; func signature index
000000d: 0000 0000                                  ; func name offset
0000011: 0000                                       ; func body size
0000013: 02                                         ; OPCODE_LOOP
0000014: 00                                         ; num expressions
0000015: 00                                         ; OPCODE_NOP
0000016: 00                                         ; OPCODE_NOP
0000017: 06                                         ; OPCODE_BR
0000018: 00                                         ; branch to the top of the loop
0000019: 00                                         ; OPCODE_NOP
0000014: 03                                         ; FIXUP num expressions
0000011: 0700                                       ; FIXUP func body size
000001a: 06                                         ; WASM_SECTION_END
; names
0000000: 0000 0001 0101 0000 0201 0100 0000 0000  ................
0000010: 0007 0002 0300 0006 0000 06              ...........
;;; STDOUT ;;)