- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for mapaccess2 (0.18 sec)
-
src/cmd/compile/internal/walk/walk.go
func mkmapnames(base string, ptr string) mapnames { return mapnames{base, base + "_fast32", base + "_fast32" + ptr, base + "_fast64", base + "_fast64" + ptr, base + "_faststr"} } var mapaccess1 = mkmapnames("mapaccess1", "") var mapaccess2 = mkmapnames("mapaccess2", "") var mapassign = mkmapnames("mapassign", "ptr") var mapdelete = mkmapnames("mapdelete", "") func mapfast(t *types.Type) int { if t.Elem().Size() > abi.MapMaxElemBytes {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 27 20:56:00 UTC 2024 - 10.4K bytes - Viewed (0) -
src/cmd/compile/internal/walk/assign.go
fast := mapfast(t) key := mapKeyArg(fast, r, r.Index, false) // from: // a,b = m[i] // to: // var,b = mapaccess2*(t, m, i) // a = *var a := n.Lhs[0] var call *ir.CallExpr if w := t.Elem().Size(); w <= abi.ZeroValSize { fn := mapfn(mapaccess2[fast], t, false) call = mkcall1(fn, fn.Type().ResultsTuple(), init, reflectdata.IndexMapRType(base.Pos, r), r.X, key) } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:09:06 UTC 2024 - 20.3K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/_builtin/runtime.go
func mapaccess1_fat(mapType *byte, hmap map[any]any, key *any, zero *byte) (val *any) func mapaccess2(mapType *byte, hmap map[any]any, key *any) (val *any, pres bool) func mapaccess2_fast32(mapType *byte, hmap map[any]any, key uint32) (val *any, pres bool) func mapaccess2_fast64(mapType *byte, hmap map[any]any, key uint64) (val *any, pres bool)
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/typecheck/builtin.go
{"rand32", funcTag, 75}, {"makemap64", funcTag, 77}, {"makemap", funcTag, 78}, {"makemap_small", funcTag, 79}, {"mapaccess1", funcTag, 80}, {"mapaccess1_fast32", funcTag, 81}, {"mapaccess1_fast64", funcTag, 82}, {"mapaccess1_faststr", funcTag, 83}, {"mapaccess1_fat", funcTag, 84}, {"mapaccess2", funcTag, 85}, {"mapaccess2_fast32", funcTag, 86}, {"mapaccess2_fast64", funcTag, 87}, {"mapaccess2_faststr", funcTag, 88},
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/cmd/compile/internal/walk/expr.go
args = append(args, reflectdata.ZeroAddr(t.Elem().Size())) mapFn = mapfn("mapaccess1_fat", t, true) default: mapFn = mapfn(mapaccess1[fast], t, false) } call := mkcall1(mapFn, nil, init, args...) call.SetType(types.NewPtr(t.Elem())) call.MarkNonNil() // mapaccess1* and mapassign always return non-nil pointers. star := ir.NewStarExpr(base.Pos, call) star.SetType(t.Elem()) star.SetTypecheck(1) return star
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:34:01 UTC 2024 - 27.6K bytes - Viewed (0)