Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 36 for efaceOf (0.15 sec)

  1. src/runtime/gcinfo_test.go

    	verifyGCInfo(t, "bss BigStruct", &bssBigStruct, infoBigStruct())
    	verifyGCInfo(t, "bss string", &bssString, infoString)
    	verifyGCInfo(t, "bss slice", &bssSlice, infoSlice)
    	verifyGCInfo(t, "bss eface", &bssEface, infoEface)
    	verifyGCInfo(t, "bss iface", &bssIface, infoIface)
    
    	verifyGCInfo(t, "data Ptr", &dataPtr, infoPtr)
    	verifyGCInfo(t, "data ScalarPtr", &dataScalarPtr, infoScalarPtr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:58:08 UTC 2023
    - 6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/object_test.go

    func TestEmbeddedMethod(t *testing.T) {
    	const src = `package p; type I interface { error }`
    	pkg := mustTypecheck(src, nil, nil)
    
    	// get original error.Error method
    	eface := Universe.Lookup("error")
    	orig, _, _ := LookupFieldOrMethod(eface.Type(), false, nil, "Error")
    	if orig == nil {
    		t.Fatalf("original error.Error not found")
    	}
    
    	// get embedded error.Error method
    	iface := pkg.Scope().Lookup("I")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. src/sync/export_test.go

    // poolDequeue testing.
    type PoolDequeue interface {
    	PushHead(val any) bool
    	PopHead() (any, bool)
    	PopTail() (any, bool)
    }
    
    func NewPoolDequeue(n int) PoolDequeue {
    	d := &poolDequeue{
    		vals: make([]eface, n),
    	}
    	// For testing purposes, set the head and tail indexes close
    	// to wrapping around.
    	d.headTail.Store(d.pack(1<<dequeueBits-500, 1<<dequeueBits-500))
    	return d
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 16:39:52 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  4. src/go/types/object_test.go

    func TestEmbeddedMethod(t *testing.T) {
    	const src = `package p; type I interface { error }`
    	pkg := mustTypecheck(src, nil, nil)
    
    	// get original error.Error method
    	eface := Universe.Lookup("error")
    	orig, _, _ := LookupFieldOrMethod(eface.Type(), false, nil, "Error")
    	if orig == nil {
    		t.Fatalf("original error.Error not found")
    	}
    
    	// get embedded error.Error method
    	iface := pkg.Scope().Lookup("I")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. 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)
  6. src/cmd/internal/goobj/builtinlist.go

    	{"runtime.panicdottypeE", 1},
    	{"runtime.panicdottypeI", 1},
    	{"runtime.panicnildottype", 1},
    	{"runtime.typeAssert", 1},
    	{"runtime.interfaceSwitch", 1},
    	{"runtime.ifaceeq", 1},
    	{"runtime.efaceeq", 1},
    	{"runtime.panicrangestate", 1},
    	{"runtime.deferrangefunc", 1},
    	{"runtime.rand32", 1},
    	{"runtime.makemap64", 1},
    	{"runtime.makemap", 1},
    	{"runtime.makemap_small", 1},
    	{"runtime.mapaccess1", 1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    func interfaceSwitch(s *byte, t *byte) (int, *byte)
    
    // interface equality. Type/itab pointers are already known to be equal, so
    // we only need to pass one.
    func ifaceeq(tab *uintptr, x, y unsafe.Pointer) (ret bool)
    func efaceeq(typ *uintptr, x, y unsafe.Pointer) (ret bool)
    
    // panic for various rangefunc iterator errors
    func panicrangestate(state int)
    
    // defer in range over func
    func deferrangefunc() interface{}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  10. 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)
Back to top