Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 2,875 for ctxt (0.04 sec)

  1. src/cmd/link/internal/riscv64/asm.go

    			hi20Syms = append(hi20Syms, sb.Sym())
    		}
    	}
    	ctxt.Textp = append(ctxt.Textp, hi20Syms...)
    	ldr.SortSyms(ctxt.Textp)
    }
    
    func findHI20Symbol(ctxt *ld.Link, ldr *loader.Loader, val int64) loader.Sym {
    	idx := sort.Search(len(ctxt.Textp), func(i int) bool { return ldr.SymValue(ctxt.Textp[i]) >= val })
    	if idx >= len(ctxt.Textp) {
    		return 0
    	}
    	if s := ctxt.Textp[idx]; ldr.SymValue(s) == val && ldr.SymType(s) == sym.STEXT {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 01 08:06:08 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  2. src/go/build/build.go

    // that do not exist.
    func (ctxt *Context) SrcDirs() []string {
    	var all []string
    	if ctxt.GOROOT != "" && ctxt.Compiler != "gccgo" {
    		dir := ctxt.joinPath(ctxt.GOROOT, "src")
    		if ctxt.isDir(dir) {
    			all = append(all, dir)
    		}
    	}
    	for _, p := range ctxt.gopath() {
    		dir := ctxt.joinPath(p, "src")
    		if ctxt.isDir(dir) {
    			all = append(all, dir)
    		}
    	}
    	return all
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/decodesym.go

    	}
    	return str
    }
    
    func decodetypeGcmask(ctxt *Link, s loader.Sym) []byte {
    	if ctxt.loader.SymType(s) == sym.SDYNIMPORT {
    		symData := ctxt.loader.Data(s)
    		addr := decodetypeGcprogShlib(ctxt, symData)
    		ptrdata := decodetypePtrdata(ctxt.Arch, symData)
    		sect := findShlibSection(ctxt, ctxt.loader.SymPkg(s), addr)
    		if sect != nil {
    			bits := ptrdata / int64(ctxt.Arch.PtrSize)
    			r := make([]byte, (bits+7)/8)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  4. src/runtime/sys_wasm.go

    func wasmExit(code int32)
    
    // adjust Gobuf as it if executed a call to fn with context ctxt
    // and then stopped before the first instruction in fn.
    func gostartcall(buf *gobuf, fn, ctxt unsafe.Pointer) {
    	sp := buf.sp
    	sp -= goarch.PtrSize
    	*(*uintptr)(unsafe.Pointer(sp)) = buf.pc
    	buf.sp = sp
    	buf.pc = uintptr(fn)
    	buf.ctxt = ctxt
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 02 05:28:55 UTC 2023
    - 758 bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/go_test.go

    )
    
    func TestDedupLibraries(t *testing.T) {
    	ctxt := &Link{}
    	ctxt.Target.HeadType = objabi.Hlinux
    
    	libs := []string{"libc.so", "libc.so.6"}
    
    	got := dedupLibraries(ctxt, libs)
    	if !reflect.DeepEqual(got, libs) {
    		t.Errorf("dedupLibraries(%v) = %v, want %v", libs, got, libs)
    	}
    }
    
    func TestDedupLibrariesOpenBSD(t *testing.T) {
    	ctxt := &Link{}
    	ctxt.Target.HeadType = objabi.Hopenbsd
    
    	tests := []struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:22:14 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  6. src/go/internal/srcimporter/srcimporter.go

    // files; and imported packages are added to the packages map.
    func New(ctxt *build.Context, fset *token.FileSet, packages map[string]*types.Package) *Importer {
    	return &Importer{
    		ctxt:     ctxt,
    		fset:     fset,
    		sizes:    types.SizesFor(ctxt.Compiler, ctxt.GOARCH), // uses go/types default if GOARCH not found
    		packages: packages,
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 18:54:32 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/deadcode.go

    // emits a relocation with the method name. Matching methods are kept in all
    // reachable types.
    //
    // Any unreached text symbols are removed from ctxt.Textp.
    func deadcode(ctxt *Link) {
    	ldr := ctxt.loader
    	d := deadcodePass{ctxt: ctxt, ldr: ldr}
    	d.init()
    	d.flood()
    
    	if ctxt.DynlinkingGo() {
    		// Exported methods may satisfy interfaces we don't know
    		// about yet when dynamically linking.
    		d.reflectSeen = true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 14:52:41 UTC 2024
    - 19K bytes
    - Viewed (0)
  8. src/cmd/internal/obj/arm/asm5.go

    		c.ctxt.Diag("invalid .U suffix: %v", p)
    	}
    }
    
    func span5(ctxt *obj.Link, cursym *obj.LSym, newprog obj.ProgAlloc) {
    	if ctxt.Retpoline {
    		ctxt.Diag("-spectre=ret not supported on arm")
    		ctxt.Retpoline = false // don't keep printing
    	}
    
    	var p *obj.Prog
    	var op *obj.Prog
    
    	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: Fri Dec 15 20:51:01 UTC 2023
    - 79.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/syntax/branches.go

    			}
    
    		case *AssignStmt:
    			if s.Op == Def {
    				recordVarDecl(s.Pos(), s.Lhs)
    			}
    
    		case *BlockStmt:
    			inner := targets{ctxt.breaks, ctxt.continues, -1}
    			innerBlock(inner, s.Pos(), s.List)
    
    		case *IfStmt:
    			inner := targets{ctxt.breaks, ctxt.continues, -1}
    			innerBlock(inner, s.Then.Pos(), s.Then.List)
    			if s.Else != nil {
    				innerBlock(inner, s.Else.Pos(), []Stmt{s.Else})
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Jun 26 00:21:29 UTC 2022
    - 9.8K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/inl.go

    	ctxt.InlTree.AllParents(pos.Base().InliningIndex(), func(call InlinedCall) {
    		do(ctxt.InnermostPos(call.Pos))
    	})
    	do(pos)
    }
    
    func dumpInlTree(ctxt *Link, tree InlTree) {
    	for i, call := range tree.nodes {
    		pos := ctxt.PosTable.Pos(call.Pos)
    		ctxt.Logf("%0d | %0d | %s (%s) pc=%d\n", i, call.Parent, call.Func, pos, call.ParentPC)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 22:47:15 UTC 2023
    - 4.4K bytes
    - Viewed (0)
Back to top