File: outside.wast

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 (30 lines) | stat: -rw-r--r-- 852 bytes parent folder | download | duplicates (2)
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
(module
 (import "env" "js_func" (func $a_js_func))
 (import "env" "js_func_unused" (func $an_unused_js_func))
 (import "env" "memory" (memory $0 256 256))
 (import "env" "table" (table 10 10 funcref))

 (export "wasm_func" (func $a_wasm_func))
 (export "wasm_func_unused" (func $an_unused_wasm_func))

 (global $__THREW__ (mut i32) (i32.const 0))
 (global $__THREW__unused (mut i32) (i32.const 0))
 (global $from_segment (mut i32) (i32.const 0))
 (global $from_segment_2 (mut i32) (i32.const 0))
 (global $from_segment_never_used (mut i32) (i32.const 0))

 (data (i32.const 1024) "abcd")
 (data (global.get $from_segment) "abcd")
 (elem (global.get $from_segment_2) $table_func)

 (func $a_wasm_func
  (call $a_js_func)
  (drop (global.get $__THREW__))
 )
 (func $an_unused_wasm_func
  (drop (global.get $__THREW__unused))
 )
 (func $table_func
 )
)