- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for PtrType (0.38 sec)
-
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) -
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) -
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) -
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) -
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) -
src/cmd/compile/internal/ssa/func.go
return c, d } func (f *Func) SplitSlice(name *LocalSlot) (*LocalSlot, *LocalSlot, *LocalSlot) { ptrType := types.NewPtr(name.Type.Elem()) lenType := types.Types[types.TINT] p := f.SplitSlot(name, ".ptr", 0, ptrType) l := f.SplitSlot(name, ".len", ptrType.Size(), lenType) c := f.SplitSlot(name, ".cap", ptrType.Size()+lenType.Size(), lenType) return p, l, c }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 25.8K bytes - Viewed (0) -
src/internal/reflectlite/type.go
type arrayType = abi.ArrayType // chanType represents a channel type. type chanType = abi.ChanType type funcType = abi.FuncType type interfaceType = abi.InterfaceType // ptrType represents a pointer type. type ptrType = abi.PtrType // sliceType represents a slice type. type sliceType = abi.SliceType // structType represents a struct type. type structType = abi.StructType
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:01:54 UTC 2024 - 16.2K bytes - Viewed (0) -
src/runtime/export_debug_test.go
if a._type != nil && a._type.Kind_&abi.KindMask != abi.Pointer { return nil, plainError("args must be a pointer or nil") } argp := a.data var argSize uintptr if argp != nil { argSize = (*ptrtype)(unsafe.Pointer(a._type)).Elem.Size_ } h := new(debugCallHandler) h.gp = gp // gp may not be running right now, but we can still get the M // it will run on since it's locked. h.mp = gp.lockedm.ptr()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 15:41:45 UTC 2024 - 5.1K bytes - Viewed (0) -
src/internal/abi/type.go
if t.TFlag&TFlagUncommon == 0 { return nil } switch t.Kind() { case Struct: return &(*structTypeUncommon)(unsafe.Pointer(t)).u case Pointer: type u struct { PtrType u UncommonType } return &(*u)(unsafe.Pointer(t)).u case Func: type u struct { FuncType u UncommonType } return &(*u)(unsafe.Pointer(t)).u case Slice: type u struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 17 21:09:59 UTC 2024 - 21.8K bytes - Viewed (0) -
src/reflect/type.go
if pi, ok := ptrMap.Load(t); ok { return &pi.(*ptrType).Type } // Look in known types. s := "*" + t.String() for _, tt := range typesByString(s) { p := (*ptrType)(unsafe.Pointer(tt)) if p.Elem != &t.t { continue } pi, _ := ptrMap.LoadOrStore(t, p) return &pi.(*ptrType).Type } // Create a new ptrType starting with the description // of an *unsafe.Pointer.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 85.5K bytes - Viewed (0)