blob: 0769e270bbf59aa0b37f1d22fcd1c88b79448c99 (
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
(select (i32.const 2) (i32.const 3) (i32.const 1))
(select (i64.const 2) (i64.const 3) (i32.const 1))
(select (f32.const 2) (f32.const 3) (i32.const 1))
(select (f64.const 2) (f64.const 3) (i32.const 1))))
(;; 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: 05 ; OPCODE_SELECT
0000014: 09 ; OPCODE_I8_CONST
0000015: 02 ; u8 literal
0000016: 09 ; OPCODE_I8_CONST
0000017: 03 ; u8 literal
0000018: 09 ; OPCODE_I8_CONST
0000019: 01 ; u8 literal
000001a: 05 ; OPCODE_SELECT
000001b: 0b ; OPCODE_I64_CONST
000001c: 0200 0000 0000 0000 ; u64 literal
0000024: 0b ; OPCODE_I64_CONST
0000025: 0300 0000 0000 0000 ; u64 literal
000002d: 09 ; OPCODE_I8_CONST
000002e: 01 ; u8 literal
000002f: 05 ; OPCODE_SELECT
0000030: 0d ; OPCODE_F32_CONST
0000031: 0000 0040 ; f32 literal
0000035: 0d ; OPCODE_F32_CONST
0000036: 0000 4040 ; f32 literal
000003a: 09 ; OPCODE_I8_CONST
000003b: 01 ; u8 literal
000003c: 05 ; OPCODE_SELECT
000003d: 0c ; OPCODE_F64_CONST
000003e: 0000 0000 0000 0040 ; f64 literal
0000046: 0c ; OPCODE_F64_CONST
0000047: 0000 0000 0000 0840 ; f64 literal
000004f: 09 ; OPCODE_I8_CONST
0000050: 01 ; u8 literal
0000011: 3e00 ; FIXUP func body size
0000051: 06 ; WASM_BINARY_SECTION_END
;; dump
0000000: 0061 736d 0a00 0000 0101 0000 0201 0000
0000010: 003e 0005 0902 0903 0901 050b 0200 0000
0000020: 0000 0000 0b03 0000 0000 0000 0009 0105
0000030: 0d00 0000 400d 0000 4040 0901 050c 0000
0000040: 0000 0000 0040 0c00 0000 0000 0008 4009
0000050: 0106
;;; STDOUT ;;)
|