Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsEmptyInterface (0.36 sec)

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

    	n := name.N
    	u := types.Types[types.TUINTPTR]
    	t := types.NewPtr(types.Types[types.TUINT8])
    	// Split this interface up into two separate variables.
    	sfx := ".itab"
    	if n.Type().IsEmptyInterface() {
    		sfx = ".type"
    	}
    	c := f.SplitSlot(name, sfx, 0, u) // see comment in typebits.Set
    	d := f.SplitSlot(name, ".data", u.Size(), t)
    	return c, d
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssagen/ssa.go

    	iface := s.expr(n.X)
    	var source, target, targetItab *ssa.Value
    	if n.SrcRType != nil {
    		source = s.expr(n.SrcRType)
    	}
    	if !n.X.Type().IsEmptyInterface() && !n.Type().IsInterface() {
    		byteptr := s.f.Config.Types.BytePtr
    		targetItab = s.expr(n.ITab)
    		// TODO(mdempsky): Investigate whether compiling n.RType could be
    		// better than loading itab.typ.
    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