Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for WebAssembly (0.17 sec)

  1. 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)
  2. 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)
  3. tests/integration/ambient/wasm_test.go

    				},
    				{
    					desc:       "Configure WebAssembly filter for waypoint",
    					name:       "waypoint-wasm-test",
    					targetType: "gateway",
    					targetName: constants.DefaultNamespaceWaypoint,
    				},
    				{
    					desc:       "Configure WebAssembly filter for specific service",
    					name:       "service-wasm-test",
    					targetType: "service",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 21:02:05 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top