| 1 |
(module |
| 2 |
(type $ft (;0;) (func)) |
| 3 |
(type $st (;1;) (struct)) |
| 4 |
(type $at (;2;) (array i8)) |
| 5 |
(type (;3;) (func (param externref))) |
| 6 |
(type (;4;) (func (param externref) (result anyref))) |
| 7 |
(type (;5;) (func (param anyref) (result externref))) |
| 8 |
(type (;6;) (func (param i32) (result externref))) |
| 9 |
(type (;7;) (func (param i32) (result anyref))) |
| 10 |
(table (;0;) 10 anyref) |
| 11 |
(global (;0;) externref ref.null any extern.convert_any) |
| 12 |
(global (;1;) anyref ref.null extern any.convert_extern) |
| 13 |
(export "init" (func 1)) |
| 14 |
(export "internalize" (func 2)) |
| 15 |
(export "externalize" (func 3)) |
| 16 |
(export "externalize-i" (func 4)) |
| 17 |
(export "externalize-ii" (func 5)) |
| 18 |
(elem (;0;) declare func $f) |
| 19 |
(func $f (;0;) (type $ft)) |
| 20 |
(func (;1;) (type 3) (param $x externref) |
| 21 |
i32.const 0 |
| 22 |
ref.null any |
| 23 |
table.set 0 |
| 24 |
i32.const 1 |
| 25 |
i32.const 7 |
| 26 |
ref.i31 |
| 27 |
table.set 0 |
| 28 |
i32.const 2 |
| 29 |
struct.new_default $st |
| 30 |
table.set 0 |
| 31 |
i32.const 3 |
| 32 |
i32.const 0 |
| 33 |
array.new_default $at |
| 34 |
table.set 0 |
| 35 |
i32.const 4 |
| 36 |
local.get $x |
| 37 |
any.convert_extern |
| 38 |
table.set 0 |
| 39 |
) |
| 40 |
(func (;2;) (type 4) (param externref) (result anyref) |
| 41 |
local.get 0 |
| 42 |
any.convert_extern |
| 43 |
) |
| 44 |
(func (;3;) (type 5) (param anyref) (result externref) |
| 45 |
local.get 0 |
| 46 |
extern.convert_any |
| 47 |
) |
| 48 |
(func (;4;) (type 6) (param i32) (result externref) |
| 49 |
local.get 0 |
| 50 |
table.get 0 |
| 51 |
extern.convert_any |
| 52 |
) |
| 53 |
(func (;5;) (type 7) (param i32) (result anyref) |
| 54 |
local.get 0 |
| 55 |
table.get 0 |
| 56 |
extern.convert_any |
| 57 |
any.convert_extern |
| 58 |
) |
| 59 |
) |