Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 230 for perfunc (0.3 sec)

  1. src/cmd/compile/internal/walk/select.go

    	// generate sel-struct
    	base.Pos = sellineno
    	selv := typecheck.TempAt(base.Pos, ir.CurFunc, types.NewArray(scasetype(), int64(ncas)))
    	init = append(init, typecheck.Stmt(ir.NewAssignStmt(base.Pos, selv, nil)))
    
    	// No initialization for order; runtime.selectgo is responsible for that.
    	order := typecheck.TempAt(base.Pos, ir.CurFunc, types.NewArray(types.Types[types.TUINT16], 2*int64(ncas)))
    
    	var pc0, pcs ir.Node
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 01:53:41 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/temp.go

    // allocated temporary variable of the given type. Statements to
    // zero-initialize tmp are appended to init.
    func stackTempAddr(init *ir.Nodes, typ *types.Type) *ir.AddrExpr {
    	n := typecheck.TempAt(base.Pos, ir.CurFunc, typ)
    	n.SetNonMergeable(true)
    	return initStackTemp(init, n, nil)
    }
    
    // stackBufAddr returns the expression &tmp, where tmp is a newly
    // allocated temporary variable of type [len]elem. This variable is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 16:41:23 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/cover_test_pkgselect.txt

    		t.Fatalf("bad")
    	}
    }
    
    -- bar/bar.go --
    package bar
    
    import "example/foo"
    
    func BarFunc() int {
    	return foo.FooFunc2()
    }
    
    -- bar/bar_test.go --
    package bar_test
    
    import (
    	"example/bar"
    	"testing"
    )
    
    func TestBar(t *testing.T) {
    	if bar.BarFunc() != 42 {
    		t.Fatalf("bad")
    	}
    }
    
    -- baz/baz.go --
    package baz
    
    func BazFunc() int {
    	return -42
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 11:50:58 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/aes/cache.go

    	}
    	if transformer == nil {
    		panic("transformer must not be nil")
    	}
    	if len(transformer.info) == 0 {
    		panic("info must not be empty")
    	}
    	c.cache.Set(keyFunc(dataCtx), transformer, c.ttl)
    }
    
    func keyFunc(dataCtx value.Context) string {
    	return toString(dataCtx.AuthenticatedData())
    }
    
    // toString performs unholy acts to avoid allocations
    func toString(b []byte) string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 19:25:52 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  5. pkg/proxy/iptables/number_generated_rules_test.go

    			}
    			// test the function to mutate endpoint slices
    			epsFunc := func(eps *discovery.EndpointSlice) {
    				for i := range eps.Endpoints {
    					nodeName := fmt.Sprintf("node-%d", i)
    					eps.Endpoints[i].NodeName = &nodeName
    				}
    			}
    
    			svcs, eps := generateServiceEndpoints(test.services, test.epPerService, epsFunc, svcFunc)
    
    			if len(svcs) != test.services {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/stmt.go

    	case ir.ODEFER:
    		n := n.(*ir.GoDeferStmt)
    		ir.CurFunc.SetHasDefer(true)
    		ir.CurFunc.NumDefers++
    		if ir.CurFunc.NumDefers > maxOpenDefers || n.DeferAt != nil {
    			// Don't allow open-coded defers if there are more than
    			// 8 defers in the function, since we use a single
    			// byte to record active defers.
    			// Also don't allow if we need to use deferprocat.
    			ir.CurFunc.SetOpenCodedDeferDisallowed(true)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 15:42:30 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  7. pilot/pkg/serviceregistry/util/workloadinstances/index.go

    }
    
    // NewIndex returns a new Index instance.
    func NewIndex() Index {
    	return &index{
    		keyFunc:       indexKey,
    		keyToInstance: make(map[string]*model.WorkloadInstance),
    		ipToKeys:      make(MultiValueMap),
    	}
    }
    
    // index implements Index.
    type index struct {
    	mu sync.RWMutex
    	// key function
    	keyFunc func(*model.WorkloadInstance) string
    	// map of namespace/name -> workload instance
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 16 05:45:36 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    	// The Cache will be caching objects of a given Type and assumes that they
    	// are all stored under ResourcePrefix directory in the underlying database.
    	ResourcePrefix string
    
    	// KeyFunc is used to get a key in the underlying storage for a given object.
    	KeyFunc func(runtime.Object) (string, error)
    
    	// GetAttrsFunc is used to get object labels, fields
    	GetAttrsFunc func(runtime.Object) (label labels.Set, field fields.Set, err error)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/walk/range.go

    		// }
    
    		// order.stmt arranged for a copy of the string variable.
    		ha := a
    
    		hv1 := typecheck.TempAt(base.Pos, ir.CurFunc, types.Types[types.TINT])
    		hv1t := typecheck.TempAt(base.Pos, ir.CurFunc, types.Types[types.TINT])
    		hv2 := typecheck.TempAt(base.Pos, ir.CurFunc, types.RuneType)
    
    		// hv1 := 0
    		init = append(init, ir.NewAssignStmt(base.Pos, hv1, nil))
    
    		// hv1 < len(ha)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:33 UTC 2023
    - 17.6K bytes
    - Viewed (0)
  10. pkg/generated/openapi/cmd/models-schema/main.go

    	if err != nil {
    		os.Stderr.WriteString(fmt.Sprintf("Failed: %v", err))
    		os.Exit(1)
    	}
    }
    
    func output() error {
    	refFunc := func(name string) spec.Ref {
    		return spec.MustCreateRef(fmt.Sprintf("#/definitions/%s", friendlyName(name)))
    	}
    	defs := openapi.GetOpenAPIDefinitions(refFunc)
    	schemaDefs := make(map[string]spec.Schema, len(defs))
    	for k, v := range defs {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:52 UTC 2024
    - 2.6K bytes
    - Viewed (0)
Back to top