Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TypePtrAt (0.18 sec)

  1. src/cmd/compile/internal/reflectdata/helpers.go

    	return TypePtrAt(pos, typ.Elem())
    }
    
    // concreteRType asserts that typ is not an interface type, and
    // returns an expression that yields the *runtime._type value
    // representing typ.
    func concreteRType(pos src.XPos, typ *types.Type) ir.Node {
    	base.AssertfAt(!typ.IsInterface(), pos, "want non-interface type, have %v", typ)
    	return TypePtrAt(pos, typ)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 04:50:32 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/builtin.go

    func walkGrowslice(slice *ir.Name, init *ir.Nodes, oldPtr, newLen, oldCap, num ir.Node) *ir.CallExpr {
    	elemtype := slice.Type().Elem()
    	fn := typecheck.LookupRuntime("growslice", elemtype, elemtype)
    	elemtypeptr := reflectdata.TypePtrAt(base.Pos, elemtype)
    	return mkcall1(fn, slice.Type(), init, oldPtr, newLen, oldCap, num, elemtypeptr)
    }
    
    // walkClear walks an OCLEAR node.
    func walkClear(n *ir.UnaryExpr) ir.Node {
    	typ := n.X.Type()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/staticinit/sched.go

    			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.
    
    		// Emit itab, advance offset.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top