Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Byval (0.03 sec)

  1. src/cmd/compile/internal/ir/func.go

    	// function. The variables in this slice are the closure function's
    	// own copy of the variables, which are used within its function
    	// body. They will also each have IsClosureVar set, and will have
    	// Byval set if they're captured by value.
    	ClosureVars []*Name
    
    	// Enclosed functions that need to be compiled.
    	// Populated during walk.
    	Closures []*Func
    
    	// Parents records the parent scope of each scope within a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/func.go

    func (iter *ClosureStructIter) Next() (n *ir.Name, typ *types.Type, offset int64) {
    	if iter.next >= len(iter.closureVars) {
    		return nil, nil, 0
    	}
    	n = iter.closureVars[iter.next]
    	typ = n.Type()
    	if !n.Byval() {
    		typ = types.NewPtr(typ)
    	}
    	iter.next++
    	offset = types.RoundUp(iter.offset, typ.Alignment())
    	iter.offset = offset + typ.Size()
    	return n, typ, offset
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
Back to top