Debian Codegraph @

crates/wit-component/tests/components/adapt-memory-simple/component.wat

raw
1 (component
2 (type (;0;)
3 (instance
4 (type (;0;) (func (param "s" string)))
5 (export (;0;) "log" (func (type 0)))
6 )
7 )
8 (import "new" (instance (;0;) (type 0)))
9 (core module (;0;)
10 (type (;0;) (func (param i32 i32)))
11 (import "old" "log" (func (;0;) (type 0)))
12 (memory (;0;) 1)
13 (export "memory" (memory 0))
14 (@producers
15 (processed-by "wit-component" "$CARGO_PKG_VERSION")
16 (processed-by "my-fake-bindgen" "123.45")
17 )
18 )
19 (core module (;1;)
20 (type (;0;) (func (param i32 i32)))
21 (import "new" "log" (func $log (;0;) (type 0)))
22 (export "log" (func $log))
23 )
24 (core module (;2;)
25 (type (;0;) (func (param i32 i32)))
26 (type (;1;) (func (param i32 i32)))
27 (table (;0;) 2 2 funcref)
28 (export "0" (func $adapt-old-log))
29 (export "1" (func $indirect-new-log))
30 (export "$imports" (table 0))
31 (func $adapt-old-log (;0;) (type 0) (param i32 i32)
32 local.get 0
33 local.get 1
34 i32.const 0
35 call_indirect (type 0)
36 )
37 (func $indirect-new-log (;1;) (type 1) (param i32 i32)
38 local.get 0
39 local.get 1
40 i32.const 1
41 call_indirect (type 1)
42 )
43 (@producers
44 (processed-by "wit-component" "$CARGO_PKG_VERSION")
45 )
46 )
47 (core module (;3;)
48 (type (;0;) (func (param i32 i32)))
49 (type (;1;) (func (param i32 i32)))
50 (import "" "0" (func (;0;) (type 0)))
51 (import "" "1" (func (;1;) (type 1)))
52 (import "" "$imports" (table (;0;) 2 2 funcref))
53 (elem (;0;) (i32.const 0) func 0 1)
54 (@producers
55 (processed-by "wit-component" "$CARGO_PKG_VERSION")
56 )
57 )
58 (core instance (;0;) (instantiate 2))
59 (alias core export 0 "0" (core func (;0;)))
60 (core instance (;1;)
61 (export "log" (func 0))
62 )
63 (core instance (;2;) (instantiate 0
64 (with "old" (instance 1))
65 )
66 )
67 (alias core export 2 "memory" (core memory (;0;)))
68 (alias core export 0 "1" (core func (;1;)))
69 (core instance (;3;)
70 (export "log" (func 1))
71 )
72 (core instance (;4;) (instantiate 1
73 (with "new" (instance 3))
74 )
75 )
76 (alias core export 0 "$imports" (core table (;0;)))
77 (alias core export 4 "log" (core func (;2;)))
78 (alias export 0 "log" (func (;0;)))
79 (core func (;3;) (canon lower (func 0) (memory 0) string-encoding=utf8))
80 (core instance (;5;)
81 (export "$imports" (table 0))
82 (export "0" (func 2))
83 (export "1" (func 3))
84 )
85 (core instance (;6;) (instantiate 3
86 (with "" (instance 5))
87 )
88 )
89 (@producers
90 (processed-by "wit-component" "$CARGO_PKG_VERSION")
91 )
92 )