Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 36 of 36 for efaceOf (0.13 sec)

  1. src/internal/abi/type.go

    func TypeOf(a any) *Type {
    	eface := *(*EmptyInterface)(unsafe.Pointer(&a))
    	// Types are either static (for compiler-created types) or
    	// heap-allocated but always reachable (for reflection-created
    	// types, held in the central map). So there is no need to
    	// escape types. noescape here help avoid unnecessary escape
    	// of v.
    	return (*Type)(NoEscape(unsafe.Pointer(eface.Type)))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/builtin.go

    	{"panicdottypeE", funcTag, 68},
    	{"panicdottypeI", funcTag, 68},
    	{"panicnildottype", funcTag, 69},
    	{"typeAssert", funcTag, 67},
    	{"interfaceSwitch", funcTag, 70},
    	{"ifaceeq", funcTag, 72},
    	{"efaceeq", funcTag, 72},
    	{"panicrangestate", funcTag, 73},
    	{"deferrangefunc", funcTag, 74},
    	{"rand32", funcTag, 75},
    	{"makemap64", funcTag, 77},
    	{"makemap", funcTag, 78},
    	{"makemap_small", funcTag, 79},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  3. src/runtime/syscall_windows.go

    // cdecl calling convention; otherwise, it will use stdcall. On amd64,
    // it always uses fastcall. On arm, it always uses the ARM convention.
    //
    //go:linkname compileCallback syscall.compileCallback
    func compileCallback(fn eface, cdecl bool) (code uintptr) {
    	if GOARCH != "386" {
    		// cdecl is only meaningful on 386.
    		cdecl = false
    	}
    
    	if fn._type == nil || (fn._type.Kind_&abi.KindMask) != abi.Func {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  4. src/runtime/hash_test.go

    	return 64
    }
    func (k *EfaceKey) flipBit(i int) {
    	k.i = k.i.(uint64) ^ uint64(1)<<uint(i)
    }
    func (k *EfaceKey) hash() uintptr {
    	return EfaceHash(k.i, 0)
    }
    func (k *EfaceKey) name() string {
    	return "Eface"
    }
    
    type IfaceKey struct {
    	i interface {
    		F()
    	}
    }
    type fInter uint64
    
    func (x fInter) F() {
    }
    
    func (k *IfaceKey) clear() {
    	k.i = nil
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 17:50:18 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  5. src/reflect/value.go

    func (v Value) Elem() Value {
    	k := v.kind()
    	switch k {
    	case Interface:
    		var eface any
    		if v.typ().NumMethod() == 0 {
    			eface = *(*any)(v.ptr)
    		} else {
    			eface = (any)(*(*interface {
    				M()
    			})(v.ptr))
    		}
    		x := unpackEface(eface)
    		if x.flag != 0 {
    			x.flag |= v.flag.ro()
    		}
    		return x
    	case Pointer:
    		ptr := v.ptr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  6. src/cmd/link/internal/ld/dwarf.go

    		arch:     ctxt.Arch,
    		tmap:     make(map[string]loader.Sym),
    		tdmap:    make(map[loader.Sym]loader.Sym),
    		rtmap:    make(map[loader.Sym]loader.Sym),
    	}
    	d.typeRuntimeEface = d.lookupOrDiag("type:runtime.eface")
    	d.typeRuntimeIface = d.lookupOrDiag("type:runtime.iface")
    
    	if ctxt.HeadType == objabi.Haix {
    		// Initial map used to store package size for each DWARF section.
    		dwsectCUSize = make(map[string]uint64)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
Back to top