- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for TFlag (0.05 sec)
-
src/internal/abi/type.go
) const ( // TODO (khr, drchase) why aren't these in TFlag? Investigate, fix if possible. KindDirectIface Kind = 1 << 5 KindGCProg Kind = 1 << 6 // Type.gc points to GC program KindMask Kind = (1 << 5) - 1 ) // TFlag is used by a Type to signal what extra type information is // available in the memory directly following the Type value. type TFlag uint8 const (
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/internal/abi/compiletype.go
// This exported function is in an internal package, so it may change to depend on ptrSize in the future. func UncommonSize() uint64 { return 4 + 2 + 2 + 4 + 4 } // TFlagOff returns the offset of Type.TFlag for a compilation target with a given ptrSize func TFlagOff(ptrSize int) int { return 2*ptrSize + 4 } // ITabTypeOff returns the offset of ITab.Type for a compilation target with a given ptrSize
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 08 03:01:24 UTC 2024 - 1.3K bytes - Viewed (0) -
src/cmd/link/internal/ld/decodesym.go
// Type.commonType.ptrdata func decodetypePtrdata(arch *sys.Arch, p []byte) int64 { return int64(decodeInuxi(arch, p[arch.PtrSize:], arch.PtrSize)) // 0x8 / 0x10 } // Type.commonType.tflag func decodetypeHasUncommon(arch *sys.Arch, p []byte) bool { return abi.TFlag(p[abi.TFlagOff(arch.PtrSize)])&abi.TFlagUncommon != 0 } // Type.FuncType.dotdotdot func decodetypeFuncDotdotdot(arch *sys.Arch, p []byte) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 16:25:18 UTC 2024 - 9.9K bytes - Viewed (0) -
src/runtime/type.go
} func (t rtype) string() string { s := t.nameOff(t.Str).Name() if t.TFlag&abi.TFlagExtraStar != 0 { return s[1:] } return s } func (t rtype) uncommon() *uncommontype { return t.Uncommon() } func (t rtype) name() string { if t.TFlag&abi.TFlagNamed == 0 { return "" } s := t.string() i := len(s) - 1 sqBrackets := 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 12.7K bytes - Viewed (0) -
src/reflect/type.go
// as the 'u uncommonType' field won't be accessed except when // tflag&abi.TFlagUncommon is set. return addToCache(toType(t)) } } typ.Str = resolveReflectName(newName(str, "", false, false)) if isRegularMemory(toType(&typ.Type)) { typ.TFlag = abi.TFlagRegularMemory } else { typ.TFlag = 0 } typ.Hash = hash typ.Size_ = size typ.PtrBytes = typeptrdata(&typ.Type)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 85.5K bytes - Viewed (0) -
src/runtime/alg.go
// - github.com/puzpuzpuz/xsync/v3 // // Do not remove or change the type signature. // See go.dev/issue/67401. // //go:linkname typehash func typehash(t *_type, p unsafe.Pointer, h uintptr) uintptr { if t.TFlag&abi.TFlagRegularMemory != 0 { // Handle ptr sizes specially, see issue 37086. switch t.Size_ { case 4: return memhash32(p, h) case 8: return memhash64(p, h) default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 13.6K bytes - Viewed (0) -
src/internal/reflectlite/type.go
} func (t rtype) uncommon() *uncommonType { return t.Uncommon() } func (t rtype) String() string { s := t.nameOff(t.Str).Name() if t.TFlag&abi.TFlagExtraStar != 0 { return s[1:] } return s } func (t rtype) common() *abi.Type { return t.Type } func (t rtype) exportedMethods() []abi.Method { ut := t.uncommon() if ut == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:01:54 UTC 2024 - 16.2K bytes - Viewed (0) -
src/cmd/go/internal/modload/import.go
// current version of the importing package. tFlag := "" if e.importerIsTest { tFlag = " -t" } version := "" if e.importerVersion != "" { version = "@" + e.importerVersion } hint = fmt.Sprintf("; to add:\n\tgo get%s %s%s", tFlag, e.importer, version) } return message + hint }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 15:21:14 UTC 2024 - 27.7K bytes - Viewed (0) -
src/runtime/iface.go
// //go:linkname getitab func getitab(inter *interfacetype, typ *_type, canfail bool) *itab { if len(inter.Methods) == 0 { throw("internal error - misuse of itab") } // easy case if typ.TFlag&abi.TFlagUncommon == 0 { if canfail { return nil } name := toRType(&inter.Type).nameOff(inter.Methods[0].Name) panic(&TypeAssertionError{nil, typ, &inter.Type, name.Name()}) } var m *itab
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 22.5K bytes - Viewed (0) -
src/runtime/mgcsweep.go
if debug.efence > 0 { s.limit = 0 // prevent mlookup from finding this span sysFault(unsafe.Pointer(s.base()), size) } else { mheap_.freeSpan(s) } if s.largeType != nil && s.largeType.TFlag&abi.TFlagUnrolledBitmap != 0 { // The unrolled GCProg bitmap is allocated separately. // Free the space for the unrolled bitmap. systemstack(func() { s := spanOf(uintptr(unsafe.Pointer(s.largeType)))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:52:18 UTC 2024 - 32.9K bytes - Viewed (0)