File: component.wat

package info (click to toggle)
rustc 1.85.0%2Bdfsg2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 893,176 kB
  • sloc: xml: 158,127; python: 35,830; javascript: 19,497; cpp: 19,002; sh: 17,245; ansic: 13,127; asm: 4,376; makefile: 1,051; lisp: 29; perl: 29; ruby: 19; sql: 11
file content (118 lines) | stat: -rw-r--r-- 3,498 bytes parent folder | download | duplicates (4)
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
(component
  (type (;0;)
    (instance
      (type (;0;) (func (param "x" u64) (param "y" string)))
      (export (;0;) "a" (func (type 0)))
    )
  )
  (import "foo:foo/bar" (instance (;0;) (type 0)))
  (type (;1;)
    (instance
      (type (;0;) (list u8))
      (type (;1;) (func (param "x" 0) (result 0)))
      (export (;0;) "baz" (func (type 1)))
    )
  )
  (import "foo:foo/baz" (instance (;1;) (type 1)))
  (type (;2;)
    (instance
      (type (;0;) (func))
      (export (;0;) "a" (func (type 0)))
    )
  )
  (import "foo:foo/foo" (instance (;2;) (type 2)))
  (core module (;0;)
    (type (;0;) (func))
    (type (;1;) (func (param i64 i32 i32)))
    (type (;2;) (func (param i32 i32 i32)))
    (type (;3;) (func (param i32 i32 i32 i32) (result i32)))
    (import "foo:foo/foo" "a" (func (;0;) (type 0)))
    (import "foo:foo/bar" "a" (func (;1;) (type 1)))
    (import "foo:foo/baz" "baz" (func (;2;) (type 2)))
    (memory (;0;) 1)
    (export "memory" (memory 0))
    (export "cabi_realloc" (func 3))
    (func (;3;) (type 3) (param i32 i32 i32 i32) (result i32)
      unreachable
    )
    (@producers
      (processed-by "wit-component" "$CARGO_PKG_VERSION")
      (processed-by "my-fake-bindgen" "123.45")
    )
  )
  (core module (;1;)
    (type (;0;) (func (param i64 i32 i32)))
    (type (;1;) (func (param i32 i32 i32)))
    (table (;0;) 2 2 funcref)
    (export "0" (func $indirect-foo:foo/bar-a))
    (export "1" (func $indirect-foo:foo/baz-baz))
    (export "$imports" (table 0))
    (func $indirect-foo:foo/bar-a (;0;) (type 0) (param i64 i32 i32)
      local.get 0
      local.get 1
      local.get 2
      i32.const 0
      call_indirect (type 0)
    )
    (func $indirect-foo:foo/baz-baz (;1;) (type 1) (param i32 i32 i32)
      local.get 0
      local.get 1
      local.get 2
      i32.const 1
      call_indirect (type 1)
    )
    (@producers
      (processed-by "wit-component" "$CARGO_PKG_VERSION")
    )
  )
  (core module (;2;)
    (type (;0;) (func (param i64 i32 i32)))
    (type (;1;) (func (param i32 i32 i32)))
    (import "" "0" (func (;0;) (type 0)))
    (import "" "1" (func (;1;) (type 1)))
    (import "" "$imports" (table (;0;) 2 2 funcref))
    (elem (;0;) (i32.const 0) func 0 1)
    (@producers
      (processed-by "wit-component" "$CARGO_PKG_VERSION")
    )
  )
  (core instance (;0;) (instantiate 1))
  (alias export 2 "a" (func (;0;)))
  (core func (;0;) (canon lower (func 0)))
  (core instance (;1;)
    (export "a" (func 0))
  )
  (alias core export 0 "0" (core func (;1;)))
  (core instance (;2;)
    (export "a" (func 1))
  )
  (alias core export 0 "1" (core func (;2;)))
  (core instance (;3;)
    (export "baz" (func 2))
  )
  (core instance (;4;) (instantiate 0
      (with "foo:foo/foo" (instance 1))
      (with "foo:foo/bar" (instance 2))
      (with "foo:foo/baz" (instance 3))
    )
  )
  (alias core export 4 "memory" (core memory (;0;)))
  (alias core export 0 "$imports" (core table (;0;)))
  (alias export 0 "a" (func (;1;)))
  (alias core export 4 "cabi_realloc" (core func (;3;)))
  (core func (;4;) (canon lower (func 1) (memory 0) string-encoding=utf8))
  (alias export 1 "baz" (func (;2;)))
  (core func (;5;) (canon lower (func 2) (memory 0) (realloc 3)))
  (core instance (;5;)
    (export "$imports" (table 0))
    (export "0" (func 4))
    (export "1" (func 5))
  )
  (core instance (;6;) (instantiate 2
      (with "" (instance 5))
    )
  )
  (@producers
    (processed-by "wit-component" "$CARGO_PKG_VERSION")
  )
)