Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for esc (0.03 sec)

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

    		}
    		a = initStackTemp(init, x, vstat)
    	} else if n.Esc() == ir.EscNone {
    		a = initStackTemp(init, typecheck.TempAt(base.Pos, ir.CurFunc, t), vstat)
    	} else {
    		a = ir.NewUnaryExpr(base.Pos, ir.ONEW, ir.TypeNode(t))
    	}
    	appendWalkStmt(init, ir.NewAssignStmt(base.Pos, vauto, a))
    
    	if vstat != nil && n.Prealloc == nil && n.Esc() != ir.EscNone {
    		// If we allocated on the heap with ONEW, copy the static to the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:03:54 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/builtin.go

    // walkMakeMap walks an OMAKEMAP node.
    func walkMakeMap(n *ir.MakeExpr, init *ir.Nodes) ir.Node {
    	t := n.Type()
    	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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  3. src/html/template/template.go

    // nameSpace is the data structure shared by all templates in an association.
    type nameSpace struct {
    	mu      sync.Mutex
    	set     map[string]*Template
    	escaped bool
    	esc     escaper
    }
    
    // Templates returns a slice of the templates associated with t, including t
    // itself.
    func (t *Template) Templates() []*Template {
    	ns := t.nameSpace
    	ns.mu.Lock()
    	defer ns.mu.Unlock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 21:00:46 UTC 2024
    - 17K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ir/fmt.go

    		// Useful to see where Defn is set and what node it points to
    		fmt.Fprintf(w, " outer(%p)", n.Name().Outer)
    	}
    
    	if EscFmt != nil {
    		if esc := EscFmt(n); esc != "" {
    			fmt.Fprintf(w, " %s", esc)
    		}
    	}
    
    	if n.Sym() != nil && n.Op() != ONAME && n.Op() != ONONAME && n.Op() != OTYPE {
    		fmt.Fprintf(w, " %+v", n.Sym())
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 26K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ir/func.go

    func ClosureDebugRuntimeCheck(clo *ClosureExpr) {
    	if base.Debug.Closure > 0 {
    		if clo.Esc() == EscHeap {
    			base.WarnfAt(clo.Pos(), "heap closure, captured vars = %v", clo.Func.ClosureVars)
    		} else {
    			base.WarnfAt(clo.Pos(), "stack closure, captured vars = %v", clo.Func.ClosureVars)
    		}
    	}
    	if base.Flag.CompilingRuntime && clo.Esc() == EscHeap && !clo.IsGoWrap {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  6. src/go/internal/gccgoimporter/parser.go

    	if strings.HasPrefix(name, "p.") || strings.HasPrefix(name, "r.") || strings.HasPrefix(name, "$ret") {
    		name = ""
    	}
    	if p.tok == '<' && p.scanner.Peek() == 'e' {
    		// EscInfo = "<esc:" int ">" . (optional and ignored)
    		p.next()
    		p.expectKeyword("esc")
    		p.expect(':')
    		p.expect(scanner.Int)
    		p.expect('>')
    	}
    	if p.tok == '.' {
    		p.next()
    		p.expect('.')
    		p.expect('.')
    		isVariadic = true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 23:14:07 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/liveness/plive.go

    // nor do we care about empty structs (handled by the pointer check),
    // nor do we care about the fake PAUTOHEAP variables.
    func shouldTrack(n *ir.Name) bool {
    	return (n.Class == ir.PAUTO && n.Esc() != ir.EscHeap || n.Class == ir.PPARAM || n.Class == ir.PPARAMOUT) && n.Type().HasPointers()
    }
    
    // getvariables returns the list of on-stack variables that we need to track
    // and a map for looking up indices by *Node.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 15:22:22 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/typecheck/func.go

    			}
    			if !checkmake(t, "size", &l) {
    				n.SetType(nil)
    				return n
    			}
    		} else {
    			l = ir.NewInt(base.Pos, 0)
    		}
    		nn = ir.NewMakeExpr(n.Pos(), ir.OMAKEMAP, l, nil)
    		nn.SetEsc(n.Esc())
    
    	case types.TCHAN:
    		l = nil
    		if i < len(args) {
    			l = args[i]
    			i++
    			l = Expr(l)
    			l = DefaultLit(l, types.Types[types.TINT])
    			if l.Type() == nil {
    				n.SetType(nil)
    				return n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/walk/expr.go

    }
    
    func walkAddString(n *ir.AddStringExpr, init *ir.Nodes) ir.Node {
    	c := len(n.List)
    
    	if c < 2 {
    		base.Fatalf("walkAddString count %d too small", c)
    	}
    
    	buf := typecheck.NodNil()
    	if n.Esc() == ir.EscNone {
    		sz := int64(0)
    		for _, n1 := range n.List {
    			if n1.Op() == ir.OLITERAL {
    				sz += int64(len(ir.StringVal(n1)))
    			}
    		}
    
    		// Don't allocate the buffer if the result won't fit.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/walk/order.go

    		// we want as.X and cp.X to be the same name,
    		// but we want the initial data to be coming from a different name.
    		return
    	}
    
    	mk := as.Y.(*ir.MakeExpr)
    	if mk.Esc() == ir.EscNone || mk.Len == nil || mk.Cap != nil {
    		return
    	}
    	mk.SetOp(ir.OMAKESLICECOPY)
    	mk.Cap = cp.Y
    	// Set bounded when m = OMAKESLICE([]T, len(s)); OCOPY(m, s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:33 UTC 2024
    - 42.7K bytes
    - Viewed (0)
Back to top