- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for UnsafeSliceElemRType (0.22 sec)
-
src/cmd/compile/internal/reflectdata/helpers.go
if hasRType(n, n.RType, "RType") { return n.RType } return mapRType(pos, n.X.Type()) } // UnsafeSliceElemRType asserts that n is an "unsafe.Slice" operation, // and returns an expression that yields the *runtime._type value // representing the result slice type's element type. func UnsafeSliceElemRType(pos src.XPos, n *ir.BinaryExpr) ir.Node { assertOp(n, ir.OUNSAFESLICE) if hasRType(n, n.RType, "RType") {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 04:50:32 UTC 2023 - 7.1K bytes - Viewed (0) -
src/cmd/compile/internal/walk/builtin.go
if ir.ShouldCheckPtr(ir.CurFunc, 1) { fnname := "unsafeslicecheckptr" fn := typecheck.LookupRuntime(fnname) init.Append(mkcall1(fn, nil, init, reflectdata.UnsafeSliceElemRType(base.Pos, n), unsafePtr, typecheck.Conv(len, lenType))) } else { // Otherwise, open code unsafe.Slice to prevent runtime call overhead. // Keep this code in sync with runtime.unsafeslice{,64}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 22:35:22 UTC 2024 - 31.2K bytes - Viewed (0)