assemblyscript/tests/compiler/reexport.wast

119 lines
1.8 KiB
Plaintext
Raw Normal View History

(module
(type $iii (func (param i32 i32) (result i32)))
(type $v (func))
(global $export/a i32 (i32.const 1))
(global $export/b i32 (i32.const 2))
(global $HEAP_START i32 (i32.const 4))
(memory $0 1)
2017-12-02 23:33:01 +01:00
(export "add" (func $export/add))
(export "renamed_sub" (func $export/sub))
(export "renamed_a" (global $export/a))
(export "rerenamed_b" (global $export/b))
2017-12-02 23:33:01 +01:00
(export "renamed_add" (func $export/add))
(export "rerenamed_sub" (func $export/sub))
(export "memory" (memory $0))
(start $start)
(func $export/add (; 0 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.add
(get_local $0)
(get_local $1)
)
)
)
(func $export/sub (; 1 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.sub
(get_local $0)
(get_local $1)
)
)
)
2017-12-13 23:24:13 +01:00
(func $export/ns.two (; 2 ;) (type $v)
)
(func $start (; 3 ;) (type $v)
(drop
(i32.add
(call $export/add
(i32.const 1)
(i32.const 2)
)
(call $export/sub
(i32.const 3)
(i32.const 4)
)
)
)
)
)
(;
[program.elements]
2017-12-16 02:27:39 +01:00
NaN
Infinity
2017-12-15 17:23:04 +01:00
isNaN
isFinite
clz
ctz
popcnt
rotl
rotr
abs
max
min
2017-12-15 17:23:04 +01:00
ceil
floor
copysign
nearest
2017-12-15 17:23:04 +01:00
reinterpret
sqrt
trunc
2017-12-04 22:47:08 +01:00
load
store
sizeof
2017-12-15 17:23:04 +01:00
select
unreachable
current_memory
grow_memory
2017-12-12 01:35:48 +01:00
parseInt
parseFloat
2017-12-15 17:23:04 +01:00
changetype
assert
2017-12-15 15:00:19 +01:00
i8
i16
i32
i64
u8
u16
u32
u64
bool
f32
f64
isize
usize
2017-12-16 02:27:39 +01:00
HEAP_START
export/add
export/sub
export/a
export/b
2017-12-13 23:24:13 +01:00
export/ns
export/ns.one
export/ns.two
reexport/imported_add
reexport/imported_sub
2017-12-13 23:24:13 +01:00
reexport/imported_ns
[program.exports]
export/add
export/renamed_sub
export/a
export/renamed_b
2017-12-13 23:24:13 +01:00
export/ns
reexport/add
reexport/renamed_sub
reexport/renamed_a
reexport/rerenamed_b
reexport/renamed_add
reexport/rerenamed_sub
2017-12-13 23:24:13 +01:00
reexport/renamed_ns
;)