Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for Book (0.09 sec)

  1. src/cmd/compile/internal/test/inst_test.go

    	// the executable.
    	cmd = testenv.Command(t, gotool, "tool", "nm", dest)
    	if output, err = cmd.CombinedOutput(); err != nil {
    		t.Fatalf("Failed: %v:\nOut: %s\n", err, output)
    	}
    	// Look for shape-based instantiation of Sort, but ignore any extra wrapper
    	// ending in "-tramp" (which are created on riscv).
    	re := regexp.MustCompile(`\bSort\[.*shape.*\][^-]`)
    	r := re.FindAllIndex(output, -1)
    	if len(r) != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 18:07:35 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. src/cmd/link/internal/benchmark/bench.go

    	pprofFile *os.File
    }
    
    type mark struct {
    	name              string
    	startM, endM, gcM runtime.MemStats
    	startT, endT      time.Time
    }
    
    // New creates a new Metrics object.
    //
    // Typical usage should look like:
    //
    //	func main() {
    //	  filename := "" // Set to enable per-phase pprof file output.
    //	  bench := benchmark.New(benchmark.GC, filename)
    //	  defer bench.Report(os.Stdout)
    //	  // etc
    //	  bench.Start("foo")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 30 18:10:36 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  3. src/cmd/gofmt/simplify.go

    		if eltType != nil {
    			var ktyp reflect.Value
    			if keyType != nil {
    				ktyp = reflect.ValueOf(keyType)
    			}
    			typ := reflect.ValueOf(eltType)
    			for i, x := range outer.Elts {
    				px := &outer.Elts[i]
    				// look at value of indexed/named elements
    				if t, ok := x.(*ast.KeyValueExpr); ok {
    					if keyType != nil {
    						s.simplifyLiteral(ktyp, keyType, t.Key, &t.Key)
    					}
    					x = t.Value
    					px = &t.Value
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 20:06:14 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  4. src/cmd/fix/main_test.go

    	// If cgo is enabled, enforce that cgo commands invoked by cmd/fix
    	// do not fail during testing.
    	if testenv.HasCGO() {
    		testenv.MustHaveGoBuild(t) // Really just 'go tool cgo', but close enough.
    
    		// The reportCgoError hook is global, so we can't set it per-test
    		// if we want to be able to run those tests in parallel.
    		// Instead, simply set it to panic on error: the goroutine dump
    		// from the panic should help us determine which test failed.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 05:31:47 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/google/pprof/internal/binutils/addr2liner.go

    	// nm holds an addr2Liner using nm tool. Certain versions of addr2line
    	// produce incomplete names due to
    	// https://sourceware.org/bugzilla/show_bug.cgi?id=17541. As a workaround,
    	// the names from nm are used when they look more complete. See addrInfo()
    	// code below for the exact heuristic.
    	nm *addr2LinerNM
    }
    
    // lineReaderWriter is an interface to abstract the I/O to an addr2line
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 16:39:48 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/errors.go

    	// exclude them if these strings are not at the beginning,
    	// and only if we have at least one error already reported.
    	check := err.check
    	if check.firstErr != nil {
    		// It is sufficient to look at the first sub-error only.
    		msg := err.desc[0].msg
    		if strings.Index(msg, "invalid operand") > 0 || strings.Index(msg, "invalid type") > 0 {
    			return
    		}
    	}
    
    	if check.conf.Trace {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/numberlines.go

    	// first built).
    	if i >= len(b.Values)-1 {
    		return i
    	}
    	// Skip the likely-ephemeral/fragile opcodes expected to vanish in a rewrite.
    	if !isPoorStatementOp(v.Op) {
    		return i
    	}
    	// Look ahead to see what the line number is on the next thing that could be a boundary.
    	for j := i + 1; j < len(b.Values); j++ {
    		u := b.Values[j]
    		if u.Pos.IsStmt() == src.PosNotStmt { // ignore non-statements
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 14 21:26:13 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  8. src/cmd/pprof/pprof.go

    		if err != nil {
    			return nil, err
    		}
    		f.sym = sym
    	}
    	var out []*driver.Sym
    	for _, s := range f.sym {
    		// Ignore a symbol with address 0 and size 0.
    		// An ELF STT_FILE symbol will look like that.
    		if s.Addr == 0 && s.Size == 0 {
    			continue
    		}
    		if (r == nil || r.MatchString(s.Name)) && (addr == 0 || s.Addr <= addr && addr < s.Addr+uint64(s.Size)) {
    			out = append(out, &driver.Sym{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/testdata/deadcode/ifacemethod5.go

    // if the type is "indirectly" converted to an interface
    // using reflection with a method descriptor as intermediate.
    // However, it uses MethodByName() with a constant name of
    // a method to look up. This does not disable the DCE like
    // Method(0) does.
    
    package main
    
    import "reflect"
    
    type S int
    
    func (s S) M() { println("S.M") }
    
    type I interface{ M() }
    
    type T float64
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:07:26 UTC 2023
    - 777 bytes
    - Viewed (0)
  10. src/cmd/go/internal/str/str.go

    // to EqualFold. Note that strings.ToUpper and strings.ToLower
    // do not have the desired property in some corner cases.
    func ToFold(s string) string {
    	// Fast path: all ASCII, no upper case.
    	// Most paths look like this already.
    	for i := 0; i < len(s); i++ {
    		c := s[i]
    		if c >= utf8.RuneSelf || 'A' <= c && c <= 'Z' {
    			goto Slow
    		}
    	}
    	return s
    
    Slow:
    	var b strings.Builder
    	for _, r := range s {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 23 20:08:07 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top