Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ChanArgs (0.34 sec)

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

    		{Type{}, 64, 104},
    		{Map{}, 12, 24},
    		{Forward{}, 20, 32},
    		{Func{}, 32, 56},
    		{Struct{}, 12, 24},
    		{Interface{}, 0, 0},
    		{Chan{}, 8, 16},
    		{Array{}, 12, 16},
    		{FuncArgs{}, 4, 8},
    		{ChanArgs{}, 4, 8},
    		{Ptr{}, 4, 8},
    		{Slice{}, 4, 8},
    	}
    
    	for _, tt := range tests {
    		want := tt._32bit
    		if _64bit {
    			want = tt._64bit
    		}
    		got := reflect.TypeOf(tt.val).Size()
    		if want != got {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 17:08:44 UTC 2024
    - 1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types/type.go

    		return t.extra.(*Chan).Elem
    	case TMAP:
    		return t.extra.(*Map).Elem
    	}
    	base.Fatalf("Type.Elem %s", t.kind)
    	return nil
    }
    
    // ChanArgs returns the channel type for TCHANARGS type t.
    func (t *Type) ChanArgs() *Type {
    	t.wantEtype(TCHANARGS)
    	return t.extra.(ChanArgs).T
    }
    
    // FuncArgs returns the func type for TFUNCARGS type t.
    func (t *Type) FuncArgs() *Type {
    	t.wantEtype(TFUNCARGS)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types/size.go

    		t1 := NewChanArgs(t)
    		CheckSize(t1)
    
    	case TCHANARGS:
    		t1 := t.ChanArgs()
    		CalcSize(t1) // just in case
    		// Make sure size of t1.Elem() is calculated at this point. We can
    		// use CalcSize() here rather than CheckSize(), because the top-level
    		// (possibly recursive) type will have been calculated before the fake
    		// chanargs is handled.
    		CalcSize(t1.Elem())
    		if t1.Elem().width >= 1<<16 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top