Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 183 for iface (0.05 sec)

  1. src/cmd/link/internal/ld/deadcode.go

    				if d.ctxt.Debugvlog > 1 {
    					d.ctxt.Logf("reached iface method: %v\n", m)
    				}
    				d.ifaceMethod[m] = true
    				continue
    			case objabi.R_USENAMEDMETHOD:
    				name := d.decodeGenericIfaceMethod(d.ldr, r.Sym())
    				if d.ctxt.Debugvlog > 1 {
    					d.ctxt.Logf("reached generic iface method: %s\n", name)
    				}
    				d.genericIfaceMethod[name] = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 14:52:41 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. src/runtime/iface_test.go

    	if runtime.Compiler != "gc" {
    		t.Skip("skipping on non-gc compiler")
    	}
    
    	n := testing.AllocsPerRun(1, func() {
    		_ = e == ts
    		_ = i1 == ts
    		_ = e == 1
    	})
    
    	if n > 0 {
    		t.Fatalf("iface cmp allocs=%v; want 0", n)
    	}
    }
    
    func BenchmarkEqEfaceConcrete(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		_ = e == ts
    	}
    }
    
    func BenchmarkEqIfaceConcrete(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 7.5K bytes
    - Viewed (0)
  3. src/runtime/runtime-gdb_test.go

    		}
    	}
    }
    
    const autotmpTypeSource = `
    package main
    
    type astruct struct {
    	a, b int
    }
    
    func main() {
    	var iface interface{} = map[string]astruct{}
    	var iface2 interface{} = []astruct{}
    	println(iface, iface2)
    }
    `
    
    // TestGdbAutotmpTypes ensures that types of autotmp variables appear in .debug_info
    // See bug #17830.
    func TestGdbAutotmpTypes(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/infer.go

    					//           (which will compare signatures exactly as we do below).
    					//           We leave it as is for now because missingMethod provides
    					//           a failure cause which allows for a better error message.
    					//           Eventually, unify should return an error with cause.
    					var cause string
    					constraint := tpar.iface()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  5. src/go/types/infer.go

    					//           (which will compare signatures exactly as we do below).
    					//           We leave it as is for now because missingMethod provides
    					//           a failure cause which allows for a better error message.
    					//           Eventually, unify should return an error with cause.
    					var cause string
    					constraint := tpar.iface()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go

    	if !sig.Variadic() {
    		return nil // not variadic
    	}
    
    	params := sig.Params()
    	nparams := params.Len() // variadic => nonzero
    
    	args := params.At(nparams - 1)
    	iface, ok := args.Type().(*types.Slice).Elem().(*types.Interface)
    	if !ok || !iface.Empty() {
    		return nil // final (args) param is not ...interface{}
    	}
    
    	// Is second last param 'format string'?
    	var format *types.Var
    	if nparams >= 2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssagen/ssa.go

    	s.startBlock(bOk)
    	if tmp == nil {
    		if direct {
    			s.vars[valVar] = s.newValue1(ssa.OpIData, dst, iface)
    		} else {
    			p := s.newValue1(ssa.OpIData, types.NewPtr(dst), iface)
    			s.vars[valVar] = s.load(dst, p)
    		}
    	} else {
    		p := s.newValue1(ssa.OpIData, types.NewPtr(dst), iface)
    		s.move(dst, addr, p)
    	}
    	s.vars[okVar] = s.constBool(true)
    	s.endBlock()
    	bOk.AddEdgeTo(bEnd)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  8. src/runtime/mfinal.go

    					ityp := (*interfacetype)(unsafe.Pointer(f.fint))
    					// set up with empty interface
    					(*eface)(r)._type = &f.ot.Type
    					(*eface)(r).data = f.arg
    					if len(ityp.Methods) != 0 {
    						// convert to interface with methods
    						// this conversion is guaranteed to succeed - we checked in SetFinalizer
    						(*iface)(r).tab = assertE2I(ityp, (*eface)(r)._type)
    					}
    				default:
    					throw("bad kind in runfinq")
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 01:56:56 UTC 2024
    - 19K bytes
    - Viewed (0)
  9. src/encoding/xml/marshal.go

    			if dashLast {
    				// "--->" is invalid grammar. Make it "- -->"
    				p.WriteByte(' ')
    			}
    			p.WriteString("-->")
    			continue
    
    		case fInnerXML:
    			vf = indirect(vf)
    			iface := vf.Interface()
    			switch raw := iface.(type) {
    			case []byte:
    				p.Write(raw)
    				continue
    			case string:
    				p.WriteString(raw)
    				continue
    			}
    
    		case fElement, fElement | fAny:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/net/interface.go

    	scanner := bufio.NewReader(input)
    	for {
    		line, err := scanner.ReadString('\n')
    		if err == io.EOF {
    			break
    		}
    		//ignore the headers in the route info
    		if strings.HasPrefix(line, "Iface") {
    			continue
    		}
    		fields := strings.Fields(line)
    		// Interested in fields:
    		//  0 - interface name
    		//  1 - destination address
    		//  2 - gateway
    		dest, err := parseIP(fields[1], familyIPv4)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 27 07:07:03 UTC 2022
    - 14.7K bytes
    - Viewed (0)
Back to top