- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for WebAssembly (0.12 sec)
-
misc/wasm/wasm_exec.html
--> <script src="wasm_exec.js"></script> <script> if (!WebAssembly.instantiateStreaming) { // polyfill WebAssembly.instantiateStreaming = async (resp, importObject) => { const source = await (await resp).arrayBuffer(); return await WebAssembly.instantiate(source, importObject); }; } const go = new Go(); let mod, inst; WebAssembly.instantiateStreaming(fetch("test.wasm"), go.importObject).then((result) => {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 02 17:25:11 UTC 2018 - 1.3K bytes - Viewed (0) -
src/cmd/internal/obj/wasm/a.out.go
ATee ANot // alias for I32Eqz // The following are low-level WebAssembly instructions. // Their order matters, since it matches the opcode encoding. // Gaps in the encoding are indicated by comments. AUnreachable // opcode 0x00 ANop ABlock ALoop AIf AElse AEnd // opcode 0x0B ABr ABrIf ABrTable // ACall and AReturn are WebAssembly instructions. obj.ACALL and obj.ARET are higher level instructions
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 02 05:28:55 UTC 2023 - 4.3K bytes - Viewed (0) -
src/runtime/os_wasip1.go
type uintptr32 = uint32 // https://github.com/WebAssembly/WASI/blob/a2b96e81c0586125cc4dc79a5be0b78d9a059925/legacy/preview1/docs.md#-size-u32 type size = uint32 // https://github.com/WebAssembly/WASI/blob/a2b96e81c0586125cc4dc79a5be0b78d9a059925/legacy/preview1/docs.md#-errno-variant type errno = uint32 // https://github.com/WebAssembly/WASI/blob/a2b96e81c0586125cc4dc79a5be0b78d9a059925/legacy/preview1/docs.md#-filesize-u64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 7K bytes - Viewed (0) -
misc/go.mod
// Module misc contains binaries that pertain to specific platforms // (Android, iOS, and WebAssembly), as well as some miscellaneous // tests and tools. module misc
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 18 21:24:24 UTC 2023 - 175 bytes - Viewed (0) -
misc/wasm/wasm_exec_node.js
globalThis.crypto ??= require("crypto"); require("./wasm_exec"); const go = new Go(); go.argv = process.argv.slice(2); go.env = Object.assign({ TMPDIR: require("os").tmpdir() }, process.env); go.exit = process.exit; WebAssembly.instantiate(fs.readFileSync(process.argv[2]), go.importObject).then((result) => { process.on("exit", (code) => { // Node.js exits if no event handler is pending if (code === 0 && !go.exited) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 30 18:49:42 UTC 2023 - 1.1K bytes - Viewed (0) -
tests/integration/ambient/wasm_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jun 03 21:02:05 UTC 2024 - 7.2K bytes - Viewed (0) -
src/os/dirent_wasip1.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build wasip1 package os import ( "syscall" "unsafe" ) // https://github.com/WebAssembly/WASI/blob/main/legacy/preview1/docs.md#-dirent-record const sizeOfDirent = 24 func direntIno(buf []byte) (uint64, bool) { return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Ino), unsafe.Sizeof(syscall.Dirent{}.Ino)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 07 23:34:21 UTC 2023 - 1.4K bytes - Viewed (0) -
src/crypto/rand/rand_wasip1.go
func init() { Reader = &reader{} } type reader struct{} func (r *reader) Read(b []byte) (int, error) { // This uses the wasi_snapshot_preview1 random_get syscall defined in // https://github.com/WebAssembly/WASI/blob/23a52736049f4327dd335434851d5dc40ab7cad1/legacy/preview1/docs.md#-random_getbuf-pointeru8-buf_len-size---result-errno. // The definition does not explicitly guarantee that the entire buffer will
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 11 20:54:07 UTC 2023 - 787 bytes - Viewed (0) -
src/runtime/rt0_js_wasm.s
I32Const $wasm_export_getsp(SB) Drop // wasm_export_run gets called from JavaScript. It initializes the Go runtime and executes Go code until it needs // to wait for an event. It does NOT follow the Go ABI. It has two WebAssembly parameters: // R0: argc (i32) // R1: argv (i32) TEXT wasm_export_run(SB),NOSPLIT,$0 MOVD $runtime·wasmStack+(m0Stack__size-16)(SB), SP Get SP Get R0 // argc I64ExtendI32U I64Store $0 Get SP
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 05 19:28:25 UTC 2023 - 1.5K bytes - Viewed (0) -
src/runtime/lock_wasip1.go
// license that can be found in the LICENSE file. //go:build wasip1 package runtime // wasm has no support for threads yet. There is no preemption. // See proposal: https://github.com/WebAssembly/threads // Waiting for a mutex or timeout is implemented as a busy loop // while allowing other goroutines to run. const ( mutex_unlocked = 0 mutex_locked = 1 active_spin = 4 active_spin_cnt = 30
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 21:02:20 UTC 2023 - 2K bytes - Viewed (0)