- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 45 for efaceOf (0.35 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
src/go/printer/testdata/declarations.input
_ bool // a comment _ bool ) // don't lose blank lines in this struct type _ struct { String struct { Str, Len int } Slice struct { Array, Len, Cap int } Eface struct { Typ, Ptr int } UncommonType struct { Name, PkgPath int } CommonType struct { Size, Hash, Alg, Align, FieldAlign, String, UncommonType int } Type struct { Typ, Ptr int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 13 22:24:31 UTC 2021 - 16.5K bytes - Viewed (0) -
src/go/printer/testdata/declarations.golden
_ bool // a comment _ bool ) // don't lose blank lines in this struct type _ struct { String struct { Str, Len int } Slice struct { Array, Len, Cap int } Eface struct { Typ, Ptr int } UncommonType struct { Name, PkgPath int } CommonType struct { Size, Hash, Alg, Align, FieldAlign, String, UncommonType int } Type struct { Typ, Ptr int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 13 22:24:31 UTC 2021 - 16.2K bytes - Viewed (0) -
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)