- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 41 for WebAssembly (0.22 sec)
-
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) -
src/syscall/fs_wasip1.go
RIGHT_PATH_REMOVE_DIRECTORY | RIGHT_PATH_UNLINK_FILE ) // https://github.com/WebAssembly/WASI/blob/a2b96e81c0586125cc4dc79a5be0b78d9a059925/legacy/preview1/docs.md#-fd_closefd-fd---result-errno // //go:wasmimport wasi_snapshot_preview1 fd_close //go:noescape func fd_close(fd int32) Errno
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 24.1K bytes - Viewed (0) -
src/runtime/lock_js.go
func clearIdleTimeout() { idleTimeout.clear() idleTimeout = nil } // pause sets SP to newsp and pauses the execution of Go's WebAssembly code until an event is triggered. func pause(newsp uintptr) // scheduleTimeoutEvent tells the WebAssembly environment to trigger an event after ms milliseconds. // It returns a timer id that can be used with clearTimeoutEvent. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 21:02:20 UTC 2023 - 7.3K bytes - Viewed (0) -
src/runtime/asm_wasm.s
TEXT wasm_pc_f_loop(SB),NOSPLIT,$0 // Call the function for the current PC_F. Repeat until PAUSE != 0 indicates pause or exit. // The WebAssembly stack may unwind, e.g. when switching goroutines. // The Go stack on the linear memory is then used to jump to the correct functions // with this loop, without having to restore the full WebAssembly stack. // It is expected to have a pending call before entering the loop, so check PAUSE first. Get PAUSE I32Eqz If
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 21:26:51 UTC 2023 - 11.8K bytes - Viewed (0) -
src/runtime/os_wasm.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package runtime import ( "internal/runtime/atomic" "unsafe" ) func osinit() { // https://webassembly.github.io/spec/core/exec/runtime.html#memory-instances physPageSize = 64 * 1024 initBloc() ncpu = 1 getg().m.procid = 2 } const _SIGSEGV = 0xb func sigpanic() { gp := getg() if !canpanic() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 3.2K bytes - Viewed (0) -
misc/wasm/wasm_exec.js
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 22 17:47:47 UTC 2023 - 16.3K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/WasmOps.go
{name: "LoweredConvert", argLength: 2, reg: regInfo{inputs: []regMask{gp}, outputs: []regMask{gp}}}, // The following are native WebAssembly instructions, see https://webassembly.github.io/spec/core/syntax/instructions.html {name: "Select", asm: "Select", argLength: 3, reg: gp31}, // returns arg0 if arg2 != 0, otherwise returns arg1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 00:21:13 UTC 2023 - 17.7K bytes - Viewed (0) -
src/runtime/debug.go
// the value of [runtime.NumCPU]. If n < 1, it does not change the current setting. // This call will go away when the scheduler improves. func GOMAXPROCS(n int) int { if GOARCH == "wasm" && n > 1 { n = 1 // WebAssembly has no threads yet, so only one CPU is possible. } lock(&sched.lock) ret := int(gomaxprocs) unlock(&sched.lock) if n <= 0 || n == ret { return ret } stw := stopTheWorldGC(stwGOMAXPROCS)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 11 20:38:24 UTC 2024 - 4.2K bytes - Viewed (0) -
src/internal/runtime/atomic/atomic_wasm.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // TODO(neelance): implement with actual atomic operations as soon as threads are available // See https://github.com/WebAssembly/design/issues/1073 // Export some functions via linkname to assembly in sync/atomic. // //go:linkname Load //go:linkname Loadp //go:linkname Load64 //go:linkname Loadint32 //go:linkname Loadint64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 5.4K bytes - Viewed (0)