- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 1,261 for Inlined (0.39 sec)
-
src/cmd/compile/internal/test/pgo_inl_test.go
} return out } // testPGOIntendedInlining tests that specific functions are inlined. func testPGOIntendedInlining(t *testing.T, dir string, profFile string) { testenv.MustHaveGoRun(t) t.Parallel() const pkg = "example.com/pgo/inline" want := []string{ "(*BS).NS", } // The functions which are not expected to be inlined are as follows. wantNot := []string{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 11.1K bytes - Viewed (0) -
test/fixedbugs/issue15071.dir/exp.go
// Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package exp func Exported(x int) int { return inlined(x) } func inlined(x int) int { y := 0 switch { case x > 0: y += 5 return 0 + y case x < 1: y += 6 fallthrough default: y += 7 return 2 + y }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:39:41 UTC 2019 - 378 bytes - Viewed (0) -
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/PublicKotlinDslApi.kt
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Sep 30 16:17:28 UTC 2023 - 903 bytes - Viewed (0) -
src/runtime/traceback_test.go
}, // function, inlined { func(buf []byte) int { return testTracebackGenericFnInlined[int](buf) }, "testTracebackGenericFnInlined[...](", }, // method, not inlined { x.M, "testTracebackGenericTyp[...].M(", }, // method, inlined { func(buf []byte) int { return x.Inlined(buf) }, "testTracebackGenericTyp[...].Inlined(", }, } var buf [1000]byte
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 22.9K bytes - Viewed (0) -
src/cmd/compile/internal/test/inl_test.go
t.Fatal(err) } for fullName, reason := range notInlinedReason { t.Errorf("%s was not inlined: %s", fullName, reason) } } func collectInlCands(msgs string) map[string]struct{} { rv := make(map[string]struct{}) lines := strings.Split(msgs, "\n") re := regexp.MustCompile(`^\S+\s+can\s+inline\s+(\S+)`) for _, line := range lines { m := re.FindStringSubmatch(line) if m != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 09 04:07:57 UTC 2024 - 10.7K bytes - Viewed (0) -
test/fixedbugs/issue30908.dir/b.go
package b import ( "io/ioutil" "./a" ) var G int // An inlinable function. To trigger the bug in question this needs // to be inlined here within the package and also inlined into some // other package that imports it. func ReadValues(data []byte) (vals map[string]interface{}, err error) { err = a.Unmarshal(data, &vals) if len(vals) == 0 { vals = map[string]interface{}{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 15:00:08 UTC 2019 - 876 bytes - Viewed (0) -
src/cmd/go/testdata/script/build_shorten_pkg.txt
# can be trimmed like subdirectory paths are. env GOEXPERIMENT=loopvar go build -gcflags=inlines/a=-d=loopvar=2 . stderr ^\.[\\/]b[\\/]b\.go:12:6:.*loop.inlined.into.a[\\/]a\.go stderr ^\.[\\/]b[\\/]b\.go:12:9:.*loop.inlined.into.a[\\/]a\.go -- go.mod -- module inlines go 1.21 -- a/a.go -- // Copyright 2023 The Go Authors. All rights reserved.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 14 09:07:58 UTC 2023 - 1.4K bytes - Viewed (0) -
src/runtime/symtab_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 17 21:46:33 UTC 2022 - 7.5K bytes - Viewed (0) -
src/runtime/pprof/proto.go
// Here's an example of how Go 1.17 writes out inlined functions, compiled for // linux/amd64. The disassembly of main.main shows two levels of inlining: main // calls b, b calls a, a does some work. // // inline.go:9 0x4553ec 90 NOPL // func main() { b(v) } // inline.go:6 0x4553ed 90 NOPL // func b(v *int) { a(v) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 13 20:40:52 UTC 2023 - 25.7K bytes - Viewed (0) -
test/fixedbugs/issue11053.dir/p_test.go
} type T struct{} var x int32 = 42 func Int32x(i int32) *int32 { return &i } func (T) Add(out *P) { out.V = p.Int32(x) // inlined, p.i.2 moved to heap } var PP P var out *P = &PP func F(s I) interface{} { s.Add(out) // not inlined. return out } var s T func main() { println("Starting") fmt.Sprint(new(int32)) resp := F(s).(*P)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 828 bytes - Viewed (0)