forked from AssemblyScript/assemblyscript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclass-extends.optimized.wat
More file actions
47 lines (47 loc) · 1.04 KB
/
Copy pathclass-extends.optimized.wat
File metadata and controls
47 lines (47 loc) · 1.04 KB
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
(module
(type $i32_i32_i32_i32_=>_none (func (param i32 i32 i32 i32)))
(type $i32_=>_none (func (param i32)))
(import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32)))
(global $~lib/memory/__stack_pointer (mut i32) (i32.const 17408))
(memory $0 0)
(export "memory" (memory $0))
(export "test" (func $export:class-extends/test))
(func $export:class-extends/test (param $0 i32)
(local $1 i32)
global.get $~lib/memory/__stack_pointer
i32.const 4
i32.sub
global.set $~lib/memory/__stack_pointer
global.get $~lib/memory/__stack_pointer
i32.const 1024
i32.lt_s
if
i32.const 17440
i32.const 17488
i32.const 1
i32.const 1
call $~lib/builtins/abort
unreachable
end
global.get $~lib/memory/__stack_pointer
local.tee $1
local.get $0
i32.store
local.get $0
i32.load
drop
local.get $0
i32.load16_s offset=4
drop
local.get $0
i32.const 2
i32.store
local.get $0
i32.const 3
i32.store16 offset=4
local.get $1
i32.const 4
i32.add
global.set $~lib/memory/__stack_pointer
)
)