- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for mapAssign (0.12 sec)
-
test/live.go
var x2 [2]string var bp *byte func f17a(p *byte) { // ERROR "live at entry to f17a: p$" if b { m2[x2] = p // ERROR "live at call to mapassign: p$" } m2[x2] = p // ERROR "live at call to mapassign: p$" m2[x2] = p // ERROR "live at call to mapassign: p$" } func f17b(p *byte) { // ERROR "live at entry to f17b: p$" // key temporary if b {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 18K bytes - Viewed (0) -
src/cmd/compile/internal/walk/walk.go
} 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 { return mapslow } switch reflectdata.AlgType(t.Key()) {
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/runtime/map_fast32.go
} if h.flags&hashWriting != 0 { fatal("concurrent map writes") } hash := t.Hasher(noescape(unsafe.Pointer(&key)), uintptr(h.hash0)) // Set hashWriting after calling t.hasher for consistency with mapassign. h.flags ^= hashWriting if h.buckets == nil { h.buckets = newobject(t.Bucket) // newarray(t.bucket, 1) } again: bucket := hash & bucketMask(h.B) if h.growing() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 13.9K bytes - Viewed (0) -
src/cmd/compile/internal/walk/order.go
// to symbol address reference later in walk. return } n.Fun = o.expr(n.Fun, nil) o.exprList(n.Args) } // mapAssign appends n to o.out. func (o *orderState) mapAssign(n ir.Node) { switch n.Op() { default: base.Fatalf("order.mapAssign %v", n.Op()) case ir.OAS: n := n.(*ir.AssignStmt) if n.X.Op() == ir.OINDEXMAP { n.Y = o.safeMapRHS(n.Y) }
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/runtime/map_fast64.go
} if h.flags&hashWriting != 0 { fatal("concurrent map writes") } hash := t.Hasher(noescape(unsafe.Pointer(&key)), uintptr(h.hash0)) // Set hashWriting after calling t.hasher for consistency with mapassign. h.flags ^= hashWriting if h.buckets == nil { h.buckets = newobject(t.Bucket) // newarray(t.bucket, 1) } again: bucket := hash & bucketMask(h.B) if h.growing() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 14.1K bytes - Viewed (0) -
src/cmd/internal/goobj/builtinlist.go
{"runtime.mapaccess1_fat", 1}, {"runtime.mapaccess2", 1}, {"runtime.mapaccess2_fast32", 1}, {"runtime.mapaccess2_fast64", 1}, {"runtime.mapaccess2_faststr", 1}, {"runtime.mapaccess2_fat", 1}, {"runtime.mapassign", 1}, {"runtime.mapassign_fast32", 1}, {"runtime.mapassign_fast32ptr", 1}, {"runtime.mapassign_fast64", 1}, {"runtime.mapassign_fast64ptr", 1}, {"runtime.mapassign_faststr", 1}, {"runtime.mapiterinit", 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) -
test/live_regabi.go
var x2 [2]string var bp *byte func f17a(p *byte) { // ERROR "live at entry to f17a: p$" if b { m2[x2] = p // ERROR "live at call to mapassign: p$" } m2[x2] = p // ERROR "live at call to mapassign: p$" m2[x2] = p // ERROR "live at call to mapassign: p$" } func f17b(p *byte) { // ERROR "live at entry to f17b: p$" // key temporary if b {
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/runtime/map.go
// // Do not remove or change the type signature. // See go.dev/issue/67401. // //go:linkname mapassign func mapassign(t *maptype, h *hmap, key unsafe.Pointer) unsafe.Pointer { if h == nil { panic(plainError("assignment to entry in nil map")) } if raceenabled { callerpc := getcallerpc() pc := abi.FuncPCABIInternal(mapassign) racewritepc(unsafe.Pointer(h), callerpc, pc) raceReadObjectPC(t.Key, key, callerpc, pc) }
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/walk/expr.go
if fast == mapslow { // standard version takes key by reference. // orderState.expr made sure key is addressable. return typecheck.NodAddr(key) } if assigned { // mapassign does distinguish pointer vs. integer key. return key } // mapaccess and mapdelete don't distinguish pointer vs. integer key. switch fast { case mapfast32ptr:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:34:01 UTC 2024 - 27.6K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/_builtin/runtime.go
func mapaccess2_faststr(mapType *byte, hmap map[any]any, key string) (val *any, pres bool) func mapaccess2_fat(mapType *byte, hmap map[any]any, key *any, zero *byte) (val *any, pres bool) func mapassign(mapType *byte, hmap map[any]any, key *any) (val *any) func mapassign_fast32(mapType *byte, hmap map[any]any, key uint32) (val *any) func mapassign_fast32ptr(mapType *byte, hmap map[any]any, key unsafe.Pointer) (val *any)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 21:08:03 UTC 2024 - 10.6K bytes - Viewed (0)