Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for mapassign0 (0.14 sec)

  1. 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)
  2. src/cmd/compile/internal/typecheck/builtin.go

    	{"mapaccess1_fat", funcTag, 84},
    	{"mapaccess2", funcTag, 85},
    	{"mapaccess2_fast32", funcTag, 86},
    	{"mapaccess2_fast64", funcTag, 87},
    	{"mapaccess2_faststr", funcTag, 88},
    	{"mapaccess2_fat", funcTag, 89},
    	{"mapassign", funcTag, 80},
    	{"mapassign_fast32", funcTag, 81},
    	{"mapassign_fast32ptr", funcTag, 90},
    	{"mapassign_fast64", funcTag, 82},
    	{"mapassign_fast64ptr", funcTag, 90},
    	{"mapassign_faststr", funcTag, 83},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  3. src/runtime/map_faststr.go

    		fatal("concurrent map writes")
    	}
    	key := stringStructOf(&s)
    	hash := t.Hasher(noescape(unsafe.Pointer(&s)), 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
    - 15.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/complit.go

    		loop.SetInit([]ir.Node{zero})
    
    		appendWalkStmt(init, loop)
    		return
    	}
    	// For a small number of entries, just add them directly.
    
    	// Build list of var[c] = expr.
    	// Use temporaries so that mapassign1 can have addressable key, elem.
    	// TODO(josharian): avoid map key temporaries for mapfast_* assignments with literal keys.
    	// TODO(khr): assign these temps in order phase so we can reuse them across multiple maplits?
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:03:54 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/walk/assign.go

    	case ir.OAS:
    		n := n.(*ir.AssignStmt)
    		left, right = n.X, n.Y
    	case ir.OASOP:
    		n := n.(*ir.AssignOpStmt)
    		left, right = n.X, n.Y
    	}
    
    	// Recognize m[k] = append(m[k], ...) so we can reuse
    	// the mapassign call.
    	var mapAppend *ir.CallExpr
    	if left.Op() == ir.OINDEXMAP && right.Op() == ir.OAPPEND {
    		left := left.(*ir.IndexExpr)
    		mapAppend = right.(*ir.CallExpr)
    		if !ir.SameSafeExpr(left, mapAppend.Args[0]) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/staticinit/sched.go

    	}
    
    	// Determine size of RHS.
    	rsiz := 0
    	ir.Any(as.Y, func(n ir.Node) bool {
    		rsiz++
    		return false
    	})
    	if base.Debug.WrapGlobalMapDbg > 0 {
    		fmt.Fprintf(os.Stderr, "=-= mapassign %s %v rhs size %d\n",
    			base.Ctxt.Pkgpath, n, rsiz)
    	}
    
    	// Reject smaller candidates if not in stress mode.
    	if rsiz < wrapGlobalMapInitSizeThreshold && base.Debug.WrapGlobalMapCtl != 2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top