Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 120 for derer (0.75 sec)

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

    	if err != nil {
    		t.Fatalf("error opening src inline_hot.go: %v", err)
    	}
    	defer src.Close()
    
    	dst, err := os.Create(filepath.Join(dir, "inline_hot.go"))
    	if err != nil {
    		t.Fatalf("error creating dst inline_hot.go: %v", err)
    	}
    	defer dst.Close()
    
    	if _, err := io.WriteString(dst, `// Autogenerated
    // Lines
    `); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  2. src/cmd/asm/main.go

    	case "all", "ret":
    		ctxt.Retpoline = true
    	}
    
    	ctxt.Bso = bufio.NewWriter(os.Stdout)
    	defer ctxt.Bso.Flush()
    
    	architecture.Init(ctxt)
    
    	// Create object file, write header.
    	buf, err := bio.Create(*flags.OutputFile)
    	if err != nil {
    		log.Fatal(err)
    	}
    	defer buf.Close()
    
    	if !*flags.SymABIs {
    		buf.WriteString(objabi.HeaderString())
    		fmt.Fprintf(buf, "!\n")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modfetch/codehost/vcs.go

    	unlock, err := r.mu.Lock()
    	if err != nil {
    		return "", err
    	}
    	defer unlock()
    
    	return "", vcsErrorf("vcs %s: RecentTag: %w", r.cmd.vcs, errors.ErrUnsupported)
    }
    
    func (r *vcsRepo) DescendsFrom(ctx context.Context, rev, tag string) (bool, error) {
    	unlock, err := r.mu.Lock()
    	if err != nil {
    		return false, err
    	}
    	defer unlock()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:50:24 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modfetch/fetch.go

    	zipfile, err := DownloadZip(ctx, mod)
    	if err != nil {
    		return "", err
    	}
    
    	unlock, err := lockVersion(ctx, mod)
    	if err != nil {
    		return "", err
    	}
    	defer unlock()
    
    	ctx, span = trace.StartSpan(ctx, "unzip "+zipfile)
    	defer span.Done()
    
    	// Check whether the directory was populated while we were waiting on the lock.
    	_, dirErr := DownloadDir(ctx, mod)
    	if dirErr == nil {
    		return dir, nil
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssagen/pgen.go

    	}
    
    	// Sort normal variables before open-coded-defer slots, so that the
    	// latter are grouped together and near the top of the frame (to
    	// minimize varint encoding of their varp offset).
    	if a.OpenDeferSlot() != b.OpenDeferSlot() {
    		return a.OpenDeferSlot()
    	}
    
    	// If a and b are both open-coded defer slots, then order them by
    	// index in descending order, so they'll be laid out in the frame in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/rangefunc/rewrite.go

    # Defers
    
    The last wrinkle is handling defer statements. If we have
    
    	for range f {
    		defer print("A")
    	}
    
    we cannot rewrite that into
    
    	f(func() {
    		defer print("A")
    	})
    
    because the deferred code will run at the end of the iteration, not
    the end of the containing function. To fix that, the runtime provides
    a special hook that lets us obtain a defer "token" representing 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)
  7. src/cmd/compile/internal/types2/lookup.go

    	if name == "_" {
    		return // blank fields/methods are never found
    	}
    
    	// Importantly, we must not call under before the call to deref below (nor
    	// does deref call under), as doing so could incorrectly result in finding
    	// methods of the pointer base type when T is a (*Named) pointer type.
    	typ, isPtr := deref(T)
    
    	// *typ where typ is an interface (incl. a type parameter) has no methods.
    	if isPtr {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/named.go

    		return n
    	}
    
    	// TODO(rfindley): if n.check is non-nil we can avoid locking here, since
    	// type-checking is not concurrent. Evaluate if this is worth doing.
    	n.mu.Lock()
    	defer n.mu.Unlock()
    
    	if n.state() >= resolved {
    		return n
    	}
    
    	if n.inst != nil {
    		assert(n.underlying == nil) // n is an unresolved instance
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  9. src/cmd/fix/main_test.go

    					// information to accurately correlate with the stderr output.
    				} else {
    					t.Parallel()
    				}
    			} else {
    				old := *goVersion
    				*goVersion = tt.Version
    				defer func() {
    					*goVersion = old
    				}()
    			}
    
    			// Apply fix: should get tt.Out.
    			out, fixed, ok := parseFixPrint(t, tt.Fn, tt.Name, tt.In, true)
    			if !ok {
    				return
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 05:31:47 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/typexpr.go

    	if check.conf.Trace {
    		check.trace(x.Pos(), "-- instantiating type %s with %s", x, xlist)
    		check.indent++
    		defer func() {
    			check.indent--
    			// Don't format the underlying here. It will always be nil.
    			check.trace(x.Pos(), "=> %s", res)
    		}()
    	}
    
    	defer func() {
    		setDefType(def, res)
    	}()
    
    	var cause string
    	gtyp := check.genericType(x, &cause)
    	if cause != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top