xref: /third_party/node/test/fixtures/simple.wat
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/fixtures/
11cb0ef41Sopenharmony_ci;; Compiled using the WebAssembly Tootkit (https://github.com/WebAssembly/wabt)
21cb0ef41Sopenharmony_ci;; $ wat2wasm simple.wat -o simple.wasm
31cb0ef41Sopenharmony_ci
41cb0ef41Sopenharmony_ci(module
51cb0ef41Sopenharmony_ci  (func $add (param $a i32) (param $b i32) (result i32)
61cb0ef41Sopenharmony_ci    ;; return $a + $b
71cb0ef41Sopenharmony_ci    (i32.add (get_local $a) (get_local $b))
81cb0ef41Sopenharmony_ci  )
91cb0ef41Sopenharmony_ci
101cb0ef41Sopenharmony_ci  (export "add" (func $add))
111cb0ef41Sopenharmony_ci)
12

Indexes created Thu Nov 07 10:32:03 CST 2024