- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for NewPtr (0.11 sec)
-
src/cmd/compile/internal/ssa/config.go
t.String = types.Types[types.TSTRING] t.BytePtr = types.NewPtr(types.Types[types.TUINT8]) t.Int32Ptr = types.NewPtr(types.Types[types.TINT32]) t.UInt32Ptr = types.NewPtr(types.Types[types.TUINT32]) t.IntPtr = types.NewPtr(types.Types[types.TINT]) t.UintptrPtr = types.NewPtr(types.Types[types.TUINTPTR]) t.Float32Ptr = types.NewPtr(types.Types[types.TFLOAT32]) t.Float64Ptr = types.NewPtr(types.Types[types.TFLOAT64])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 16:11:47 UTC 2024 - 12.9K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/builtin.go
{"asanregisterglobals", funcTag, 124}, } func runtimeTypes() []*types.Type { var typs [156]*types.Type typs[0] = types.ByteType typs[1] = types.NewPtr(typs[0]) typs[2] = types.Types[types.TANY] typs[3] = types.NewPtr(typs[2]) typs[4] = newSig(params(typs[1]), params(typs[3])) typs[5] = types.Types[types.TUINTPTR] typs[6] = types.Types[types.TBOOL] typs[7] = types.Types[types.TUNSAFEPTR]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 21:08:03 UTC 2024 - 16.2K bytes - Viewed (0) -
src/cmd/compile/internal/walk/walk.go
func itabType(itab ir.Node) ir.Node { if itabTypeField == nil { // internal/abi.ITab's Type field itabTypeField = runtimeField("Type", rttype.ITab.OffsetOf("Type"), types.NewPtr(types.Types[types.TUINT8])) } return boundedDotPtr(base.Pos, itab, itabTypeField) } var itabTypeField *types.Field // boundedDotPtr returns a selector expression representing ptr.field
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 27 20:56:00 UTC 2024 - 10.4K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/expr.go
if t == nil { n.SetType(nil) return n } if !t.IsSlice() && !t.IsString() { base.Fatalf("OSPTR of %v", t) } if t.IsString() { n.SetType(types.NewPtr(types.Types[types.TUINT8])) } else { n.SetType(types.NewPtr(t.Elem())) } return n } // tcSlice typechecks an OSLICE or OSLICE3 node. func tcSlice(n *ir.SliceExpr) ir.Node { n.X = DefaultLit(Expr(n.X), nil)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 23.1K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/func.go
base.Fatalf("missing argument to new") } l := n.X l = typecheck(l, ctxType) t := l.Type() if t == nil { n.SetType(nil) return n } n.X = l n.SetType(types.NewPtr(t)) return n } // tcPanic typechecks an OPANIC node. func tcPanic(n *ir.UnaryExpr) ir.Node { n.X = Expr(n.X) n.X = AssignConv(n.X, types.Types[types.TINTER], "argument to panic")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 06 15:23:18 UTC 2024 - 21.1K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/func.go
a = new(LocalSlot) *a = slot // don't escape slot f.CanonicalLocalSlots[slot] = a } return a } func (f *Func) SplitString(name *LocalSlot) (*LocalSlot, *LocalSlot) { ptrType := types.NewPtr(types.Types[types.TUINT8]) lenType := types.Types[types.TINT] // Split this string up into two separate variables. p := f.SplitSlot(name, ".ptr", 0, ptrType) l := f.SplitSlot(name, ".len", ptrType.Size(), lenType)
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/runtime/slice.go
// newLen = new length (= oldLen + num) // oldCap = original slice's capacity. // num = number of elements being added // et = element type // // return values: // // newPtr = pointer to the new backing store // newLen = same value as the argument // newCap = capacity of the new backing store // // Requires that uint(newLen) > uint(oldCap).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 12.2K bytes - Viewed (0) -
src/cmd/compile/internal/types/size.go
func PtrDataSize(t *Type) int64 { CalcSize(t) x := t.ptrBytes if t.Kind() == TPTR && t.Elem().NotInHeap() { // Note: this is done here instead of when we're setting // the ptrBytes field, because at that time (in NewPtr, usually) // the NotInHeap bit of the element type might not be set yet. x = 0 } return x
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 15K bytes - Viewed (0) -
src/cmd/compile/internal/walk/assign.go
n.Rhs = []ir.Node{call} n.SetOp(ir.OAS2FUNC) // don't generate a = *var if a is _ if ir.IsBlank(a) { return walkExpr(typecheck.Stmt(n), init) } var_ := typecheck.TempAt(base.Pos, ir.CurFunc, types.NewPtr(t.Elem())) var_.SetTypecheck(1) var_.MarkNonNil() // mapaccess always returns a non-nil pointer n.Lhs[0] = var_ init.Append(walkExpr(n, init))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:09:06 UTC 2024 - 20.3K bytes - Viewed (0) -
src/cmd/compile/internal/walk/expr.go
mapFn = mapfn("mapaccess1_fat", t, true) default: mapFn = mapfn(mapaccess1[fast], t, false) } call := mkcall1(mapFn, nil, init, args...) call.SetType(types.NewPtr(t.Elem())) call.MarkNonNil() // mapaccess1* and mapassign always return non-nil pointers. star := ir.NewStarExpr(base.Pos, call) star.SetType(t.Elem()) star.SetTypecheck(1) return star }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:34:01 UTC 2024 - 27.6K bytes - Viewed (0)