blob: 8e850d5ba74c2e52384ebaac4481ecc97125c323 (
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
|
;;; TOOL: run-objdump
;;; FLAGS: -v --headers --enable-exceptions
(module
(except $ex i32)
(func (result i32)
try $try1 (result i32)
nop
i32.const 7
catch $ex
nop
catch_all
rethrow $try1
end
)
)
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "Type" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
000000a: 01 ; num types
; type 0
000000b: 60 ; func
000000c: 00 ; num params
000000d: 01 ; num results
000000e: 7f ; i32
0000009: 05 ; FIXUP section size
; section "Function" (3)
000000f: 03 ; section code
0000010: 00 ; section size (guess)
0000011: 01 ; num functions
0000012: 00 ; function 0 signature index
0000010: 02 ; FIXUP section size
; section "exception"
0000013: 00 ; section code
0000014: 00 ; section size (guess)
0000015: 09 ; string length
0000016: 6578 6365 7074 696f 6e exception ; custom section name
000001f: 01 ; exception count
0000020: 01 ; exception type count
0000021: 7f ; i32
0000014: 0d ; FIXUP section size
; section "Code" (10)
0000022: 0a ; section code
0000023: 00 ; section size (guess)
0000024: 01 ; num functions
; function body 0
0000025: 00 ; func body size (guess)
0000026: 00 ; local decl count
0000027: 06 ; try
0000028: 7f ; i32
0000029: 01 ; nop
000002a: 41 ; i32.const
000002b: 07 ; i32 literal
000002c: 07 ; catch
000002d: 00 ; catch exception
000002e: 01 ; nop
000002f: 0a ; catch_all
0000030: 09 ; rethrow
0000031: 00 ; rethrow depth
0000032: 0b ; end
0000033: 0b ; end
0000025: 0e ; FIXUP func body size
0000023: 10 ; FIXUP section size
try.wasm: file format wasm 0x1
Sections:
Type start=0x0000000a end=0x0000000f (size=0x00000005) count: 1
Function start=0x00000011 end=0x00000013 (size=0x00000002) count: 1
Custom start=0x00000015 end=0x00000022 (size=0x0000000d) "exception"
count: 1
Code start=0x00000024 end=0x00000034 (size=0x00000010) count: 1
Code Disassembly:
000025 func[0]:
000027: 06 7f | try i32
000029: 01 | nop
00002a: 41 07 | i32.const 7
00002c: 07 00 | catch 0
00002e: 01 | nop
00002f: 0a | catch_all
000030: 09 00 | rethrow 0
000032: 0b | end
000033: 0b | end
;;; STDOUT ;;)
|