Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 92 for defvars (0.14 sec)

  1. src/cmd/compile/internal/ssagen/phi.go

    // Uses FwdRef ops to find all uses of variables, and s.defvars to find
    // all definitions.
    // Phi values are inserted, and all FwdRefs are changed to a Copy
    // of the appropriate phi or definition.
    // TODO: make this part of cmd/compile/internal/ssa somehow?
    func (s *state) insertPhis() {
    	if len(s.f.Blocks) <= smallBlocks {
    		sps := simplePhiState{s: s, f: s.f, defvars: s.defvars}
    		sps.insertPhis()
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 15.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssagen/ssa.go

    // block, i.e. if no code flows to the current execution point.
    func (s *state) endBlock() *ssa.Block {
    	b := s.curBlock
    	if b == nil {
    		return nil
    	}
    	for len(s.defvars) <= int(b.ID) {
    		s.defvars = append(s.defvars, nil)
    	}
    	s.defvars[b.ID] = s.vars
    	s.curBlock = nil
    	s.vars = nil
    	if b.LackingPos() {
    		// Empty plain blocks get the line of their successor (handled after all blocks created),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/defers/defers.go

    	Requires: []*analysis.Analyzer{inspect.Analyzer},
    	URL:      "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/defers",
    	Doc:      analysisutil.MustExtractDoc(doc, "defers"),
    	Run:      run,
    }
    
    func run(pass *analysis.Pass) (interface{}, error) {
    	if !analysisutil.Imports(pass.Pkg, "time") {
    		return nil, nil
    	}
    
    	checkDeferCall := func(node ast.Node) bool {
    		switch v := node.(type) {
    		case *ast.CallExpr:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types/goversion.go

    	}
    
    	if def := currentLang(); base.Flag.Lang != def {
    		defVers, err := parseLang(def)
    		if err != nil {
    			log.Fatalf("internal error parsing default lang %q: %v", def, err)
    		}
    		if langWant.major > defVers.major || (langWant.major == defVers.major && langWant.minor > defVers.minor) {
    			log.Fatalf("invalid value %q for -lang: max known version is %q", base.Flag.Lang, def)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 21:36:02 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/defers/doc.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package defers defines an Analyzer that checks for common mistakes in defer
    // statements.
    //
    // # Analyzer defers
    //
    // defers: report common mistakes in defer statements
    //
    // The defers analyzer reports a diagnostic when a defer statement would
    // result in a non-deferred call to time.Since, as experience has shown
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 25 20:06:48 UTC 2023
    - 763 bytes
    - Viewed (0)
  6. pkg/ctrlz/topics/env.go

    		fw.RenderHTML(w, tmpl, getVars())
    	})
    
    	_ = context.JSONRouter().StrictSlash(true).NewRoute().Methods("GET").Path("/").HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
    		fw.RenderJSON(w, http.StatusOK, getVars())
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 14:06:41 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/serialization/codecs/CallableCodecTest.kt

        @Test
        fun `defers evaluation of Callable objects`() {
            assertDeferredEvaluationOf(callable()) {
                call()
            }
        }
    
        @Test
        fun `defers evaluation of dynamic Callable fields`() {
            assertDeferredEvaluationOf(BeanOf(callable())) {
                value.call()
            }
        }
    
        @Test
        fun `defers evaluation of static Callable fields`() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/serialization/codecs/FunctionCodecTest.kt

        @Test
        fun `defers evaluation of Function objects`() {
            assertDeferredEvaluationOf(function()) {
                invoke()
            }
        }
    
        @Test
        fun `defers evaluation of dynamic Function fields`() {
            assertDeferredEvaluationOf(BeanOf(function())) {
                value()
            }
        }
    
        @Test
        fun `defers evaluation of static Function fields`() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/serialization/codecs/SupplierCodecTest.kt

        @Test
        fun `defers evaluation of Supplier objects`() {
            assertDeferredEvaluationOf(supplier()) {
                get()
            }
        }
    
        @Test
        fun `defers evaluation of dynamic Supplier fields`() {
            assertDeferredEvaluationOf(BeanOf(supplier())) {
                value.get()
            }
        }
    
        @Test
        fun `defers evaluation of static Supplier fields`() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/rangefunc/rewrite.go

    	for range f {
    		defer print("A")
    	}
    
    compiles to
    
    	var #defers = runtime.deferrangefunc()
    	f(func() {
    		runtime.deferprocat(func() { print("A") }, #defers)
    	})
    
    For this rewriting phase, we insert the explicit initialization of
    #defers and then attach the #defers variable to the CallStmt
    representing the defer. That variable will be propagated to the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
Back to top