Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CalcStructSize (0.11 sec)

  1. src/cmd/compile/internal/types/size.go

    		}
    		t.align = uint8(w)
    	}
    
    	base.Pos = lno
    
    	ResumeCheckSize()
    }
    
    // CalcStructSize calculates the size of t,
    // filling in t.width, t.align, t.intRegs, and t.floatRegs,
    // even if size calculation is otherwise disabled.
    func CalcStructSize(t *Type) {
    	var maxAlign uint8 = 1
    
    	// Recognize special types. This logic is duplicated in go/types and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssagen/ssa.go

    	typ := types.NewNamed(n)
    	n.SetType(typ)
    	n.SetTypecheck(1)
    
    	// build struct holding the above fields
    	typ.SetUnderlying(types.NewStruct(fields))
    	types.CalcStructSize(typ)
    
    	deferType = typ
    	return typ
    }
    
    // SpillSlotAddr uses LocalSlot information to initialize an obj.Addr
    // The resulting addr is used in a non-standard context -- in the prologue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
Back to top