Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 584 for ctxt (0.04 sec)

  1. src/go/types/context_test.go

    	if got := ctxt.lookup("", unaryP, []Type{Typ[Int]}); got != nil {
    		t.Error("bad")
    	}
    
    	// nullaryQ is identical to nullaryP, so we *should* get inst when
    	// instantiated with identical type arguments.
    	if got := ctxt.lookup("", nullaryQ, []Type{Typ[Int]}); got != inst {
    		t.Error("bad")
    	}
    
    	// ...but verify we don't get inst with different type arguments.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modindex/read.go

    			suffix := ""
    			if ctxt.InstallSuffix != "" {
    				suffix = "_" + ctxt.InstallSuffix
    			}
    			switch ctxt.Compiler {
    			case "gccgo":
    				pkgtargetroot = "pkg/gccgo_" + ctxt.GOOS + "_" + ctxt.GOARCH + suffix
    				dir, elem := path.Split(p.ImportPath)
    				pkga = pkgtargetroot + "/" + dir + "lib" + elem + ".a"
    			case "gc":
    				pkgtargetroot = "pkg/" + ctxt.GOOS + "_" + ctxt.GOARCH + suffix
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/named.go

    	// resolve n for any recursive references.
    	h := n.inst.ctxt.instanceHash(orig, targs.list())
    	n2 := n.inst.ctxt.update(h, orig, n.TypeArgs().list(), n)
    	assert(n == n2)
    
    	smap := makeSubstMap(orig.tparams.list(), targs.list())
    	var ctxt *Context
    	if check != nil {
    		ctxt = check.context()
    	}
    	underlying := n.check.subst(n.obj.pos, orig.underlying, smap, n, ctxt)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/mips/asm0.go

    var xcmp [C_NCLASS][C_NCLASS]bool
    
    func span0(ctxt *obj.Link, cursym *obj.LSym, newprog obj.ProgAlloc) {
    	if ctxt.Retpoline {
    		ctxt.Diag("-spectre=ret not supported on mips")
    		ctxt.Retpoline = false // don't keep printing
    	}
    
    	p := cursym.Func().Text
    	if p == nil || p.Link == nil { // handle external functions and ELF section symbols
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 17:46:09 UTC 2024
    - 53.6K bytes
    - Viewed (0)
  5. src/go/types/named.go

    	// resolve n for any recursive references.
    	h := n.inst.ctxt.instanceHash(orig, targs.list())
    	n2 := n.inst.ctxt.update(h, orig, n.TypeArgs().list(), n)
    	assert(n == n2)
    
    	smap := makeSubstMap(orig.tparams.list(), targs.list())
    	var ctxt *Context
    	if check != nil {
    		ctxt = check.context()
    	}
    	underlying := n.check.subst(n.obj.pos, orig.underlying, smap, n, ctxt)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 24K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/subst.go

    // from the incoming type.
    //
    // If expanding is non-nil, it is the instance type currently being expanded.
    // One of expanding or ctxt must be non-nil.
    func (check *Checker) subst(pos syntax.Pos, typ Type, smap substMap, expanding *Named, ctxt *Context) Type {
    	assert(expanding != nil || ctxt != nil)
    
    	if smap.empty() {
    		return typ
    	}
    
    	// common cases
    	switch t := typ.(type) {
    	case *Basic:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11K bytes
    - Viewed (0)
  7. src/go/types/subst.go

    // from the incoming type.
    //
    // If expanding is non-nil, it is the instance type currently being expanded.
    // One of expanding or ctxt must be non-nil.
    func (check *Checker) subst(pos token.Pos, typ Type, smap substMap, expanding *Named, ctxt *Context) Type {
    	assert(expanding != nil || ctxt != nil)
    
    	if smap.empty() {
    		return typ
    	}
    
    	// common cases
    	switch t := typ.(type) {
    	case *Basic:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/internal/typeparams/common.go

    	// instantiations below.
    	if ctxt == nil {
    		ctxt = types.NewContext()
    	}
    
    	var targs []types.Type
    	for i := 0; i < vtparams.Len(); i++ {
    		targs = append(targs, vtparams.At(i))
    	}
    
    	vinst, err := types.Instantiate(ctxt, V, targs, true)
    	if err != nil {
    		panic("type parameters should satisfy their own constraints")
    	}
    
    	tinst, err := types.Instantiate(ctxt, T, targs, true)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/ppc64/asm9.go

    	}
    
    	c := ctxt9{ctxt: ctxt, newprog: newprog, cursym: cursym, autosize: int32(p.To.Offset)}
    
    	pc := int64(0)
    	p.Pc = pc
    
    	var m int
    	var o *Optab
    	for p = p.Link; p != nil; p = p.Link {
    		p.Pc = pc
    		o = c.oplook(p)
    		m = int(o.size)
    		if m == 0 {
    			if p.As == obj.APCALIGN {
    				a := c.vregoff(&p.From)
    				m = addpad(pc, a, ctxt, cursym)
    			} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:55:28 UTC 2024
    - 156.1K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/loong64/asm.go

    var xcmp [C_NCLASS][C_NCLASS]bool
    
    func span0(ctxt *obj.Link, cursym *obj.LSym, newprog obj.ProgAlloc) {
    	if ctxt.Retpoline {
    		ctxt.Diag("-spectre=ret not supported on loong64")
    		ctxt.Retpoline = false // don't keep printing
    	}
    
    	p := cursym.Func().Text
    	if p == nil || p.Link == nil { // handle external functions and ELF section symbols
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:04:54 UTC 2024
    - 61.8K bytes
    - Viewed (0)
Back to top