blob: fd179943c8a656b70786773f659d2cbe97b4fb53 (
plain)
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
|
(module
(type $FUNCSIG$jj (func (param i64) (result i64)))
(import "env" "_importll" (func $importll (param i64) (result i64)))
(import "env" "memory" (memory $0 256 256))
(import "env" "table" (table 0 0 anyfunc))
(import "env" "memoryBase" (global $memoryBase i32))
(import "env" "tableBase" (global $tableBase i32))
(data (get_global $memoryBase) "noffi_i64.asm.js")
(export "_add" (func $add))
(export "_main" (func $main))
(func $add (; 1 ;) (param $0 i64) (param $1 i64) (result i64)
(i64.add
(get_local $1)
(get_local $0)
)
)
(func $main (; 2 ;) (result i32)
(drop
(call $importll
(i64.const 2)
)
)
(i32.const 0)
)
)
|