Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,277 for Inliner (0.45 sec)

  1. test/inline_sync.go

    func small5() { // ERROR "can inline small5"
    	// the Unlock fast path should be inlined
    	mutex.Unlock() // ERROR "inlining call to sync\.\(\*Mutex\)\.Unlock"
    }
    
    func small6() { // ERROR "can inline small6"
    	// the Lock fast path should be inlined
    	mutex.Lock() // ERROR "inlining call to sync\.\(\*Mutex\)\.Lock"
    }
    
    var once *sync.Once
    
    func small7() { // ERROR "can inline small7"
    	// the Do fast path should be inlined
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 21:01:50 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. 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)
  3. src/runtime/start_line_test.go

    	}
    
    	frames := runtime.CallersFrames(pcs[:])
    	frame, _ := frames.Next()
    
    	inlined := frame.Func == nil // Func always set to nil for inlined frames
    	if wantInlined != inlined {
    		panic(fmt.Sprintf("caller %s inlined got %v want %v", frame.Function, inlined, wantInlined))
    	}
    
    	return runtime.FrameStartLine(&frame)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 20 22:54:22 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  4. 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)
  5. src/cmd/compile/internal/ssa/testdata/inline-dump.go

    David Chase <******@****.***> 1631219642 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 20 19:36:41 UTC 2021
    - 178 bytes
    - Viewed (0)
  6. src/cmd/compile/internal/inline/interleaved/interleaved.go

    // returns.
    func fixpoint(fn *ir.Func, match func(ir.Node) bool, edit func(ir.Node) ir.Node) {
    	// Consider the expression "f(g())". We want to be able to replace
    	// "g()" in-place with its inlined representation. But if we first
    	// replace "f(...)" with its inlined representation, then "g()" will
    	// instead appear somewhere within this new AST.
    	//
    	// To mitigate this, each matched node n is wrapped in a ParenExpr,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:42:52 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. test/escape4.go

    	f = func() { // ERROR "func literal escapes to heap" "can inline f1.func2"
    		p = alloc(3) // ERROR "inlining call to alloc" "moved to heap: x"
    	}
    	f()
    }
    
    func f2() {} // ERROR "can inline f2"
    
    // No inline for recover; panic now allowed to inline.
    func f3() { panic(1) } // ERROR "can inline f3" "1 escapes to heap"
    func f4() { recover() }
    
    func f5() *byte { // ERROR "can inline f5"
    	type T struct {
    		x [1]byte
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 19:43:26 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. cmd/xl-storage-meta-inline.go

    import (
    	"errors"
    	"fmt"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    // xlMetaInlineData is serialized data in [string][]byte pairs.
    type xlMetaInlineData []byte
    
    // xlMetaInlineDataVer indicates the version of the inline data structure.
    const xlMetaInlineDataVer = 1
    
    // versionOK returns whether the version is ok.
    func (x xlMetaInlineData) versionOK() bool {
    	if len(x) == 0 {
    		return true
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  9. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/session/KtAnalysisSessionProvider.kt

         */
        @KaAnalysisApiInternals
        public abstract fun afterLeavingAnalysis(session: KaSession, useSiteElement: KtElement)
    
        /**
         * [afterLeavingAnalysis] hooks into analysis *after* [analyze]'s action has been executed.
         *
         * The signature of [afterLeavingAnalysis] should be kept stable to avoid breaking binary compatibility, since [analyze] is inlined.
         */
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 17:22:24 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. test/newinline.go

    	return func() int { return 42 }() // ERROR "can inline p.func1" "inlining call to p.func1"
    }
    
    func q(x int) int { // ERROR "can inline q"
    	foo := func() int { return x * 2 } // ERROR "can inline q.func1" "func literal does not escape"
    	return foo()                       // ERROR "inlining call to q.func1"
    }
    
    func r(z int) int { // ERROR "can inline r"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 11.2K bytes
    - Viewed (0)
Back to top