- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for no_scope (0.15 sec)
-
src/go/printer/testdata/parser.go
p.openScope() p.pkgScope = p.topScope // for the same reason, set up a label scope p.openLabelScope() } // ---------------------------------------------------------------------------- // Scoping support func (p *parser) openScope() { p.topScope = ast.NewScope(p.topScope) } func (p *parser) closeScope() { p.topScope = p.topScope.Outer } func (p *parser) openLabelScope() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 20:19:51 UTC 2023 - 50.5K bytes - Viewed (0) -
src/runtime/traceback.go
} arg := cgoTracebackArg{ context: ctxt, buf: (*uintptr)(noescape(unsafe.Pointer(&buf[0]))), max: uintptr(len(buf)), } if msanenabled { msanwrite(unsafe.Pointer(&arg), unsafe.Sizeof(arg)) } if asanenabled { asanwrite(unsafe.Pointer(&arg), unsafe.Sizeof(arg)) } call(cgoTraceback, noescape(unsafe.Pointer(&arg)))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 55.1K bytes - Viewed (0) -
src/cmd/cgo/gcc.go
linesOut = append(linesOut, "") // #cgo (nocallback|noescape) <function name> if fields := strings.Fields(l); len(fields) == 3 { directive := fields[1] funcName := fields[2] if directive == "nocallback" { fatalf("#cgo nocallback disabled until Go 1.23") f.NoCallbacks[funcName] = true } else if directive == "noescape" { fatalf("#cgo noescape disabled until Go 1.23") f.NoEscapes[funcName] = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 97K bytes - Viewed (0) -
src/go/build/build.go
if len(line) < 5 || line[:4] != "#cgo" || (line[4] != ' ' && line[4] != '\t') { continue } // #cgo (nocallback|noescape) <function name> if fields := strings.Fields(line); len(fields) == 3 && (fields[1] == "nocallback" || fields[1] == "noescape") { continue } // Split at colon. line, argstr, ok := strings.Cut(strings.TrimSpace(line[4:]), ":") if !ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 62.3K bytes - Viewed (0) -
src/runtime/mgc.go
// // This is nosplit simply to avoid extra pointer shuffling that may // complicate a test. // //go:nosplit func gcTestPointerClass(p unsafe.Pointer) string { p2 := uintptr(noescape(p)) gp := getg() if gp.stack.lo <= p2 && p2 < gp.stack.hi { return "stack" } if base, _, _ := findObject(p2, 0, 0); base != 0 { return "heap" } for _, datap := range activeModules() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 62K bytes - Viewed (0) -
src/cmd/cgo/out.go
if n.AddError { fmt.Fprintf(fgo2, "\tif errno != 0 { r2 = syscall.Errno(errno) }\n") } if noCallback { fmt.Fprintf(fgo2, "\t_Cgo_no_callback(false)\n") } // skip _Cgo_use when noescape exist, // so that the compiler won't force to escape them to heap. if !p.noEscapes[n.C] { fmt.Fprintf(fgo2, "\tif _Cgo_always_false {\n") if d.Type.Params != nil { for i := range d.Type.Params.List {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 29 16:41:10 UTC 2024 - 59.6K bytes - Viewed (0)