Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 87 for _typ (0.03 sec)

  1. src/go/types/typeparam.go

    		id = check.nextID
    	}
    	typ := &TypeParam{check: check, id: id, obj: obj, index: -1, bound: constraint}
    	if obj.typ == nil {
    		obj.typ = typ
    	}
    	// iface may mutate typ.bound, so we must ensure that iface() is called
    	// at least once before the resulting TypeParam escapes.
    	if check != nil {
    		check.needsCleanup(typ)
    	} else if constraint != nil {
    		typ.iface()
    	}
    	return typ
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/typeset.go

    	if tset, _ := unionSets[utyp]; tset != nil {
    		return tset
    	}
    
    	// avoid infinite recursion (see also computeInterfaceTypeSet)
    	unionSets[utyp] = new(_TypeSet)
    
    	var allTerms termlist
    	for _, t := range utyp.terms {
    		var terms termlist
    		u := under(t.typ)
    		if ui, _ := u.(*Interface); ui != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  3. src/go/types/typeset.go

    	if tset, _ := unionSets[utyp]; tset != nil {
    		return tset
    	}
    
    	// avoid infinite recursion (see also computeInterfaceTypeSet)
    	unionSets[utyp] = new(_TypeSet)
    
    	var allTerms termlist
    	for _, t := range utyp.terms {
    		var terms termlist
    		u := under(t.typ)
    		if ui, _ := u.(*Interface); ui != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  4. src/runtime/type.go

    		return
    	}
    	typehash := make(map[uint32][]*_type, len(firstmoduledata.typelinks))
    
    	modules := activeModules()
    	prev := modules[0]
    	for _, md := range modules[1:] {
    		// Collect types from the previous module into typehash.
    	collect:
    		for _, tl := range prev.typelinks {
    			var t *_type
    			if prev.typemap == nil {
    				t = (*_type)(unsafe.Pointer(prev.types + uintptr(tl)))
    			} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  5. src/runtime/mbarrier.go

    func reflect_typedmemclr(typ *_type, ptr unsafe.Pointer) {
    	typedmemclr(typ, ptr)
    }
    
    //go:linkname reflect_typedmemclrpartial reflect.typedmemclrpartial
    func reflect_typedmemclrpartial(typ *_type, ptr unsafe.Pointer, off, size uintptr) {
    	if writeBarrier.enabled && typ.Pointers() {
    		// Pass nil for the type. ptr does not point to value of type typ,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  6. src/runtime/export_debug_test.go

    	if tid == 0 {
    		return nil, plainError("missing tid")
    	}
    
    	f := efaceOf(&fn)
    	if f._type == nil || f._type.Kind_&abi.KindMask != abi.Func {
    		return nil, plainError("fn must be a function")
    	}
    	fv := (*funcval)(f.data)
    
    	a := efaceOf(&stackArgs)
    	if a._type != nil && a._type.Kind_&abi.KindMask != abi.Pointer {
    		return nil, plainError("args must be a pointer or nil")
    	}
    	argp := a.data
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. src/go/internal/gcimporter/ureader.go

    		idx = dict.derived[idx].idx
    	} else {
    		where = &pr.typs[idx]
    	}
    
    	if typ := *where; typ != nil {
    		return typ
    	}
    
    	var typ types.Type
    	{
    		r := pr.tempReader(pkgbits.RelocType, idx, pkgbits.SyncTypeIdx)
    		r.dict = dict
    
    		typ = r.doTyp()
    		assert(typ != nil)
    		pr.retireReader(r)
    	}
    	// See comment in pkgReader.typIdx explaining how this happens.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  8. src/runtime/alg.go

    	y := *(*iface)(q)
    	return x.tab == y.tab && ifaceeq(x.tab, x.data, y.data)
    }
    func nilinterequal(p, q unsafe.Pointer) bool {
    	x := *(*eface)(p)
    	y := *(*eface)(q)
    	return x._type == y._type && efaceeq(x._type, x.data, y.data)
    }
    func efaceeq(t *_type, x, y unsafe.Pointer) bool {
    	if t == nil {
    		return true
    	}
    	eq := t.Equal
    	if eq == nil {
    		panic(errorString("comparing uncomparable type " + toRType(t).string()))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/universe.go

    		typ.SetUnderlying(ityp)
    		def(obj)
    	}
    
    	// type comparable interface{} // marked as comparable
    	{
    		obj := NewTypeName(nopos, nil, "comparable", nil)
    		obj.setColor(black)
    		typ := NewNamed(obj, nil, nil)
    
    		// interface{} // marked as comparable
    		ityp := &Interface{complete: true, tset: &_TypeSet{nil, allTermlist, true}}
    
    		typ.SetUnderlying(ityp)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. src/go/types/universe.go

    		typ.SetUnderlying(ityp)
    		def(obj)
    	}
    
    	// type comparable interface{} // marked as comparable
    	{
    		obj := NewTypeName(nopos, nil, "comparable", nil)
    		obj.setColor(black)
    		typ := NewNamed(obj, nil, nil)
    
    		// interface{} // marked as comparable
    		ityp := &Interface{complete: true, tset: &_TypeSet{nil, allTermlist, true}}
    
    		typ.SetUnderlying(ityp)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top