Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,015 for gojs (0.06 sec)

  1. src/syscall/js/js.go

    	return string(b)
    }
    
    //go:wasmimport gojs syscall/js.valuePrepareString
    func valuePrepareString(v ref) (ref, int)
    
    // valueLoadString loads string data located at ref v into byte slice b.
    //
    // (noescape): This is safe because the byte slice is only used as a destination
    //             for storing the string data and references to it are not maintained.
    //
    //go:wasmimport gojs syscall/js.valueLoadString
    //go:noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  2. src/runtime/os_js.go

    	if fd > 2 {
    		throw("runtime.write to fd > 2 is unsupported")
    	}
    	wasmWrite(fd, p, n)
    	return n
    }
    
    //go:wasmimport gojs runtime.wasmWrite
    //go:noescape
    func wasmWrite(fd uintptr, p unsafe.Pointer, n int32)
    
    func usleep(usec uint32) {
    	// TODO(neelance): implement usleep
    }
    
    //go:wasmimport gojs runtime.getRandomData
    //go:noescape
    func getRandomData(r []byte)
    
    func readRandom(r []byte) int {
    	getRandomData(r)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 767 bytes
    - Viewed (0)
  3. src/runtime/sys_wasm.go

    	"unsafe"
    )
    
    type m0Stack struct {
    	_ [8192 * sys.StackGuardMultiplier]byte
    }
    
    var wasmStack m0Stack
    
    func wasmDiv()
    
    func wasmTruncS()
    func wasmTruncU()
    
    //go:wasmimport gojs runtime.wasmExit
    func wasmExit(code int32)
    
    // adjust Gobuf as it if executed a call to fn with context ctxt
    // and then stopped before the first instruction in fn.
    func gostartcall(buf *gobuf, fn, ctxt unsafe.Pointer) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 02 05:28:55 UTC 2023
    - 758 bytes
    - Viewed (0)
  4. src/runtime/mem_js.go

    package runtime
    
    // resetMemoryDataView signals the JS front-end that WebAssembly's memory.grow instruction has been used.
    // This allows the front-end to replace the old DataView object with a new one.
    //
    //go:wasmimport gojs runtime.resetMemoryDataView
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 17:48:24 UTC 2023
    - 457 bytes
    - Viewed (0)
  5. src/runtime/stubs3.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build !aix && !darwin && !freebsd && !openbsd && !plan9 && !solaris && !wasip1
    
    package runtime
    
    //go:wasmimport gojs runtime.nanotime1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 17:48:24 UTC 2023
    - 324 bytes
    - Viewed (0)
  6. src/runtime/timestub2.go

    // license that can be found in the LICENSE file.
    
    //go:build !aix && !darwin && !freebsd && !openbsd && !solaris && !wasip1 && !windows && !(linux && amd64)
    
    package runtime
    
    //go:wasmimport gojs runtime.walltime
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 17:48:24 UTC 2023
    - 363 bytes
    - Viewed (0)
  7. src/runtime/lock_js.go

    	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.
    //
    //go:wasmimport gojs runtime.scheduleTimeoutEvent
    func scheduleTimeoutEvent(ms int64) int32
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:02:20 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssagen/abi.go

    	}
    	if wi.Module == wasm.GojsModule {
    		// Functions that are imported from the "gojs" module use a special
    		// ABI that just accepts the stack pointer.
    		// Example:
    		//
    		// 	//go:wasmimport gojs add
    		// 	func importedAdd(a, b uint) uint
    		//
    		// will roughly become
    		//
    		// 	(import "gojs" "add" (func (param i32)))
    		wi.Params = []obj.WasmField{{Type: obj.WasmI32}}
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/wasm/wasmobj.go

    	// in //go:wasmimport will cause the generated code to pass the stack pointer
    	// directly to the imported function. In other words, any function that
    	// uses the gojs module understands the internal Go WASM ABI directly.
    	GojsModule = "gojs"
    )
    
    func instinit(ctxt *obj.Link) {
    	morestack = ctxt.Lookup("runtime.morestack")
    	morestackNoCtxt = ctxt.Lookup("runtime.morestack_noctxt")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 34.6K bytes
    - Viewed (0)
  10. misc/wasm/wasm_exec.js

    			}
    
    			const timeOrigin = Date.now() - performance.now();
    			this.importObject = {
    				_gotest: {
    					add: (a, b) => a + b,
    				},
    				gojs: {
    					// Go's SP does not change as long as no Go code is running. Some operations (e.g. calls, getters and setters)
    					// may synchronously trigger a Go event handler. This makes Go code get executed in the middle of the imported
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 17:47:47 UTC 2023
    - 16.3K bytes
    - Viewed (0)
Back to top