268 lines
8.7 KiB
Plaintext
268 lines
8.7 KiB
Plaintext
(component
|
|
(core module $main (;0;)
|
|
(table (;0;) 1 funcref)
|
|
(memory (;0;) 17)
|
|
(global (;0;) (mut i32) i32.const 1048576)
|
|
(global (;1;) (mut i32) i32.const 0)
|
|
(global (;2;) (mut i32) i32.const 0)
|
|
(global (;3;) (mut i32) i32.const 1048576)
|
|
(global (;4;) (mut i32) i32.const 0)
|
|
(global (;5;) i32 i32.const 1048592)
|
|
(global (;6;) i32 i32.const 1)
|
|
(global (;7;) i32 i32.const 1048608)
|
|
(global (;8;) i32 i32.const 1)
|
|
(global (;9;) (mut i32) i32.const 1048624)
|
|
(global (;10;) (mut i32) i32.const 1114112)
|
|
(export "__stack_pointer" (global 0))
|
|
(export "__asyncify_state" (global 1))
|
|
(export "__asyncify_data" (global 2))
|
|
(export "__stack_high" (global 3))
|
|
(export "__stack_low" (global 4))
|
|
(export "bar:memory_base" (global 5))
|
|
(export "bar:table_base" (global 6))
|
|
(export "foo:memory_base" (global 7))
|
|
(export "foo:table_base" (global 8))
|
|
(export "__heap_base" (global 9))
|
|
(export "__heap_end" (global 10))
|
|
(export "__indirect_function_table" (table 0))
|
|
(export "memory" (memory 0))
|
|
(@producers
|
|
(processed-by "wit-component" "$CARGO_PKG_VERSION")
|
|
)
|
|
)
|
|
(core module $bar (;1;)
|
|
(@dylink.0
|
|
(mem-info (memory 1 4))
|
|
(needed "foo")
|
|
)
|
|
(type (;0;) (func))
|
|
(type (;1;) (func (param i32)))
|
|
(type (;2;) (func (result i32)))
|
|
(import "env" "__memory_base" (global $__memory_base (;0;) i32))
|
|
(import "env" "__table_base" (global $__table_base (;1;) i32))
|
|
(import "env" "__asyncify_state" (global (;2;) (mut i32)))
|
|
(import "env" "__asyncify_data" (global (;3;) (mut i32)))
|
|
(import "env" "memory" (memory (;0;) 1))
|
|
(import "env" "__indirect_function_table" (table (;0;) 0 funcref))
|
|
(export "test:test/test#bar" (func $bar))
|
|
(export "__wasm_apply_data_relocs" (func $__wasm_apply_data_relocs))
|
|
(export "asyncify_start_unwind" (func $asyncify_start_unwind))
|
|
(export "asyncify_stop_unwind" (func $asyncify_stop_unwind))
|
|
(export "asyncify_start_rewind" (func $asyncify_start_rewind))
|
|
(export "asyncify_stop_rewind" (func $asyncify_stop_rewind))
|
|
(export "asyncify_get_state" (func $asyncify_get_state))
|
|
(func $__wasm_call_ctors (;0;) (type 0))
|
|
(func $__wasm_apply_data_relocs (;1;) (type 0))
|
|
(func $asyncify_start_unwind (;2;) (type 1) (param i32)
|
|
i32.const 1
|
|
global.set 2
|
|
local.get 0
|
|
global.set 3
|
|
global.get 3
|
|
i32.load
|
|
global.get 3
|
|
i32.load offset=4
|
|
i32.gt_u
|
|
if ;; label = @1
|
|
unreachable
|
|
end
|
|
)
|
|
(func $asyncify_stop_unwind (;3;) (type 0)
|
|
i32.const 0
|
|
global.set 2
|
|
global.get 3
|
|
i32.load
|
|
global.get 3
|
|
i32.load offset=4
|
|
i32.gt_u
|
|
if ;; label = @1
|
|
unreachable
|
|
end
|
|
)
|
|
(func $asyncify_start_rewind (;4;) (type 1) (param i32)
|
|
i32.const 2
|
|
global.set 2
|
|
local.get 0
|
|
global.set 3
|
|
global.get 3
|
|
i32.load
|
|
global.get 3
|
|
i32.load offset=4
|
|
i32.gt_u
|
|
if ;; label = @1
|
|
unreachable
|
|
end
|
|
)
|
|
(func $asyncify_stop_rewind (;5;) (type 0)
|
|
i32.const 0
|
|
global.set 2
|
|
global.get 3
|
|
i32.load
|
|
global.get 3
|
|
i32.load offset=4
|
|
i32.gt_u
|
|
if ;; label = @1
|
|
unreachable
|
|
end
|
|
)
|
|
(func $asyncify_get_state (;6;) (type 2) (result i32)
|
|
global.get 2
|
|
)
|
|
(func $bar (;7;) (type 0))
|
|
(data $.bss (;0;) (global.get $__memory_base) "\00\00\00\00")
|
|
)
|
|
(core module $foo (;2;)
|
|
(@dylink.0
|
|
(mem-info (memory 1 4))
|
|
(needed "bar")
|
|
)
|
|
(type (;0;) (func))
|
|
(type (;1;) (func (param i32)))
|
|
(type (;2;) (func (result i32)))
|
|
(import "env" "__memory_base" (global $__memory_base (;0;) i32))
|
|
(import "env" "__table_base" (global $__table_base (;1;) i32))
|
|
(import "env" "__asyncify_state" (global (;2;) (mut i32)))
|
|
(import "env" "__asyncify_data" (global (;3;) (mut i32)))
|
|
(import "env" "memory" (memory (;0;) 1))
|
|
(import "env" "__indirect_function_table" (table (;0;) 0 funcref))
|
|
(export "__wasm_apply_data_relocs" (func $__wasm_apply_data_relocs))
|
|
(export "asyncify_start_unwind" (func $asyncify_start_unwind))
|
|
(export "asyncify_stop_unwind" (func $asyncify_stop_unwind))
|
|
(export "asyncify_start_rewind" (func $asyncify_start_rewind))
|
|
(export "asyncify_stop_rewind" (func $asyncify_stop_rewind))
|
|
(export "asyncify_get_state" (func $asyncify_get_state))
|
|
(func $__wasm_call_ctors (;0;) (type 0))
|
|
(func $__wasm_apply_data_relocs (;1;) (type 0))
|
|
(func $asyncify_start_unwind (;2;) (type 1) (param i32)
|
|
i32.const 1
|
|
global.set 2
|
|
local.get 0
|
|
global.set 3
|
|
global.get 3
|
|
i32.load
|
|
global.get 3
|
|
i32.load offset=4
|
|
i32.gt_u
|
|
if ;; label = @1
|
|
unreachable
|
|
end
|
|
)
|
|
(func $asyncify_stop_unwind (;3;) (type 0)
|
|
i32.const 0
|
|
global.set 2
|
|
global.get 3
|
|
i32.load
|
|
global.get 3
|
|
i32.load offset=4
|
|
i32.gt_u
|
|
if ;; label = @1
|
|
unreachable
|
|
end
|
|
)
|
|
(func $asyncify_start_rewind (;4;) (type 1) (param i32)
|
|
i32.const 2
|
|
global.set 2
|
|
local.get 0
|
|
global.set 3
|
|
global.get 3
|
|
i32.load
|
|
global.get 3
|
|
i32.load offset=4
|
|
i32.gt_u
|
|
if ;; label = @1
|
|
unreachable
|
|
end
|
|
)
|
|
(func $asyncify_stop_rewind (;5;) (type 0)
|
|
i32.const 0
|
|
global.set 2
|
|
global.get 3
|
|
i32.load
|
|
global.get 3
|
|
i32.load offset=4
|
|
i32.gt_u
|
|
if ;; label = @1
|
|
unreachable
|
|
end
|
|
)
|
|
(func $asyncify_get_state (;6;) (type 2) (result i32)
|
|
global.get 2
|
|
)
|
|
)
|
|
(core module $__init (;3;)
|
|
(type (;0;) (func))
|
|
(type (;1;) (func (param i32)))
|
|
(import "env" "memory" (memory (;0;) 0))
|
|
(import "env" "__indirect_function_table" (table (;0;) 0 funcref))
|
|
(import "bar" "__wasm_apply_data_relocs" (func (;0;) (type 0)))
|
|
(import "foo" "__wasm_apply_data_relocs" (func (;1;) (type 0)))
|
|
(start 2)
|
|
(elem (;0;) (i32.const 1) func)
|
|
(elem (;1;) (i32.const 1) func)
|
|
(func (;2;) (type 0)
|
|
call 0
|
|
call 1
|
|
)
|
|
(data (;0;) (i32.const 1048576) "\00\00\00\00\00\00\10\00")
|
|
(@producers
|
|
(processed-by "wit-component" "$CARGO_PKG_VERSION")
|
|
)
|
|
)
|
|
(core instance $main (;0;) (instantiate $main))
|
|
(alias core export $main "memory" (core memory $memory (;0;)))
|
|
(alias core export $main "bar:memory_base" (core global $bar:memory_base (;0;)))
|
|
(alias core export $main "bar:table_base" (core global $bar:table_base (;1;)))
|
|
(alias core export $main "__asyncify_state" (core global $__asyncify_state (;2;)))
|
|
(alias core export $main "__asyncify_data" (core global $__asyncify_data (;3;)))
|
|
(alias core export $main "__indirect_function_table" (core table $__indirect_function_table (;0;)))
|
|
(core instance $env (;1;)
|
|
(export "__memory_base" (global $bar:memory_base))
|
|
(export "__table_base" (global $bar:table_base))
|
|
(export "__asyncify_state" (global $__asyncify_state))
|
|
(export "__asyncify_data" (global $__asyncify_data))
|
|
(export "memory" (memory $memory))
|
|
(export "__indirect_function_table" (table $__indirect_function_table))
|
|
)
|
|
(core instance $bar (;2;) (instantiate $bar
|
|
(with "env" (instance $env))
|
|
)
|
|
)
|
|
(alias core export $main "foo:memory_base" (core global $foo:memory_base (;4;)))
|
|
(alias core export $main "foo:table_base" (core global $foo:table_base (;5;)))
|
|
(core instance $"#core-instance3 env" (@name "env") (;3;)
|
|
(export "__memory_base" (global $foo:memory_base))
|
|
(export "__table_base" (global $foo:table_base))
|
|
(export "__asyncify_state" (global $__asyncify_state))
|
|
(export "__asyncify_data" (global $__asyncify_data))
|
|
(export "memory" (memory $memory))
|
|
(export "__indirect_function_table" (table $__indirect_function_table))
|
|
)
|
|
(core instance $foo (;4;) (instantiate $foo
|
|
(with "env" (instance $"#core-instance3 env"))
|
|
)
|
|
)
|
|
(core instance $__init (;5;) (instantiate $__init
|
|
(with "env" (instance $main))
|
|
(with "bar" (instance $bar))
|
|
(with "foo" (instance $foo))
|
|
)
|
|
)
|
|
(type (;0;) (func))
|
|
(alias core export $bar "test:test/test#bar" (core func $test:test/test#bar (;0;)))
|
|
(func $bar (;0;) (type 0) (canon lift (core func $test:test/test#bar)))
|
|
(component $test:test/test-shim-component (;0;)
|
|
(type (;0;) (func))
|
|
(import "import-func-bar" (func (;0;) (type 0)))
|
|
(type (;1;) (func))
|
|
(export (;1;) "bar" (func 0) (func (type 1)))
|
|
)
|
|
(instance $test:test/test-shim-instance (;0;) (instantiate $test:test/test-shim-component
|
|
(with "import-func-bar" (func $bar))
|
|
)
|
|
)
|
|
(export $test:test/test (;1;) "test:test/test" (instance $test:test/test-shim-instance))
|
|
(@producers
|
|
(processed-by "wit-component" "$CARGO_PKG_VERSION")
|
|
)
|
|
)
|