Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 82 for ptrType (0.12 sec)

  1. test/fixedbugs/issue30606b.go

    var byteType = typ((byte)(0))
    var ptrType = typ((*byte)(nil))
    
    // Arrays of pointers. There are two size thresholds.
    // Bit masks are chunked in groups of 120 pointers.
    // Array types with >16384 pointers have a GC program instead of a bitmask.
    var smallPtrType = reflect.ArrayOf(100, ptrType)
    var mediumPtrType = reflect.ArrayOf(1000, ptrType)
    var bigPtrType = reflect.ArrayOf(16385, ptrType)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 00:06:12 UTC 2019
    - 1.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/writebarrier_test.go

    	c := testConfig(t)
    	ptrType := c.config.Types.BytePtr
    	fun := c.Fun("entry",
    		Bloc("entry",
    			Valu("start", OpInitMem, types.TypeMem, 0, nil),
    			Valu("sb", OpSB, c.config.Types.Uintptr, 0, nil),
    			Valu("sp", OpSP, c.config.Types.Uintptr, 0, nil),
    			Valu("v", OpConstNil, ptrType, 0, nil),
    			Valu("addr1", OpAddr, ptrType, 0, nil, "sb"),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 24 15:51:15 UTC 2018
    - 1.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/deadstore_test.go

    func TestDeadStore(t *testing.T) {
    	c := testConfig(t)
    	ptrType := c.config.Types.BytePtr
    	t.Logf("PTRTYPE %v", ptrType)
    	fun := c.Fun("entry",
    		Bloc("entry",
    			Valu("start", OpInitMem, types.TypeMem, 0, nil),
    			Valu("sb", OpSB, c.config.Types.Uintptr, 0, nil),
    			Valu("v", OpConstBool, c.config.Types.Bool, 1, nil),
    			Valu("addr1", OpAddr, ptrType, 0, nil, "sb"),
    			Valu("addr2", OpAddr, ptrType, 0, nil, "sb"),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 20:07:26 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/fuse_test.go

    func TestFuseEliminatesOneBranch(t *testing.T) {
    	c := testConfig(t)
    	ptrType := c.config.Types.BytePtr
    	fun := c.Fun("entry",
    		Bloc("entry",
    			Valu("mem", OpInitMem, types.TypeMem, 0, nil),
    			Valu("sb", OpSB, c.config.Types.Uintptr, 0, nil),
    			Goto("checkPtr")),
    		Bloc("checkPtr",
    			Valu("ptr1", OpLoad, ptrType, 0, nil, "sb", "mem"),
    			Valu("nilptr", OpConstNil, ptrType, 0, nil),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:45:54 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/nilcheck_test.go

    			If("bool1", "b1", "b2")),
    		Bloc("b1",
    			Valu("ptr1", OpAddr, ptrType, 0, nil, "sb"),
    			Goto("checkPtr")),
    		Bloc("b2",
    			Valu("ptr2", OpAddr, ptrType, 0, nil, "sb"),
    			Goto("checkPtr")),
    		// both ptr1 and ptr2 are guaranteed non-nil here
    		Bloc("checkPtr",
    			Valu("phi", OpPhi, ptrType, 0, nil, "ptr1", "ptr2"),
    			Valu("bool2", OpIsNonNil, c.config.Types.Bool, 0, nil, "phi"),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/passbm_test.go

    		blocs = append(blocs, Bloc(blockn(i),
    			Valu(valn("v", i, 0), OpConstBool, types.Types[types.TBOOL], 1, nil),
    			Valu(valn("addr", i, 1), OpAddr, ptrType, 0, nil, "sb"),
    			Valu(valn("addr", i, 2), OpAddr, ptrType, 0, nil, "sb"),
    			Valu(valn("addr", i, 3), OpAddr, ptrType, 0, nil, "sb"),
    			Valu(valn("zero", i, 1), OpZero, types.TypeMem, 8, elemType, valn("addr", i, 3),
    				valn("store", i-1, 4)),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/decompose.go

    	}
    }
    
    func decomposeStringPhi(v *Value) {
    	types := &v.Block.Func.Config.Types
    	ptrType := types.BytePtr
    	lenType := types.Int
    
    	ptr := v.Block.NewValue0(v.Pos, OpPhi, ptrType)
    	len := v.Block.NewValue0(v.Pos, OpPhi, lenType)
    	for _, a := range v.Args {
    		ptr.AddArg(a.Block.NewValue1(v.Pos, OpStringPtr, ptrType, a))
    		len.AddArg(a.Block.NewValue1(v.Pos, OpStringLen, lenType, a))
    	}
    	v.reset(OpStringMake)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 21:22:15 UTC 2022
    - 13.4K bytes
    - Viewed (0)
  8. src/internal/reflectlite/reflect_mirror_test.go

    	"io/fs"
    	"os"
    	"path/filepath"
    	"runtime"
    	"strings"
    	"sync"
    	"testing"
    )
    
    var typeNames = []string{
    	"uncommonType",
    	"arrayType",
    	"chanType",
    	"funcType",
    	"interfaceType",
    	"ptrType",
    	"sliceType",
    	"structType",
    }
    
    type visitor struct {
    	m map[string]map[string]bool
    }
    
    func newVisitor() visitor {
    	v := visitor{}
    	v.m = make(map[string]map[string]bool)
    
    	return v
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 21:11:15 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  9. src/runtime/mfinal.go

    	arg  unsafe.Pointer // ptr to object (may be a heap pointer)
    	nret uintptr        // bytes of return values from fn
    	fint *_type         // type of first argument of fn
    	ot   *ptrtype       // type of ptr to object (may be a heap pointer)
    }
    
    var finalizer1 = [...]byte{
    	// Each Finalizer is 5 words, ptr ptr INT ptr ptr (INT = uintptr here)
    	// Each byte describes 8 words.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 01:56:56 UTC 2024
    - 19K bytes
    - Viewed (0)
  10. src/runtime/type.go

    type maptype = abi.MapType
    
    type arraytype = abi.ArrayType
    
    type chantype = abi.ChanType
    
    type slicetype = abi.SliceType
    
    type functype = abi.FuncType
    
    type ptrtype = abi.PtrType
    
    type name = abi.Name
    
    type structtype = abi.StructType
    
    func pkgPath(n name) string {
    	if n.Bytes == nil || *n.Data(0)&(1<<2) == 0 {
    		return ""
    	}
    	i, l := n.ReadVarint(1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top