- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 41 for WebAssembly (0.2 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) -
src/cmd/link/internal/wasm/asm.go
} func assignAddress(ldr *loader.Loader, sect *sym.Section, n int, s loader.Sym, va uint64, isTramp bool) (*sym.Section, int, uint64) { // WebAssembly functions do not live in the same address space as the linear memory. // Instead, WebAssembly automatically assigns indices. Imported functions (section "import") // have indices 0 to n. They are followed by native functions (sections "function" and "code")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 16:17:48 UTC 2024 - 21.9K 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/cmd/internal/obj/wasm/wasmobj.go
if call.As == ACALLNORESUME && call.To.Sym != sigpanic { // sigpanic unwinds the stack, but it never resumes // trying to unwind WebAssembly stack but call has no resume point, terminate with error p = appendp(p, AIf) p = appendp(p, obj.AUNDEF) p = appendp(p, AEnd) } else { // unwinding WebAssembly stack to switch goroutine, return 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 34.6K bytes - Viewed (0)