Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for stackTempAddr (0.12 sec)

  1. src/cmd/compile/internal/walk/temp.go

    	appendWalkStmt(init, ir.NewAssignStmt(base.Pos, tmp, val))
    	return typecheck.Expr(typecheck.NodAddr(tmp)).(*ir.AddrExpr)
    }
    
    // stackTempAddr returns the expression &tmp, where tmp is a newly
    // allocated temporary variable of the given type. Statements to
    // zero-initialize tmp are appended to init.
    func stackTempAddr(init *ir.Nodes, typ *types.Type) *ir.AddrExpr {
    	n := typecheck.TempAt(base.Pos, ir.CurFunc, typ)
    	n.SetNonMergeable(true)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 16:41:23 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/builtin.go

    	hmapType := reflectdata.MapType()
    	hint := n.Len
    
    	// var h *hmap
    	var h ir.Node
    	if n.Esc() == ir.EscNone {
    		// Allocate hmap on stack.
    
    		// var hv hmap
    		// h = &hv
    		h = stackTempAddr(init, hmapType)
    
    		// Allocate one bucket pointed to by hmap.buckets on stack if hint
    		// is not larger than BUCKETSIZE. In case hint is larger than
    		// BUCKETSIZE runtime.makemap will allocate the buckets on the heap.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
Back to top