Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 38 for calling (1.76 sec)

  1. src/cmd/compile/internal/ssagen/abi.go

    	typecheck.Stmts(fn.Body)
    
    	// Restore previous context.
    	base.Pos = savepos
    	ir.CurFunc = savedcurfn
    }
    
    // CreateWasmImportWrapper creates a wrapper for imported WASM functions to
    // adapt them to the Go calling convention. The body for this function is
    // generated in cmd/internal/obj/wasm/wasmobj.go
    func CreateWasmImportWrapper(fn *ir.Func) bool {
    	if fn.WasmImport == nil {
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/typecheck.go

    				star := ir.NewStarExpr(base.Pos, n.X)
    				star.SetImplicit(true)
    				n.X = typecheck(star, ctxType|ctxExpr)
    			} else if tt.IsPtr() && tt.Elem().IsPtr() && types.Identical(derefall(tt), derefall(rcvr)) {
    				base.Errorf("calling method %v with receiver %L requires explicit dereference", n.Sel, n.X)
    				for tt.IsPtr() {
    					// Stop one level early for method with pointer receiver.
    					if rcvr.IsPtr() && !tt.Elem().IsPtr() {
    						break
    					}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  3. doc/go_mem.html

    </p>
    
    <p>
    For example, in this program:
    </p>
    
    <pre>
    var a string
    
    func f() {
    	print(a)
    }
    
    func hello() {
    	a = "hello, world"
    	go f()
    }
    </pre>
    
    <p>
    calling <code>hello</code> will print <code>"hello, world"</code>
    at some point in the future (perhaps after <code>hello</code> has returned).
    </p>
    
    <h3 id="goexit">Goroutine destruction</h3>
    
    <p>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 15:54:42 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/poset.go

    //
    // poset will refuse to record new relations that contradict existing relations:
    // for instance if A<B<C, calling SetOrder for C<A will fail returning false; also
    // calling SetEqual for C==A will fail.
    //
    // poset is implemented as a forest of DAGs; in each DAG, if there is a path (directed)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 04 17:23:05 UTC 2023
    - 37.2K bytes
    - Viewed (0)
  5. src/archive/tar/writer.go

    }
    
    // Write writes to the current file in the tar archive.
    // Write returns the error [ErrWriteTooLong] if more than
    // Header.Size bytes are written after [Writer.WriteHeader].
    //
    // Calling Write on special types like [TypeLink], [TypeSymlink], [TypeChar],
    // [TypeBlock], [TypeDir], and [TypeFifo] returns (0, [ErrWriteTooLong]) regardless
    // of what the [Header.Size] claims.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  6. src/bytes/buffer_test.go

    		check(t, testname+" (fill 4)", buf, s)
    	}
    	return s
    }
    
    func TestNewBuffer(t *testing.T) {
    	buf := NewBuffer(testBytes)
    	check(t, "NewBuffer", buf, testString)
    }
    
    var buf Buffer
    
    // Calling NewBuffer and immediately shallow copying the Buffer struct
    // should not result in any allocations.
    // This can be used to reset the underlying []byte of an existing Buffer.
    func TestNewBufferShallow(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:31:36 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testcarchive/carchive_test.go

    			cmd.Process.Kill()
    		},
    	)
    	defer timer.Stop()
    
    	err = cmd.Wait()
    	t.Logf("%v\n%s", cmd.Args, sb)
    	if err != nil {
    		t.Error(err)
    	}
    }
    
    // Issue 59294. Test calling Go function from C after using some
    // stack space.
    func TestDeepStack(t *testing.T) {
    	globalSkip(t)
    	testenv.MustHaveGoBuild(t)
    	testenv.MustHaveCGO(t)
    	testenv.MustHaveBuildMode(t, "c-archive")
    
    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/cmd/compile/internal/types/size.go

    // and ptrBytes for t.
    // If CalcSizeDisabled is set, and the size/alignment
    // have not already been calculated, it calls Fatal.
    // This is used to prevent data races in the back end.
    func CalcSize(t *Type) {
    	// Calling CalcSize when typecheck tracing enabled is not safe.
    	// See issue #33658.
    	if base.EnableTrace && SkipSizeForTracing {
    		return
    	}
    	if PtrSize == 0 {
    		// Assume this is a test.
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/block.go

    	b.Func.invalidateCFG()
    }
    
    // removePred removes the ith input edge from b.
    // It is the responsibility of the caller to remove
    // the corresponding successor edge, and adjust any
    // phi values by calling b.removePhiArg(v, i).
    func (b *Block) removePred(i int) {
    	n := len(b.Preds) - 1
    	if i != n {
    		e := b.Preds[n]
    		b.Preds[i] = e
    		// Update the other end of the edge we moved.
    		e.b.Succs[e.i].i = i
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/rangefunc/rewrite.go

    abi.RF_EXHAUSTED = 3 // iterator function call, e.g. f(func(x t){...}), returned so the sequence is "exhausted".
    
    abi.RF_MISSING_PANIC = 4 // used to report errors.
    
    The value of #stateK transitions
    (1) before calling the iterator function,
    
    	var #stateN = abi.RF_READY
    
    (2) after the iterator function call returns,
    
    	if #stateN == abi.RF_PANIC {
    		panic(runtime.panicrangestate(abi.RF_MISSING_PANIC))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
Back to top