Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for mapaccess2 (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. test/codegen/mapaccess.go

    	// amd64:-".*mapaccess"
    	// arm:-".*mapaccess"
    	// arm64:-".*mapaccess"
    	m[k] *= 45
    
    	// 386:-".*mapaccess"
    	// amd64:-".*mapaccess"
    	// arm:-".*mapaccess"
    	// arm64:-".*mapaccess"
    	m[k] |= 78
    
    	// 386:-".*mapaccess"
    	// amd64:-".*mapaccess"
    	// arm:-".*mapaccess"
    	// arm64:-".*mapaccess"
    	m[k] ^= 89
    
    	// 386:-".*mapaccess"
    	// amd64:-".*mapaccess"
    	// arm:-".*mapaccess"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 17:36:38 UTC 2022
    - 9.1K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top