Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 388 for gojs (0.15 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/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)
  3. 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)
  4. 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)
  5. src/net/conf.go

    			case confVal.netGo:
    				if netGoBuildTag {
    					println("go package net: built with netgo build tag; using Go's DNS resolver")
    				} else {
    					println("go package net: GODEBUG setting forcing use of Go's resolver")
    				}
    			case !cgoAvailable:
    				println("go package net: cgo resolver not supported; using Go's DNS resolver")
    			case confVal.netCgo || confVal.preferCgo:
    				println("go package net: using cgo DNS resolver")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 03:13:26 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  6. src/cmd/distpack/pack.go

    	if goroot == "" {
    		log.Fatalf("missing $GOROOT")
    	}
    	gohostos = runtime.GOOS
    	gohostarch = runtime.GOARCH
    	goos = os.Getenv("GOOS")
    	if goos == "" {
    		goos = gohostos
    	}
    	goarch = os.Getenv("GOARCH")
    	if goarch == "" {
    		goarch = gohostarch
    	}
    	goosUnderGoarch := goos + "_" + goarch
    	goosDashGoarch := goos + "-" + goarch
    	exe := ""
    	if goos == "windows" {
    		exe = ".exe"
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testcarchive/carchive_test.go

    	} else if GOOS == "darwin" && GOARCH == "amd64" {
    		t.Skipf("skipping on %s/%s: runtime does not permit SI_USER SIGSEGV", GOOS, GOARCH)
    	}
    	globalSkip(t)
    	checkSignalForwardingTest(t)
    	buildSignalForwardingTest(t)
    
    	// We want to send the process a signal and see if it dies.
    	// Normally the signal goes to the C thread, the Go signal
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:43:51 UTC 2023
    - 34.8K bytes
    - Viewed (0)
  8. src/runtime/extern.go

    // when possible, a release tag like "go1.3".
    func Version() string {
    	return buildVersion
    }
    
    // GOOS is the running program's operating system target:
    // one of darwin, freebsd, linux, and so on.
    // To view possible combinations of GOOS and GOARCH, run "go tool dist list".
    const GOOS string = goos.GOOS
    
    // GOARCH is the running program's architecture target:
    // one of 386, amd64, arm, s390x, and so on.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  9. src/runtime/crash_cgo_test.go

    func TestCgoCallbackGC(t *testing.T) {
    	t.Parallel()
    	switch runtime.GOOS {
    	case "plan9", "windows":
    		t.Skipf("no pthreads on %s", runtime.GOOS)
    	}
    	if testing.Short() {
    		switch {
    		case runtime.GOOS == "dragonfly":
    			t.Skip("see golang.org/issue/11990")
    		case runtime.GOOS == "linux" && runtime.GOARCH == "arm":
    			t.Skip("too slow for arm builders")
    		case runtime.GOOS == "linux" && (runtime.GOARCH == "mips64" || runtime.GOARCH == "mips64le"):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 16:44:47 UTC 2024
    - 22.2K bytes
    - Viewed (1)
  10. pkg/volume/util/util_test.go

    	}
    }
    
    func TestIsWindowsUNCPath(t *testing.T) {
    	tests := []struct {
    		goos      string
    		path      string
    		isUNCPath bool
    	}{
    		{
    			goos:      "linux",
    			path:      `/usr/bin`,
    			isUNCPath: false,
    		},
    		{
    			goos:      "linux",
    			path:      `\\.\pipe\foo`,
    			isUNCPath: false,
    		},
    		{
    			goos:      "windows",
    			path:      `C:\foo`,
    			isUNCPath: false,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 28.7K bytes
    - Viewed (0)
Back to top