Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for versary (0.66 sec)

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

    		name  *TypeName
    		alias bool
    	}{
    		{NewTypeName(nopos, nil, "t0", nil), false}, // no type yet
    		{NewTypeName(nopos, pkg, "t0", nil), false}, // no type yet
    		{t1, false}, // type name refers to named type and vice versa
    		{NewTypeName(nopos, nil, "t2", NewInterfaceType(nil, nil)), true}, // type name refers to unnamed type
    		{NewTypeName(nopos, pkg, "t3", n1), true},                         // type name refers to named type with different type name
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/initorder.go

    	ndeps      int        // number of outstanding dependencies before this object can be initialized
    }
    
    // cost returns the cost of removing this node, which involves copying each
    // predecessor to each successor (and vice-versa).
    func (n *graphNode) cost() int {
    	return len(n.pred) * len(n.succ)
    }
    
    type nodeSet map[*graphNode]bool
    
    func (s *nodeSet) add(p *graphNode) {
    	if *s == nil {
    		*s = make(nodeSet)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 22:06:51 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/staticinit/sched.go

    // initializing.
    var MapInitToVar map[*ir.Func]*ir.Name
    
    // recordFuncForVar establishes a mapping between global map var "v" and
    // outlined init function "fn" (and vice versa); so that we can use
    // the mappings later on to update relocations.
    func recordFuncForVar(v *ir.Name, fn *ir.Func) {
    	if varToMapInit == nil {
    		varToMapInit = make(map[*ir.Name]*ir.Func)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssagen/ssa.go

    		case ir.OMIN:
    			// a < x ? a : x
    			return s.ternary(s.newValue2(lt, types.Types[types.TBOOL], a, x), a, x)
    		case ir.OMAX:
    			// x < a ? a : x
    			return s.ternary(s.newValue2(lt, types.Types[types.TBOOL], x, a), a, x)
    		}
    		panic("unreachable")
    	})
    }
    
    // ternary emits code to evaluate cond ? x : y.
    func (s *state) ternary(cond, x, y *ssa.Value) *ssa.Value {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/unify.go

    	// Interpretation of trace:
    	//   x ≡ y    attempt to unify types x and y
    	//   p ➞ y    type parameter p is set to type y (p is inferred to be y)
    	//   p ⇄ q    type parameters p and q match (p is inferred to be q and vice versa)
    	//   x ≢ y    types x and y cannot be unified
    	//   [p, q, ...] ➞ [x, y, ...]    mapping from type parameters to types
    	traceInference = false
    )
    
    // A unifier maintains a list of type parameters and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/poset.go

    		// If we recorded that n1!=n2, this is a contradiction.
    		if po.isnoneq(i1, i2) {
    			return false
    		}
    
    		// If we already knew that n1<=n2, we can collapse the path to
    		// record n1==n2 (and vice versa).
    		if po.reaches(i1, i2, false) {
    			return po.collapsepath(n1, n2)
    		}
    		if po.reaches(i2, i1, false) {
    			return po.collapsepath(n2, n1)
    		}
    
    		r1 := po.findroot(i1)
    		r2 := po.findroot(i2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 04 17:23:05 UTC 2023
    - 37.2K bytes
    - Viewed (0)
  7. src/cmd/go/internal/load/pkg.go

    			// The module containing the main package does not overlap with the
    			// repository containing the working directory. Don't include VCS info.
    			// If the repo contains the module or vice versa, but they are not
    			// the same directory, it's likely an error (see below).
    			goto omitVCS
    		}
    		if cfg.BuildBuildvcs == "auto" && vcsCmd != nil && vcsCmd.Cmd != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ir/func.go

    	"cmd/compile/internal/types"
    	"cmd/internal/obj"
    	"cmd/internal/objabi"
    	"cmd/internal/src"
    	"fmt"
    	"strings"
    	"unicode/utf8"
    )
    
    // A Func corresponds to a single function in a Go program
    // (and vice versa: each function is denoted by exactly one *Func).
    //
    // There are multiple nodes that represent a Func in the IR.
    //
    // The ONAME node (Func.Nname) is used for plain references to it.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  9. src/cmd/fix/gotypes.go

    	exists := renameTop(f, "constant", "constant")
    	suffix := ""
    	if exists {
    		suffix = "_"
    	}
    	// Now we need to rename all the uses of the import. RewriteImport
    	// affects renameTop, but not vice versa, so do them in this order.
    	renameTop(f, "exact", "constant"+suffix)
    	rewriteImport(f, "golang.org/x/tools/go/exact", "go/constant")
    	// renameTop will also rewrite the imported package name. Fix that;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/expr.go

    	errOp := x  // operand for which error is reported, if any
    	cause := "" // specific error cause, if any
    
    	// spec: "In any comparison, the first operand must be assignable
    	// to the type of the second operand, or vice versa."
    	code := MismatchedTypes
    	ok, _ := x.assignableTo(check, y.typ, nil)
    	if !ok {
    		ok, _ = y.assignableTo(check, x.typ, nil)
    	}
    	if !ok {
    		// Report the error on the 2nd operand since we only
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
Back to top