Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 95 for cout (0.8 sec)

  1. src/cmd/compile/internal/types2/initorder.go

    	// count for variables which in turn may not get scheduled for initialization
    	// in correct order.)
    	//
    	// Note that because we recursively copy predecessors and successors
    	// throughout the function graph, the cost of removing a function at
    	// position X is proportional to cost * (len(funcG)-X). Therefore, we should
    	// remove high-cost functions last.
    	sort.Slice(funcG, func(i, j int) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 22:06:51 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/pgo_inl_test.go

    	gcflag := gcflag0 + ",pgohash=" + hash
    	out := buildPGOInliningTest(t, dir, gcflag)
    	if !bytes.Contains(out, []byte(hashMatch)) || !pgoDebugRE.Match(out) {
    		t.Errorf("output does not contain expected source line, out:\n%s", out)
    	}
    
    	// Check that a hash mismatch turns off PGO inlining.
    	hash = "v0" // 0 should not match srcPos
    	gcflag = gcflag0 + ",pgohash=" + hash
    	out = buildPGOInliningTest(t, dir, gcflag)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/schedule.go

    			}
    			storeNumber[w.ID] = n
    			count[n]++
    			stack = stack[:len(stack)-1]
    		}
    	}
    
    	// convert count to prefix sum of counts: count'[i] = sum_{j<=i} count[i]
    	for i := range count {
    		if i == 0 {
    			continue
    		}
    		count[i] += count[i-1]
    	}
    	if count[len(count)-1] != int32(len(values)) {
    		f.Fatalf("storeOrder: value is missing, total count = %d, values = %v", count[len(count)-1], values)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 15:53:17 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  4. src/cmd/go/internal/work/shell.go

    		if dir == "" {
    			dir = p.Dir
    		}
    	}
    
    	out := string(cmdOut)
    
    	if !strings.HasSuffix(out, "\n") {
    		out = out + "\n"
    	}
    
    	// Replace workDir with $WORK
    	out = replacePrefix(out, sh.workDir, "$WORK")
    
    	// Rewrite mentions of dir with a relative path to dir
    	// when the relative path is shorter.
    	for {
    		// Note that dir starts out long, something like
    		// /foo/bar/baz/root/a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  5. src/cmd/covdata/tool_test.go

    	// Create out dir for intersection.
    	ioutdir := filepath.Join(s.dir, "intersectOut"+tag)
    	if err := os.Mkdir(ioutdir, 0777); err != nil {
    		t.Fatalf("can't create outdir %s: %v", ioutdir, err)
    	}
    
    	// Intersect the two dirs into a final result.
    	ins := fmt.Sprintf("-i=%s,%s", indir1, indir2)
    	out := fmt.Sprintf("-o=%s", ioutdir)
    	sargs := []string{ins, out}
    	lines := runToolOp(t, s, "intersect", sargs)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/staticinit/sched.go

    	// Can only substitute arg for param if param is used
    	// at most once or is repeatable.
    	count := make(map[*ir.Name]int)
    	for _, x := range as2init.Lhs {
    		count[x.(*ir.Name)] = 0
    	}
    
    	hasNonTrivialClosure := false
    	ir.Visit(as2body.Rhs[0], func(n ir.Node) {
    		if name, ok := n.(*ir.Name); ok {
    			if c, ok := count[name]; ok {
    				count[name] = c + 1
    			}
    		}
    		if clo, ok := n.(*ir.ClosureExpr); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/parse.go

    		if p.arch.Family == sys.ARM64 {
    			if x >= 64 {
    				p.errorf("register shift count too large: %s", str)
    			}
    			count = int16((x & 63) << 10)
    		} else {
    			if x >= 32 {
    				p.errorf("register shift count too large: %s", str)
    			}
    			count = int16((x & 31) << 7)
    		}
    	default:
    		p.errorf("unexpected %s in register shift", tok.String())
    	}
    	if p.arch.Family == sys.ARM64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 14:34:57 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  8. src/cmd/go/internal/work/buildid.go

    	// Force untranslated output so that we see the string "version".
    	cmd.Env = append(os.Environ(), "LC_ALL=C")
    	out, err := cmd.CombinedOutput()
    	if err != nil {
    		return "", "", fmt.Errorf("%s: %v; output: %q", name, err, out)
    	}
    
    	version := ""
    	lines := strings.Split(string(out), "\n")
    	for _, line := range lines {
    		fields := strings.Fields(line)
    		for i, field := range fields {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:31:25 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modcmd/vendor.go

    	// specifying "//go:build ignore" those packages should be skipped because
    	// embeds from ignored files can't be used.
    	// TODO(#42504): Find a better way to avoid errors from ImportDir. We'll
    	// need to figure this out when we switch to PackagesAndErrors as per the
    	// TODO above.
    	var multiplePackageError *build.MultiplePackageError
    	var noGoError *build.NoGoError
    	if err != nil {
    		if errors.As(err, &noGoError) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 14:19:59 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  10. src/cmd/go/internal/cache/cache.go

    	size, err := io.Copy(h, file)
    	if err != nil {
    		return OutputID{}, 0, err
    	}
    	var out OutputID
    	h.Sum(out[:0])
    
    	// Copy to cached output file (if not already present).
    	if err := c.copyFile(file, out, size); err != nil {
    		return out, size, err
    	}
    
    	// Add to cache index.
    	return out, size, c.putIndexEntry(id, out, size, allowVerify)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 14:19:39 UTC 2024
    - 20.3K bytes
    - Viewed (0)
Back to top