Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for walkExprList (0.39 sec)

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

    // expression or simple statement.
    // the types expressions are calculated.
    // compile-time constants are evaluated.
    // complex side effects like statements are appended to init.
    func walkExprList(s []ir.Node, init *ir.Nodes) {
    	for i := range s {
    		s[i] = walkExpr(s[i], init)
    	}
    }
    
    func walkExprListCheap(s []ir.Node, init *ir.Nodes) {
    	for i, n := range s {
    		s[i] = cheapExpr(n, init)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/builtin.go

    		}
    		return stackTempAddr(init, t)
    	}
    	types.CalcSize(t)
    	n.MarkNonNil()
    	return n
    }
    
    func walkMinMax(n *ir.CallExpr, init *ir.Nodes) ir.Node {
    	init.Append(ir.TakeInit(n)...)
    	walkExprList(n.Args, init)
    	return n
    }
    
    // generate code for print.
    func walkPrint(nn *ir.CallExpr, init *ir.Nodes) ir.Node {
    	// Hoist all the argument evaluation up before the lock.
    	walkExprListCheap(nn.Args, init)
    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