- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for mapaccess2 (0.29 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/internal/goobj/builtinlist.go
{"runtime.rand32", 1}, {"runtime.makemap64", 1}, {"runtime.makemap", 1}, {"runtime.makemap_small", 1}, {"runtime.mapaccess1", 1}, {"runtime.mapaccess1_fast32", 1}, {"runtime.mapaccess1_fast64", 1}, {"runtime.mapaccess1_faststr", 1}, {"runtime.mapaccess1_fat", 1}, {"runtime.mapaccess2", 1}, {"runtime.mapaccess2_fast32", 1}, {"runtime.mapaccess2_fast64", 1}, {"runtime.mapaccess2_faststr", 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) -
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/runtime/map.go
} } return unsafe.Pointer(&zeroVal[0]) } // mapaccess2 should be an internal detail, // but widely used packages access it using linkname. // Notable members of the hall of shame include: // - github.com/ugorji/go/codec // // Do not remove or change the type signature. // See go.dev/issue/67401. // //go:linkname mapaccess2 func mapaccess2(t *maptype, h *hmap, key unsafe.Pointer) (unsafe.Pointer, bool) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 57.6K 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) -
test/live.go
m2s[str()] = f17d() // ERROR "live at call to f17d: .autotmp_[0-9]+$" "live at call to mapassign_faststr: .autotmp_[0-9]+$" } func f17d() *byte func g18() [2]string func f18() { // key temporary for mapaccess. // temporary introduced by orderexpr. var z *byte if b { z = m2[g18()] // ERROR "stack object .autotmp_[0-9]+ \[2\]string$" } z = m2[g18()] z = m2[g18()] printbytepointer(z) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 18K bytes - Viewed (0) -
test/live_regabi.go
m2s[str()] = f17d() // ERROR "live at call to f17d: .autotmp_[0-9]+$" "live at call to mapassign_faststr: .autotmp_[0-9]+$" } func f17d() *byte func g18() [2]string func f18() { // key temporary for mapaccess. // temporary introduced by orderexpr. var z *byte if b { z = m2[g18()] // ERROR "stack object .autotmp_[0-9]+ \[2\]string$" } z = m2[g18()] z = m2[g18()] printbytepointer(z) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 18.4K bytes - Viewed (0) -
src/reflect/value.go
} else { key = key.assignTo("reflect.Value.MapIndex", tt.Key, nil) var k unsafe.Pointer if key.flag&flagIndir != 0 { k = key.ptr } else { k = unsafe.Pointer(&key.ptr) } e = mapaccess(v.typ(), v.pointer(), k) } if e == nil { return Value{} } typ := tt.Elem fl := (v.flag | key.flag).ro() fl |= flag(typ.Kind()) return copyVal(typ, fl, e) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:17:41 UTC 2024 - 119.9K bytes - Viewed (0)