Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 230 for perfunc (0.17 sec)

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

    	if !fromType.IsInterface() && !ir.IsBlank(ir.CurFunc.Nname) {
    		// skip unnamed functions (func _())
    		if fromType.HasShape() {
    			// Unified IR uses OCONVIFACE for converting all derived types
    			// to interface type. Avoid assertion failure in
    			// MarkTypeUsedInInterface, because we've marked used types
    			// separately anyway.
    		} else {
    			reflectdata.MarkTypeUsedInInterface(fromType, ir.CurFunc.LSym)
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 17:28:22 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/walk.go

    func Walk(fn *ir.Func) {
    	ir.CurFunc = fn
    	errorsBefore := base.Errors()
    	order(fn)
    	if base.Errors() > errorsBefore {
    		return
    	}
    
    	if base.Flag.W != 0 {
    		s := fmt.Sprintf("\nbefore walk %v", ir.CurFunc.Sym())
    		ir.DumpList(s, ir.CurFunc.Body)
    	}
    
    	walkStmtList(ir.CurFunc.Body)
    	if base.Flag.W != 0 {
    		s := fmt.Sprintf("after walk %v", ir.CurFunc.Sym())
    		ir.DumpList(s, ir.CurFunc.Body)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 20:56:00 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/walk/closure.go

    	// Add to Closures for enqueueFunc. It's no longer a proper
    	// closure, but we may have already skipped over it in the
    	// functions list as a non-trivial closure, so this just
    	// ensures it's compiled.
    	ir.CurFunc.Closures = append(ir.CurFunc.Closures, clofn)
    }
    
    func walkClosure(clo *ir.ClosureExpr, init *ir.Nodes) ir.Node {
    	clofn := clo.Func
    
    	// If no closure vars, don't bother wrapping.
    	if ir.IsTrivialClosure(clo) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:56:08 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  4. src/cmd/covdata/subtractintersect.go

    				if s.imm != nil {
    					s.pruneCounters()
    				}
    				s.imm = make(map[pkfunc]struct{})
    			}
    		}
    		s.inidx = dirIdx
    	}
    }
    
    func (s *sstate) EndCounterDataFile(cdf string, cdr *decodecounter.CounterDataReader, dirIdx int) {
    }
    
    func (s *sstate) VisitFuncCounterData(data decodecounter.FuncPayload) {
    	key := pkfunc{pk: data.PkgIdx, fcn: data.FuncIdx}
    
    	if *verbflag >= 5 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 12 12:50:46 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/typecheck/export.go

    	"cmd/compile/internal/ir"
    	"cmd/compile/internal/types"
    	"cmd/internal/src"
    )
    
    // importfunc declares symbol s as an imported function with type t.
    func importfunc(s *types.Sym, t *types.Type) {
    	fn := ir.NewFunc(src.NoXPos, src.NoXPos, s, t)
    	importsym(fn.Nname)
    }
    
    // importvar declares symbol s as an imported variable with type t.
    func importvar(s *types.Sym, t *types.Type) {
    	n := ir.NewNameAt(src.NoXPos, s, t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 19:36:28 UTC 2023
    - 838 bytes
    - Viewed (0)
  6. pkg/kube/krt/helpers.go

    	if meta.Namespace != nil && len(*meta.Namespace) > 0 {
    		return ptr.Of(Key[O](*meta.Namespace + "/" + *meta.Name))
    	}
    	return ptr.Of(Key[O](*meta.Name))
    }
    
    // keyFunc is the internal API key function that returns "namespace"/"name" or
    // "name" if "namespace" is empty
    func keyFunc(name, namespace string) string {
    	if len(namespace) == 0 {
    		return name
    	}
    	return namespace + "/" + name
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/walk/assign.go

    	}
    	n.Rhs = []ir.Node{call}
    	n.SetOp(ir.OAS2FUNC)
    
    	// don't generate a = *var if a is _
    	if ir.IsBlank(a) {
    		return walkExpr(typecheck.Stmt(n), init)
    	}
    
    	var_ := typecheck.TempAt(base.Pos, ir.CurFunc, types.NewPtr(t.Elem()))
    	var_.SetTypecheck(1)
    	var_.MarkNonNil() // mapaccess always returns a non-nil pointer
    
    	n.Lhs[0] = var_
    	init.Append(walkExpr(n, init))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/reconcilers/peer_endpoint_lease_test.go

    	t.Cleanup(func() { server.Terminate(t) })
    
    	newFunc := func() runtime.Object { return &corev1.Endpoints{} }
    	newListFunc := func() runtime.Object { return &corev1.EndpointsList{} }
    	sc.Codec = apitesting.TestStorageCodec(codecs, corev1.SchemeGroupVersion)
    
    	s, dFunc, err := factory.Create(*sc.ForResource(schema.GroupResource{Resource: "endpoints"}), newFunc, newListFunc, "")
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. pkg/kube/informerfactory/factory.go

    	Start(stopCh <-chan struct{})
    
    	// InformerFor returns the SharedIndexInformer the provided type.
    	InformerFor(resource schema.GroupVersionResource, opts kubetypes.InformerOptions, newFunc NewInformerFunc) StartableInformer
    
    	// WaitForCacheSync blocks until all started informers' caches were synced
    	// or the stop channel gets closed.
    	WaitForCacheSync(stopCh <-chan struct{}) bool
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/factory.go

    func Create(c storagebackend.ConfigForResource, newFunc, newListFunc func() runtime.Object, resourcePrefix string) (storage.Interface, DestroyFunc, error) {
    	switch c.Type {
    	case storagebackend.StorageTypeETCD2:
    		return nil, nil, fmt.Errorf("%s is no longer a supported storage backend", c.Type)
    	case storagebackend.StorageTypeUnset, storagebackend.StorageTypeETCD3:
    		return newETCD3Storage(c, newFunc, newListFunc, resourcePrefix)
    	default:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 3.3K bytes
    - Viewed (0)
Back to top