/third_party/node/src/ |
D | node_wasi.cc | 14 namespace wasi { namespace 17 inline void Debug(WASI* wasi, Args&&... args) { in Debug() argument 18 Debug(wasi->env(), DebugCategory::WASI, std::forward<Args>(args)...); in Debug() 58 #define GET_BACKING_STORE_OR_RETURN(wasi, args, mem_ptr, mem_size) \ argument 60 uvwasi_errno_t err = (wasi)->backingStore((mem_ptr), (mem_size)); \ 257 WASI* wasi; in ArgsGet() local 265 ASSIGN_INITIALIZED_OR_RETURN_UNWRAP(&wasi, args.This()); in ArgsGet() 266 Debug(wasi, "args_get(%d, %d)\n", argv_offset, argv_buf_offset); in ArgsGet() 267 GET_BACKING_STORE_OR_RETURN(wasi, args, &memory, &mem_size); in ArgsGet() 271 wasi->uvw_.argv_buf_size); in ArgsGet() [all …]
|
D | node_wasi.h | 11 namespace wasi {
|
D | node_binding.cc | 86 V(wasi) \
|
/third_party/node/test/wasi/ |
D | test-wasi-start-validation.js | 15 const wasi = new WASI(); constant 18 () => { wasi.start(); }, 28 const wasi = new WASI({}); constant 34 () => { wasi.start(instance); }, 44 const wasi = new WASI({}); constant 54 () => { wasi.start(instance); }, 64 const wasi = new WASI({}); constant 78 () => { wasi.start(instance); }, 88 const wasi = new WASI({}); constant 96 () => { wasi.start(instance); }, [all …]
|
D | test-wasi-initialize-validation.js | 15 const wasi = new WASI(); constant 18 () => { wasi.initialize(); }, 28 const wasi = new WASI({}); constant 34 () => { wasi.initialize(instance); }, 44 const wasi = new WASI({}); constant 54 () => { wasi.initialize(instance); }, 64 const wasi = new WASI({}); constant 78 () => { wasi.initialize(instance); }, 88 const wasi = new WASI({}); constant 96 () => { wasi.initialize(instance); }, [all …]
|
D | test-return-on-exit.js | 13 const wasi = new WASI({ returnOnExit: true }); constant 14 const importObject = { wasi_snapshot_preview1: wasi.wasiImport }; 17 assert.strictEqual(wasi.start(instance), 120); 23 const wasi = new WASI({ returnOnExit: true }); constant 25 wasi.wasiImport.proc_exit = patchedExit.bind(wasi.wasiImport); 26 const importObject = { wasi_snapshot_preview1: wasi.wasiImport }; 30 wasi.start(instance);
|
D | README.md | 3 Compile with clang and `wasm32-wasi` target. The clang version used must be 4 built with wasi-libc. You can specify the location for clang and the sysroot 7 $ make CC=/usr/local/opt/llvm/bin/clang SYSROOT=/path/to/wasi-libc/sysroot
|
D | test-wasi-worker-terminate.js | 38 const wasi = new WASI({ returnOnExit: true }); 39 const imports = { wasi_snapshot_preview1: wasi.wasiImport }; 43 wasi.start(instance);
|
D | test-wasi-stdio.js | 22 const wasi = new WASI({ stdin, stdout, stderr, returnOnExit: true }); constant 23 const importObject = { wasi_snapshot_preview1: wasi.wasiImport }; 28 strictEqual(wasi.start(instance), 0);
|
D | test-wasi.js | 17 const wasi = new WASI({ constant 25 const importObject = { wasi_snapshot_preview1: wasi.wasiImport }; 32 wasi.start(instance);
|
D | Makefile | 1 CC = /opt/wasi-sdk/bin/clang 2 TARGET = wasm32-unknown-wasi
|
D | test-wasi-symlinks.js | 13 const wasi = new WASI({ constant 21 const importObject = { wasi_snapshot_preview1: wasi.wasiImport }; 28 wasi.start(instance);
|
D | test-wasi-not-started.js | 10 const wasi = new WASI({ constant 13 const importObject = { wasi_snapshot_preview1: wasi.wasiImport };
|
D | wasi.status | 1 prefix wasi
|
/third_party/node/doc/api/ |
D | wasi.md | 7 <!-- source_link=lib/wasi.js --> 15 import { WASI } from 'wasi'; 17 const wasi = new WASI({ 24 const importObject = { wasi_snapshot_preview1: wasi.wasiImport }; 29 wasi.start(instance); 35 const { WASI } = require('wasi'); 36 const wasi = new WASI({ 43 const importObject = { wasi_snapshot_preview1: wasi.wasiImport }; 49 wasi.start(instance); 92 The `--experimental-wasi-unstable-preview1` and `--experimental-wasm-bigint` [all …]
|
D | documentation.md | 89 | [webassembly_system_interface_(wasi)](wasi.html) | (1) Experimental |
|
D | cli.md | 301 ### `--experimental-wasi-unstable-preview1` 309 description: changed from `--experimental-wasi-unstable-preview0` to 310 `--experimental-wasi-unstable-preview1`. 1352 * `--experimental-wasi-unstable-preview1`
|
/third_party/node/deps/cjs-module-lexer/ |
D | README.md | 436 To build download the WASI SDK from https://github.com/WebAssembly/wasi-sdk/releases. 438 The Makefile assumes the existence of "wasi-sdk-11.0" and "wabt" (optional) as sibling folders to t…
|
/third_party/e2fsprogs/config/ |
D | config.sub | 1740 | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
|
/third_party/freetype/builds/unix/ |
D | config.sub | 1722 | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
|
/third_party/wayland_standard/ |
D | config.sub | 1723 | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
|
/third_party/python/ |
D | config.sub | 1750 | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
|
/third_party/node/doc/changelogs/ |
D | CHANGELOG_V13.md | 189 * **wasi**: add returnOnExit option (Colin Ihrig) [#32101](https://github.com/nodejs/node/pull/3210… 299 * [[`dd83bd266d`](https://github.com/nodejs/node/commit/dd83bd266d)] - **(SEMVER-MINOR)** **wasi**:… 659 * [[`38ea53629b`](https://github.com/nodejs/node/commit/38ea53629b)] - **test**: add wasi test for … 661 * [[`583d1d9f55`](https://github.com/nodejs/node/commit/583d1d9f55)] - **test**: improve wasi stat … 663 * [[`099c921f40`](https://github.com/nodejs/node/commit/099c921f40)] - **test**: add wasi test for … 841 * [[`bdaac04c10`](https://github.com/nodejs/node/commit/bdaac04c10)] - **wasi**: improve use of pri… 961 * [[`1bcc07b758`](https://github.com/nodejs/node/commit/1bcc07b758)] - **doc,wasi**: use code marku… 1020 * [[`07e82db764`](https://github.com/nodejs/node/commit/07e82db764)] - **test**: get lib/wasi.js co… 1039 * [[`614b074f3b`](https://github.com/nodejs/node/commit/614b074f3b)] - **wasi**: refactor destructu… 1040 * [[`8491e1c3c6`](https://github.com/nodejs/node/commit/8491e1c3c6)] - **wasi**: fix serdes bugs fr… [all …]
|
D | CHANGELOG_V12.md | 416 * [[`dbe2d85f66`](https://github.com/nodejs/node/commit/dbe2d85f66)] - **test**: add wasi test for … 418 * [[`8438d1498d`](https://github.com/nodejs/node/commit/8438d1498d)] - **test**: improve wasi stat … 419 * [[`596920dbf4`](https://github.com/nodejs/node/commit/596920dbf4)] - **test**: add wasi test for … 454 * [[`a91a824108`](https://github.com/nodejs/node/commit/a91a824108)] - **wasi**: improve use of pri… 752 A new core module, `wasi`, is introduced to provide an implementation of the 753 [WebAssembly System Interface](https://wasi.dev/) specification. 960 * [[`255e3cdd40`](https://github.com/nodejs/node/commit/255e3cdd40)] - **doc,wasi**: use code marku… 1135 * [[`b3e0bc2e91`](https://github.com/nodejs/node/commit/b3e0bc2e91)] - **test**: get lib/wasi.js co… 1138 * [[`ceca54940b`](https://github.com/nodejs/node/commit/ceca54940b)] - **test**: simplify test-wasi… 1141 …m/nodejs/node/commit/8f5ffffb61)] - **test**: add test for validation for wasi.start() argument (R… [all …]
|
D | CHANGELOG_V14.md | 1348 * [[`0dea86634d`](https://github.com/nodejs/node/commit/0dea86634d)] - **wasi**: refactor to avoid … 1925 * [[`df93cb47da`](https://github.com/nodejs/node/commit/df93cb47da)] - **test**: fix wasi/test-retu… 2708 * [[`8357b56984`](https://github.com/nodejs/node/commit/8357b56984)] - **test**: add wasi readdir()… 2822 * [[`be71e717c5`](https://github.com/nodejs/node/commit/be71e717c5)] - **meta**: enable wasi for CO… 3069 * [[`2fa24c0ccc`](https://github.com/nodejs/node/commit/2fa24c0ccc)] - **wasi**: add \_\_wasi\_fd\_… 3330 * [[`6be685a99d`](https://github.com/nodejs/node/commit/6be685a99d)] - **wasi**: add reactor suppor… 3687 * [[`af14c1f776`](https://github.com/nodejs/node/commit/af14c1f776)] - **wasi**: allow WASI stdio t… 3688 * [[`5eecea375f`](https://github.com/nodejs/node/commit/5eecea375f)] - **wasi**: simplify WASI memo… 3689 * [[`f98e888fdd`](https://github.com/nodejs/node/commit/f98e888fdd)] - **wasi**: refactor and enabl… 3690 * [[`6b20e8442f`](https://github.com/nodejs/node/commit/6b20e8442f)] - **wasi**: relax WebAssembly.… [all …]
|