- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for LinkString (0.19 sec)
-
src/cmd/compile/internal/types/fmt.go
return tconv(t, 0, fmtGo) } // LinkString returns a string description of t, suitable for use in // link symbols. // // The description corresponds to type identity. That is, for any pair // of types t1 and t2, Identical(t1, t2) == (t1.LinkString() == // t2.LinkString()) is true. Thus it's safe to use as a map key to // implement a type-identity-keyed map. func (t *Type) LinkString() string { return tconv(t, 0, fmtTypeID) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 15:41:17 UTC 2023 - 15.7K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/stackalloc.go
// continue // } //} } // For each type, we keep track of all the stack slots we // have allocated for that type. This map is keyed by // strings returned by types.LinkString. This guarantees // type equality, but also lets us match the same type represented // by two different types.Type structures. See issue 65783. locations := map[string][]LocalSlot{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 21:29:41 UTC 2024 - 12.6K bytes - Viewed (0) -
src/cmd/compile/internal/walk/order.go
type orderState struct { out []ir.Node // list of generated statements temp []*ir.Name // stack of temporary variables free map[string][]*ir.Name // free list of unused temporaries, by type.LinkString(). edit func(ir.Node) ir.Node // cached closure of o.exprNoLHS } // order rewrites fn.Nbody to apply the ordering constraints // described in the comment at the top of the file. func order(fn *ir.Func) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 02:00:33 UTC 2024 - 42.7K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/stmt.go
} } type typeSet struct { m map[string]src.XPos } func (s *typeSet) add(pos src.XPos, typ *types.Type) { if s.m == nil { s.m = make(map[string]src.XPos) } ls := typ.LinkString() if prev, ok := s.m[ls]; ok { base.ErrorfAt(pos, errors.DuplicateCase, "duplicate case %v in type switch\n\tprevious case at %s", typ, base.FmtPos(prev)) return } s.m[ls] = pos
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 15:10:54 UTC 2023 - 17.8K bytes - Viewed (0) -
src/cmd/compile/internal/types/type.go
} func TypeSymLookup(name string) *Sym { typepkgmu.Lock() s := typepkg.Lookup(name) typepkgmu.Unlock() return s } func TypeSymName(t *Type) string { name := t.LinkString() // Use a separate symbol name for Noalg types for #17752. if TypeHasNoAlg(t) { name = "noalg." + name } return name } // Fake package for runtime type info (headers)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 49.5K bytes - Viewed (0) -
src/cmd/link/internal/loader/loader.go
func (reporter *ErrorReporter) Errorf(s Sym, format string, args ...interface{}) { if s != 0 && reporter.ldr.SymName(s) != "" { // Note: Replace is needed here because symbol names might have % in them, // due to the use of LinkString for names of instantiating types. format = strings.Replace(reporter.ldr.SymName(s), "%", "%%", -1) + ": " + format } else { format = fmt.Sprintf("sym %d: %s", s, format) } format += "\n"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 20:26:10 UTC 2024 - 81.5K bytes - Viewed (0) -
src/net/netip/netip_test.go
b.ReportAllocs() for i := 0; i < b.N; i++ { sinkString = ip.String() } }) } } func BenchmarkIPStringExpanded(b *testing.B) { for _, test := range parseBenchInputs { ip := MustParseAddr(test.ip) b.Run(test.name, func(b *testing.B) { b.ReportAllocs() for i := 0; i < b.N; i++ { sinkString = ip.StringExpanded() } }) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 17:10:01 UTC 2024 - 54.3K bytes - Viewed (0) -
src/cmd/cgo/internal/test/test.go
} if !x { b.Fatal("nestedCall was not invoked") } } var sinkString string func benchGoString(b *testing.B) { for i := 0; i < b.N; i++ { sinkString = C.GoString(C.cstr) } const want = "abcefghijklmnopqrstuvwxyzABCEFGHIJKLMNOPQRSTUVWXYZ1234567890" if sinkString != want { b.Fatalf("%q != %q", sinkString, want) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 48.5K bytes - Viewed (0)