Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 36 for newFunc (0.61 sec)

  1. src/cmd/compile/internal/ir/func.go

    type WasmImport struct {
    	Module string
    	Name   string
    }
    
    // NewFunc returns a new Func with the given name and type.
    //
    // fpos is the position of the "func" token, and npos is the position
    // of the name identifier.
    //
    // TODO(mdempsky): I suspect there's no need for separate fpos and
    // npos.
    func NewFunc(fpos, npos src.XPos, sym *types.Sym, typ *types.Type) *Func {
    	name := NewNameAt(npos, sym, typ)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go

    func (r *clientRecorder) GetReadsAndReset() uint64 {
    	return atomic.SwapUint64(&r.reads, 0)
    }
    
    type setupOptions struct {
    	client         func(testing.TB) *clientv3.Client
    	codec          runtime.Codec
    	newFunc        func() runtime.Object
    	newListFunc    func() runtime.Object
    	prefix         string
    	resourcePrefix string
    	groupResource  schema.GroupResource
    	transformer    value.Transformer
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/etcd3.go

    		compactor.refs--
    		if compactor.refs == 0 {
    			compactor.cancel()
    			compactor.client.Close()
    			delete(compactors, key)
    		}
    	}, nil
    }
    
    func newETCD3Storage(c storagebackend.ConfigForResource, newFunc, newListFunc func() runtime.Object, resourcePrefix string) (storage.Interface, DestroyFunc, error) {
    	stopCompactor, err := startCompactorOnce(c.Transport, c.CompactionInterval)
    	if err != nil {
    		return nil, nil, err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 07:56:39 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/func.go

    }
    
    type LocalSlotSplitKey struct {
    	parent *LocalSlot
    	Off    int64       // offset of slot in N
    	Type   *types.Type // type of slot
    }
    
    // NewFunc returns a new, empty function object.
    // Caller must reset cache before calling NewFunc.
    func (c *Config) NewFunc(fe Frontend, cache *Cache) *Func {
    	return &Func{
    		fe:     fe,
    		Config: c,
    		Cache:  cache,
    
    		NamedValues:          make(map[LocalSlot][]*Value),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  5. src/runtime/pprof/proto.go

    	// We can't write out functions while in the middle of the
    	// Location message, so record new functions we encounter and
    	// write them out after the Location.
    	type newFunc struct {
    		id         uint64
    		name, file string
    		startLine  int64
    	}
    	newFuncs := make([]newFunc, 0, 8)
    
    	id := uint64(len(b.locs)) + 1
    	b.locs[addr] = locInfo{
    		id:                     id,
    		pcs:                    append([]uintptr{}, b.deck.pcs...),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 13 20:40:52 UTC 2023
    - 25.7K bytes
    - Viewed (0)
  6. pkg/controlplane/reconcilers/lease.go

    	s.destroyFn()
    }
    
    // NewLeases creates a new etcd-based Leases implementation.
    func NewLeases(config *storagebackend.ConfigForResource, baseKey string, leaseTime time.Duration) (Leases, error) {
    	// note that newFunc, newListFunc and resourcePrefix
    	// can be left blank unless the storage.Watch method is used
    	leaseStorage, destroyFn, err := storagefactory.Create(*config, nil, nil, "")
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/reconcilers/peer_endpoint_lease.go

    func NewPeerEndpointLeaseReconciler(config *storagebackend.ConfigForResource, baseKey string, leaseTime time.Duration) (PeerEndpointLeaseReconciler, error) {
    	// note that newFunc, newListFunc and resourcePrefix
    	// can be left blank unless the storage.Watch method is used
    	leaseStorage, destroyFn, err := storagefactory.Create(*config, nil, nil, "")
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  8. src/go/internal/gccgoimporter/parser.go

    			results := p.parseResultList(pkg)
    			p.skipInlineBody()
    			p.expectEOL()
    
    			sig := types.NewSignatureType(receiver, nil, nil, params, results, isVariadic)
    			nt.AddMethod(types.NewFunc(token.NoPos, pkg, name, sig))
    		}
    	}
    
    	return nt
    }
    
    func (p *parser) parseInt64() int64 {
    	lit := p.expect(scanner.Int)
    	n, err := strconv.ParseInt(lit, 10, 64)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 23:14:07 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssagen/abi.go

    		return
    	}
    
    	// Reuse f's types.Sym to create a new ODCLFUNC/function.
    	// TODO(mdempsky): Means we can't set sym.Def in Declfunc, ugh.
    	fn := ir.NewFunc(pos, pos, f.Sym(), types.NewSignature(nil,
    		typecheck.NewFuncParams(ft.Params()),
    		typecheck.NewFuncParams(ft.Results())))
    	fn.ABI = wrapperABI
    	typecheck.DeclFunc(fn)
    
    	fn.SetABIWrapper(true)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/staticinit/sched.go

    	//		globmapvar = <map initialization>
    	//	}
    	//
    	// Note: cmd/link expects the function name to contain "map.init".
    	minitsym := typecheck.LookupNum("map.init.", mapinitgen)
    	mapinitgen++
    
    	fn := ir.NewFunc(n.Pos(), n.Pos(), minitsym, types.NewSignature(nil, nil, nil))
    	fn.SetInlinabilityChecked(true) // suppress inlining (which would defeat the point)
    	typecheck.DeclFunc(fn)
    	if base.Debug.WrapGlobalMapDbg > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top