File: segments.wast

package info (click to toggle)
binaryen 120-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 41,284 kB
  • sloc: cpp: 189,449; javascript: 62,189; ansic: 14,087; python: 5,379; pascal: 441; sh: 77; makefile: 30; asm: 27
file content (14 lines) | stat: -rw-r--r-- 340 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(module
 (import "env" "g1" (global $g1 i32))
 (import "env" "g2" (global $g2 i32))

 (table $tbl 1 funcref)
 (elem (offset (global.get $g1)) funcref (ref.func $f))

 (memory 3)
 (data (offset (global.get $g2)) "xxx")

 (export "f" (func $f))
 (func $f (param i32)
  (call_indirect (param i32) (local.get 0) (i32.load8_u (i32.const 0))))
)