Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 138 for _typ (0.07 sec)

  1. 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)
  2. src/reflect/makefunc.go

    func MakeFunc(typ Type, fn func(args []Value) (results []Value)) Value {
    	if typ.Kind() != Func {
    		panic("reflect: call of MakeFunc with non-Func type")
    	}
    
    	t := typ.common()
    	ftyp := (*funcType)(unsafe.Pointer(t))
    
    	code := abi.FuncPCABI0(makeFuncStub)
    
    	// makeFuncImpl contains a stack map for use by the runtime
    	_, _, abid := funcLayout(ftyp, nil)
    
    	impl := &makeFuncImpl{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:20:05 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. src/runtime/unsafe.go

    	}
    }
    
    // Keep this code in sync with cmd/compile/internal/walk/builtin.go:walkUnsafeSlice
    func unsafeslice64(et *_type, ptr unsafe.Pointer, len64 int64) {
    	len := int(len64)
    	if int64(len) != len64 {
    		panicunsafeslicelen1(getcallerpc())
    	}
    	unsafeslice(et, ptr, len)
    }
    
    func unsafeslicecheckptr(et *_type, ptr unsafe.Pointer, len64 int64) {
    	unsafeslice64(et, ptr, len64)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:51:18 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/encoding/gob/decode.go

    	state.decodeUint()
    	// Read the concrete value.
    	v := allocValue(typ)
    	dec.decodeValue(concreteId, v)
    	if dec.err != nil {
    		error_(dec.err)
    	}
    	// Assign the concrete value to the interface.
    	// Tread carefully; it might not satisfy the interface.
    	if !typ.AssignableTo(ityp) {
    		errorf("%s is not assignable to type %s", typ, ityp)
    	}
    	// Copy the interface value to the target.
    	value.Set(v)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:10:23 UTC 2023
    - 40.1K 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