Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ITab (0.14 sec)

  1. src/cmd/compile/internal/ssa/_gen/generic.rules

    // slice and interface comparisons
    // The frontend ensures that we can only compare against nil,
    // so we need only compare the first word (interface type or slice ptr).
    (EqInter x y)  => (EqPtr  (ITab x) (ITab y))
    (NeqInter x y) => (NeqPtr (ITab x) (ITab y))
    (EqSlice x y)  => (EqPtr  (SlicePtr x) (SlicePtr y))
    (NeqSlice x y) => (NeqPtr (SlicePtr x) (SlicePtr y))
    
    // Load of store of same address, with compatibly typed value and same size
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  2. src/reflect/value.go

    			panic("reflect: " + op + " of unexported method")
    		}
    		iface := (*nonEmptyInterface)(v.ptr)
    		if iface.itab == nil {
    			panic("reflect: " + op + " of method on nil interface value")
    		}
    		rcvrtype = iface.itab.Type
    		fn = unsafe.Pointer(&unsafe.Slice(&iface.itab.Fun[0], i+1)[i])
    		t = (*funcType)(unsafe.Pointer(tt.typeOff(m.Typ)))
    	} else {
    		rcvrtype = v.typ()
    		ms := v.typ().ExportedMethods()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  3. src/reflect/all_test.go

    //
    // One such possible incorrect interpretation is to treat two arbitrary memory words
    // (Inner.P1 and Inner.P2 below) as an interface (Outer.R below). Because interpreting
    // an interface requires dereferencing the itab word, the misinterpretation will try to
    // deference Inner.P1, causing a crash during garbage collection.
    //
    // This came up in a real program in issue 7725.
    
    type Outer struct {
    	*Inner
    	R io.Reader
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top