Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for rcvr (0.15 sec)

  1. src/net/rpc/server.go

    const logRegisterError = false
    
    func (server *Server) register(rcvr any, name string, useName bool) error {
    	s := new(service)
    	s.typ = reflect.TypeOf(rcvr)
    	s.rcvr = reflect.ValueOf(rcvr)
    	sname := name
    	if !useName {
    		sname = reflect.Indirect(s.rcvr).Type().Name()
    	}
    	if sname == "" {
    		s := "rpc.Register: no service name for type " + s.typ.String()
    		log.Print(s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  2. src/cmd/fix/typecheck.go

    		if fn.Recv != nil {
    			// The receiver must be a type.
    			rcvr := typeof[fn.Recv]
    			if !isType(rcvr) {
    				if len(fn.Recv.List) != 1 {
    					continue
    				}
    				rcvr = mkType(gofmt(fn.Recv.List[0].Type))
    				typeof[fn.Recv.List[0].Type] = rcvr
    			}
    			rcvr = getType(rcvr)
    			if rcvr != "" && rcvr[0] == '*' {
    				rcvr = rcvr[1:]
    			}
    			typeof[rcvr+"."+fn.Name.Name] = t
    		} else {
    			if isType(t) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 16 22:02:42 UTC 2022
    - 20.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/typecheck.go

    		tt := n.X.Type()
    		types.CalcSize(tt)
    		rcvr := f2.Type.Recv().Type
    		if !types.Identical(rcvr, tt) {
    			if rcvr.IsPtr() && types.Identical(rcvr.Elem(), tt) {
    				checklvalue(n.X, "call pointer method on")
    				addr := NodAddr(n.X)
    				addr.SetImplicit(true)
    				n.X = typecheck(addr, ctxType|ctxExpr)
    			} else if tt.IsPtr() && (!rcvr.IsPtr() || rcvr.IsPtr() && rcvr.Elem().NotInHeap()) && types.Identical(tt.Elem(), rcvr) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  4. src/reflect/abi.go

    // abiStep describing that translation, and nil otherwise.
    // Returns true if the receiver is a pointer.
    func (a *abiSeq) addRcvr(rcvr *abi.Type) (*abiStep, bool) {
    	// The receiver is always one word.
    	a.valueStart = append(a.valueStart, len(a.steps))
    	var ok, ptr bool
    	if rcvr.IfaceIndir() || rcvr.Pointers() {
    		ok = a.assignIntN(0, goarch.PtrSize, 1, 0b1)
    		ptr = true
    	} else {
    		// TODO(mknyszek): Is this case even possible?
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:08:32 UTC 2024
    - 15K bytes
    - Viewed (0)
  5. pkg/kubelet/volumemanager/reconciler/reconstruct_common.go

    	defer rc.timeOfLastSyncLock.Unlock()
    	return !rc.timeOfLastSync.IsZero()
    }
    
    func (gvi *globalVolumeInfo) addPodVolume(rcv *reconstructedVolume) {
    	if gvi.podVolumes == nil {
    		gvi.podVolumes = map[volumetypes.UniquePodName]*reconstructedVolume{}
    	}
    	gvi.podVolumes[rcv.podName] = rcv
    }
    
    func (rc *reconciler) cleanupMounts(volume podVolume) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/arch/x86/x86asm/gnu.go

    SuffixLoop:
    	for i, a := range inst.Args {
    		if a == nil {
    			break
    		}
    		switch a := a.(type) {
    		case Reg:
    			switch inst.Op {
    			case MOVSX, MOVZX:
    				continue
    
    			case SHL, SHR, RCL, RCR, ROL, ROR, SAR:
    				if i == 1 {
    					// shift count does not tell us operand size
    					continue
    				}
    
    			case CRC32:
    				// The source argument does tell us operand size,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 21.4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/expand_calls.go

    		for i, x := range *c.regValues {
    			if i > 0 {
    				regs = regs + "; "
    			}
    			regs = regs + x.LongString()
    		}
    	}
    
    	// not printing the config because that has not been useful
    	return fmt.Sprintf("RCSR{storeDest=%v, regsLen=%d, nextSlice=%d, regValues=[%s]}", dest, len(c.regs), c.nextSlice, regs)
    }
    
    // next effectively post-increments the register cursor; the receiver is advanced,
    // the (aligned) old value is returned.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 05:13:40 UTC 2023
    - 31.9K bytes
    - Viewed (0)
Back to top