File: gc.wast.out

package info (click to toggle)
binaryen 108-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 35,424 kB
  • sloc: cpp: 151,487; javascript: 62,522; ansic: 13,124; python: 5,260; pascal: 441; sh: 75; asm: 27; makefile: 8
file content (41 lines) | stat: -rw-r--r-- 935 bytes parent folder | download
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
(module
 (type $struct (struct (field i32)))
 (type $anyref_=>_none (func (param anyref)))
 (type $none_=>_i32 (func (result i32)))
 (type $none_=>_none (func))
 (import "import" "import" (func $import (param anyref)))
 (global $global1 (ref $struct) (struct.new $struct
  (i32.const 1337)
 ))
 (global $ctor-eval$global (ref $struct) (struct.new $struct
  (i32.const 42)
 ))
 (global $global2 (mut (ref null $struct)) (global.get $ctor-eval$global))
 (global $ctor-eval$global_0 (ref $struct) (struct.new $struct
  (i32.const 99)
 ))
 (export "test1" (func $0_0))
 (export "keepalive" (func $1))
 (func $1 (result i32)
  (i32.add
   (struct.get $struct 0
    (global.get $global1)
   )
   (struct.get $struct 0
    (global.get $global2)
   )
  )
 )
 (func $0_0
  (local $0 (ref null $struct))
  (local.set $0
   (global.get $ctor-eval$global_0)
  )
  (call $import
   (ref.null $struct)
  )
  (call $import
   (local.get $0)
  )
 )
)