- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for unsafeptr (0.17 sec)
-
src/cmd/compile/internal/walk/builtin.go
memCond := ir.NewBinaryExpr(base.Pos, ir.OGT, mem, ir.NewUnaryExpr(base.Pos, ir.ONEG, typecheck.Conv(unsafePtr, types.Types[types.TUINTPTR]))) nif.Cond = ir.NewLogicalExpr(base.Pos, ir.OOROR, overflow, memCond) nifPtr := ir.NewIfStmt(base.Pos, nil, nil, nil) nifPtr.Cond = ir.NewBinaryExpr(base.Pos, ir.OEQ, unsafePtr, typecheck.NodNil()) nifPtr.Body.Append(mkcall("panicunsafeslicenilptr", nil, &nifPtr.Body))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 22:35:22 UTC 2024 - 31.2K bytes - Viewed (0) -
src/cmd/internal/test2json/testdata/vet.json
{"Action":"output","Test":"TestVet/1","Output":" --- PASS: TestVet/1 (0.07s)\n"} {"Action":"output","Test":"TestVet/1","Output":" vet_test.go:114: files: [\"testdata/atomic.go\" \"testdata/lostcancel.go\" \"testdata/unsafeptr.go\"]\n"} {"Action":"pass","Test":"TestVet/1"} {"Action":"output","Test":"TestVet/7","Output":" --- PASS: TestVet/7 (0.19s)\n"}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 09 17:33:07 UTC 2022 - 11.8K bytes - Viewed (0) -
src/cmd/vet/vet_test.go
"directive", "httpresponse", "lostcancel", "method", "nilfunc", "print", "shift", "slog", "structtag", "testingpkg", // "testtag" has its own test "unmarshal", "unsafeptr", "unused", } { pkg := pkg t.Run(pkg, func(t *testing.T) { t.Parallel() // Skip cgo test on platforms without cgo. if pkg == "cgo" && !cgoEnabled(t) { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 01:02:40 UTC 2024 - 12.5K bytes - Viewed (0) -
src/cmd/internal/test2json/testdata/smiley.json
{"Action":"output","Test":"Test☺☹/1","Output":" --- PASS: Test☺☹/1 (0.07s)\n"} {"Action":"output","Test":"Test☺☹/1","Output":" vet_test.go:114: φιλεσ: [\"testdata/atomic.go\" \"testdata/lostcancel.go\" \"testdata/unsafeptr.go\"]\n"} {"Action":"pass","Test":"Test☺☹/1"} {"Action":"output","Test":"Test☺☹/7","Output":" --- PASS: Test☺☹/7 (0.19s)\n"}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 09 17:33:07 UTC 2022 - 12.4K bytes - Viewed (0) -
src/cmd/compile/internal/walk/convert.go
case ir.OCONVNOP: n := n.(*ir.ConvExpr) if n.X.Type().IsUnsafePtr() { n.X = cheapExpr(n.X, init) originals = append(originals, typecheck.ConvNop(n.X, types.Types[types.TUNSAFEPTR])) } } } walk(n.X) cheap := cheapExpr(n, init) slice := typecheck.MakeDotArgs(base.Pos, types.NewSlice(types.Types[types.TUNSAFEPTR]), originals) slice.SetEsc(ir.EscNone)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 17:28:22 UTC 2023 - 18.2K bytes - Viewed (0) -
src/cmd/compile/internal/types/fmt.go
"cmd/internal/notsha256" ) // BuiltinPkg is a fake package that declares the universe block. var BuiltinPkg *Pkg // LocalPkg is the package being compiled. var LocalPkg *Pkg // UnsafePkg is package unsafe. var UnsafePkg *Pkg // BlankSym is the blank (_) symbol. var BlankSym *Sym // numImport tracks how often a package with a given name is imported.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 15:41:17 UTC 2023 - 15.7K bytes - Viewed (0) -
src/cmd/compile/internal/walk/range.go
// hp = &a[0] hp := typecheck.TempAt(base.Pos, ir.CurFunc, types.Types[types.TUNSAFEPTR]) ix := ir.NewIndexExpr(base.Pos, a, ir.NewInt(base.Pos, 0)) ix.SetBounded(true) addr := typecheck.ConvNop(typecheck.NodAddr(ix), types.Types[types.TUNSAFEPTR]) n.Body.Append(ir.NewAssignStmt(base.Pos, hp, addr)) // hn = len(a) * sizeof(elem(a))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 14:52:33 UTC 2023 - 17.6K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/builtin.go
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] typs[8] = newSig(params(typs[5], typs[1], typs[6]), params(typs[7])) typs[9] = newSig(nil, nil) typs[10] = types.Types[types.TINTER] typs[11] = newSig(params(typs[10]), nil) typs[12] = types.Types[types.TINT32]
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/ssagen/abi.go
case types.TINT64, types.TUINT64: wfs[i].Type = obj.WasmI64 case types.TFLOAT32: wfs[i].Type = obj.WasmF32 case types.TFLOAT64: wfs[i].Type = obj.WasmF64 case types.TUNSAFEPTR: wfs[i].Type = obj.WasmPtr default: base.ErrorfAt(f.Pos(), 0, "go:wasmimport %s %s: unsupported parameter type %s", f.WasmImport.Module, f.WasmImport.Name, t.String()) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 13.8K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/subr.go
return ir.OSTR2RUNES, "" } } // 8. src is a pointer or uintptr and dst is unsafe.Pointer. if (src.IsPtr() || src.IsUintptr()) && dst.IsUnsafePtr() { return ir.OCONVNOP, "" } // 9. src is unsafe.Pointer and dst is a pointer or uintptr. if src.IsUnsafePtr() && (dst.IsPtr() || dst.IsUintptr()) { return ir.OCONVNOP, "" } // 10. src is a slice and dst is an array or pointer-to-array.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 19:45:58 UTC 2023 - 20.2K bytes - Viewed (0)