Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 45 for efaceeq (0.22 sec)

  1. src/internal/reflectlite/value.go

    // It returns the zero Value if v is nil.
    func (v Value) Elem() Value {
    	k := v.kind()
    	switch k {
    	case abi.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 abi.Pointer:
    		ptr := v.ptr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  2. src/runtime/arena.go

    func arena_arena_New(arena unsafe.Pointer, typ any) any {
    	t := (*_type)(efaceOf(&typ).data)
    	if t.Kind_&abi.KindMask != abi.Pointer {
    		throw("arena_New: non-pointer type")
    	}
    	te := (*ptrtype)(unsafe.Pointer(t)).Elem
    	x := ((*userArena)(arena)).new(te)
    	var result any
    	e := efaceOf(&result)
    	e._type = t
    	e.data = x
    	return result
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:44:56 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  3. src/runtime/cgocall.go

    		return
    	}
    
    	ep := efaceOf(&ptr)
    	t := ep._type
    
    	top := true
    	if arg != nil && (t.Kind_&abi.KindMask == abi.Pointer || t.Kind_&abi.KindMask == abi.UnsafePointer) {
    		p := ep.data
    		if t.Kind_&abi.KindDirectIface == 0 {
    			p = *(*unsafe.Pointer)(p)
    		}
    		if p == nil || !cgoIsGoPointer(p) {
    			return
    		}
    		aep := efaceOf(&arg)
    		switch aep._type.Kind_ & abi.KindMask {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  4. src/runtime/print.go

    func printstring(s string) {
    	gwrite(bytes(s))
    }
    
    func printslice(s []byte) {
    	sp := (*slice)(unsafe.Pointer(&s))
    	print("[", len(s), "/", cap(s), "]")
    	printpointer(sp.array)
    }
    
    func printeface(e eface) {
    	print("(", e._type, ",", e.data, ")")
    }
    
    func printiface(i iface) {
    	print("(", i.tab, ",", i.data, ")")
    }
    
    // hexdumpWords prints a word-oriented hex dump of [p, end).
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 03:27:26 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  5. src/cmd/cgo/out.go

    	const struct __go_type_descriptor *__type_descriptor;
    	void *__object;
    } Eface;
    
    extern void runtimeCgoCheckPointer(Eface, Eface)
    	__asm__("runtime.cgoCheckPointer")
    	__attribute__((weak));
    
    extern void localCgoCheckPointer(Eface, Eface)
    	__asm__("GCCGOSYMBOLPREF._cgoCheckPointer");
    
    void localCgoCheckPointer(Eface ptr, Eface arg) {
    	if(runtimeCgoCheckPointer) {
    		runtimeCgoCheckPointer(ptr, arg);
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  6. test/maplinear.go

    		nan := math.NaN()
    		for i := 0; i < n; i++ {
    			m[nan] = 1
    		}
    		if len(m) != n {
    			panic("wrong size map after nan insertion")
    		}
    	})
    
    	// ~6ms on a 1.6GHz Zeon.
    	checkLinear("eface", 10000, func(n int) {
    		m := map[interface{}]int{}
    		for i := 0; i < n; i++ {
    			m[i] = 1
    		}
    	})
    
    	// ~7ms on a 1.6GHz Zeon.
    	// Regression test for CL 119360043.
    	checkLinear("iface", 10000, func(n int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  7. src/runtime/netpoll.go

    // must be stored in interfaces indirectly. See issue 42076.
    func (pd *pollDesc) makeArg() (i any) {
    	x := (*eface)(unsafe.Pointer(&i))
    	x._type = pdType
    	x.data = unsafe.Pointer(&pd.self)
    	return
    }
    
    var (
    	pdEface any    = (*pollDesc)(nil)
    	pdType  *_type = efaceOf(&pdEface)._type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  8. src/runtime/stkframe.go

    		}
    	}
    
    	return
    }
    
    var methodValueCallFrameObjs [1]stackObjectRecord // initialized in stackobjectinit
    
    func stkobjinit() {
    	var abiRegArgsEface any = abi.RegArgs{}
    	abiRegArgsType := efaceOf(&abiRegArgsEface)._type
    	if abiRegArgsType.Kind_&abi.KindGCProg != 0 {
    		throw("abiRegArgsType needs GC Prog, update methodValueCallFrameObjs")
    	}
    	// Set methodValueCallFrameObjs[0].gcdataoff so that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/reflectdata/helpers.go

    	base.AssertfAt(dst.IsInterface(), n.Pos(), "want interface type, have %L", n)
    	if hasRType(n, n.TypeWord, "TypeWord") {
    		return n.TypeWord
    	}
    	if dst.IsEmptyInterface() {
    		return concreteRType(pos, src) // direct eface construction
    	}
    	if !src.IsInterface() {
    		return ITabAddrAt(pos, src, dst) // direct iface construction
    	}
    	return TypePtrAt(pos, dst) // convI2I
    }
    
    // ConvIfaceSrcRType asserts that n is a conversion from
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 04:50:32 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  10. src/runtime/runtime2.go

    type funcval struct {
    	fn uintptr
    	// variable-size, fn-specific data here
    }
    
    type iface struct {
    	tab  *itab
    	data unsafe.Pointer
    }
    
    type eface struct {
    	_type *_type
    	data  unsafe.Pointer
    }
    
    func efaceOf(ep *any) *eface {
    	return (*eface)(unsafe.Pointer(ep))
    }
    
    // The guintptr, muintptr, and puintptr are all used to bypass write barriers.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
Back to top