Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 36 for newFunc (0.11 sec)

  1. src/cmd/compile/internal/ssa/func_test.go

    func (c *Conf) Fun(entry string, blocs ...bloc) fun {
    	// TODO: Either mark some SSA tests as t.Parallel,
    	// or set up a shared Cache and Reset it between tests.
    	// But not both.
    	f := c.config.NewFunc(c.Frontend(), new(Cache))
    	f.pass = &emptyPass
    	f.cachedLineStarts = newXposmap(map[int]lineRange{0: {0, 100}, 1: {0, 100}, 2: {0, 100}, 3: {0, 100}, 4: {0, 100}})
    
    	blocks := make(map[string]*Block)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:01:04 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/rangefunc/rewrite.go

    	intType := types2.Universe.Lookup("int").Type()
    
    	// func deferrangefunc() unsafe.Pointer
    	obj := types2.NewFunc(nopos, pkg, "deferrangefunc", types2.NewSignatureType(nil, nil, nil, nil, types2.NewTuple(types2.NewParam(nopos, pkg, "extra", anyType)), false))
    	pkg.Scope().Insert(obj)
    
    	// func panicrangestate()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  3. pkg/registry/core/service/storage/storage.go

    	portAlloc portallocator.Interface,
    	endpoints EndpointsStorage,
    	pods PodStorage,
    	proxyTransport http.RoundTripper) (*REST, *StatusREST, *svcreg.ProxyREST, error) {
    
    	store := &genericregistry.Store{
    		NewFunc:                   func() runtime.Object { return &api.Service{} },
    		NewListFunc:               func() runtime.Object { return &api.ServiceList{} },
    		PredicateFunc:             svcreg.Matcher,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 13:09:33 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/resolver.go

    				obj := NewTypeName(s.Name.Pos(), pkg, s.Name.Value, nil)
    				check.declarePkgObj(s.Name, obj, &declInfo{file: fileScope, tdecl: s})
    
    			case *syntax.FuncDecl:
    				name := s.Name.Value
    				obj := NewFunc(s.Name.Pos(), pkg, name, nil)
    				hasTParamError := false // avoid duplicate type parameter errors
    				if s.Recv == nil {
    					// regular function
    					if name == "init" || name == "main" && pkg.name == "main" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  5. src/go/types/resolver.go

    				obj := NewTypeName(d.spec.Name.Pos(), pkg, d.spec.Name.Name, nil)
    				check.declarePkgObj(d.spec.Name, obj, &declInfo{file: fileScope, tdecl: d.spec})
    			case funcDecl:
    				name := d.decl.Name.Name
    				obj := NewFunc(d.decl.Name.Pos(), pkg, name, nil) // signature set later
    				hasTParamError := false                           // avoid duplicate type parameter errors
    				if d.decl.Recv.NumFields() == 0 {
    					// regular function
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/builtin.go

    			},
    			[]*types.Field{
    				types.NewField(base.Pos, nil, types.Types[types.TUINTPTR]),
    				types.NewField(base.Pos, nil, types.Types[types.TBOOL]),
    			})
    
    		fn := ir.NewFunc(n.Pos(), n.Pos(), math_MulUintptr, decl)
    
    		call := mkcall1(fn.Nname, fn.Type().ResultsTuple(), init, ir.NewInt(base.Pos, sliceType.Elem().Size()), typecheck.Conv(typecheck.Conv(len, lenType), types.Types[types.TUINTPTR]))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  7. gorm.go

    	}
    
    	if config.QueryFields {
    		tx.Config.QueryFields = true
    	}
    
    	if config.Logger != nil {
    		tx.Config.Logger = config.Logger
    	}
    
    	if config.NowFunc != nil {
    		tx.Config.NowFunc = config.NowFunc
    	}
    
    	if config.Initialized {
    		tx = tx.getInstance()
    	}
    
    	return tx
    }
    
    // WithContext change current instance db's context to ctx
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sun Aug 20 11:46:56 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  8. pkg/registry/core/persistentvolume/strategy_test.go

    	)
    }
    
    func TestStatusUpdate(t *testing.T) {
    	now := metav1.Now()
    	origin := metav1.NewTime(now.Add(time.Hour))
    	later := metav1.NewTime(now.Add(time.Hour * 2))
    	NowFunc = func() metav1.Time { return now }
    	defer func() {
    		NowFunc = metav1.Now
    	}()
    	tests := []struct {
    		name        string
    		fg          bool
    		oldObj      *api.PersistentVolume
    		newObj      *api.PersistentVolume
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. pkg/kubelet/nodestatus/setters.go

    func MemoryPressureCondition(nowFunc func() time.Time, // typically Kubelet.clock.Now
    	pressureFunc func() bool, // typically Kubelet.evictionManager.IsUnderMemoryPressure
    	recordEventFunc func(eventType, event string), // typically Kubelet.recordNodeStatusEvent
    ) Setter {
    	return func(ctx context.Context, node *v1.Node) error {
    		currentTime := metav1.NewTime(nowFunc())
    		var condition *v1.NodeCondition
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 12:12:04 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  10. src/runtime/runtime.go

    	name string
    	inc  atomic.Pointer[func()]
    }
    
    func (g *godebugInc) IncNonDefault() {
    	inc := g.inc.Load()
    	if inc == nil {
    		newInc := godebugNewIncNonDefault.Load()
    		if newInc == nil {
    			return
    		}
    		inc = new(func())
    		*inc = (*newInc)(g.name)
    		if raceenabled {
    			racereleasemerge(unsafe.Pointer(&g.inc))
    		}
    		if !g.inc.CompareAndSwap(nil, inc) {
    			inc = g.inc.Load()
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top