forked from AssemblyScript/assemblyscript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbigint-integration.release.wat
50 lines (50 loc) · 1.58 KB
/
bigint-integration.release.wat
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
(module
(type $none_=>_i64 (func_subtype (result i64) func))
(type $i32_i32_i32_i32_=>_none (func_subtype (param i32 i32 i32 i32) func))
(type $none_=>_none (func_subtype func))
(import "bigint-integration" "externalValue" (global $bigint-integration/externalValue i64))
(import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32)))
(import "bigint-integration" "getExternalValue" (func $bigint-integration/getExternalValue (result i64)))
(global $bigint-integration/internalValue i64 (i64.const 9007199254740991))
(global $~started (mut i32) (i32.const 0))
(memory $0 1)
(data (i32.const 1036) "<")
(data (i32.const 1048) "\01\00\00\00*\00\00\00b\00i\00g\00i\00n\00t\00-\00i\00n\00t\00e\00g\00r\00a\00t\00i\00o\00n\00.\00t\00s")
(export "internalValue" (global $bigint-integration/internalValue))
(export "getInternalValue" (func $bigint-integration/getInternalValue))
(export "memory" (memory $0))
(export "_start" (func $~start))
(func $bigint-integration/getInternalValue (type $none_=>_i64) (result i64)
i64.const 9007199254740991
)
(func $~start (type $none_=>_none)
global.get $~started
if
return
end
i32.const 1
global.set $~started
global.get $bigint-integration/externalValue
i64.const 9007199254740991
i64.ne
if
i32.const 0
i32.const 1056
i32.const 4
i32.const 1
call $~lib/builtins/abort
unreachable
end
call $bigint-integration/getExternalValue
global.get $bigint-integration/externalValue
i64.ne
if
i32.const 0
i32.const 1056
i32.const 5
i32.const 1
call $~lib/builtins/abort
unreachable
end
)
)