Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for IsEmptyInterface (0.56 sec)

  1. src/cmd/compile/internal/staticinit/sched.go

    			// See comment in cmd/compile/internal/walk/convert.go:walkConvInterface
    			return false
    		}
    
    		reflectdata.MarkTypeUsedInInterface(val.Type(), l.Linksym())
    
    		var itab *ir.AddrExpr
    		if typ.IsEmptyInterface() {
    			itab = reflectdata.TypePtrAt(base.Pos, val.Type())
    		} else {
    			itab = reflectdata.ITabAddrAt(base.Pos, val.Type(), typ)
    		}
    
    		// Create a copy of l to modify while we emit data.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/cmd/compile/internal/walk/builtin.go

    		nn.Args[i] = n
    		if n.Type() == nil || n.Type().Kind() == types.TFORW {
    			continue
    		}
    
    		var on *ir.Name
    		switch n.Type().Kind() {
    		case types.TINTER:
    			if n.Type().IsEmptyInterface() {
    				on = typecheck.LookupRuntime("printeface", n.Type())
    			} else {
    				on = typecheck.LookupRuntime("printiface", n.Type())
    			}
    		case types.TPTR:
    			if n.Type().Elem().NotInHeap() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
Back to top