Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,166 for posTable (0.15 sec)

  1. src/debug/dwarf/line_test.go

    	}
    
    	// Check that entries match when seeking backward.
    	for i := len(posTable) - 1; i >= 0; i-- {
    		lr.Seek(posTable[i])
    		err := lr.Next(&line)
    		if i == len(posTable)-1 {
    			if err != io.EOF {
    				t.Fatal("expected io.EOF after seek to end, got", err)
    			}
    		} else if err != nil {
    			t.Fatal("lr.Next after seek to", posTable[i], "failed:", err)
    		} else if line != table[i] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 20:34:36 UTC 2023
    - 14.5K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/plist.go

    		return
    	}
    	s.NewFuncInfo()
    	if s.OnList() {
    		ctxt.Diag("%s: symbol %s redeclared", ctxt.PosTable.Pos(start), s.Name)
    		return
    	}
    	if strings.HasPrefix(s.Name, `"".`) {
    		ctxt.Diag("%s: unqualified symbol name: %s", ctxt.PosTable.Pos(start), s.Name)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  3. src/cmd/internal/src/pos.go

    func (p Pos) AbsFilename() string { return p.base.AbsFilename() }
    
    // FileIndex returns the file index of the position's base's absolute
    // filename within the PosTable that it was registered.
    func (p Pos) FileIndex() int { return p.base.FileIndex() }
    
    func (p Pos) String() string {
    	return p.Format(true, true)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 15.5K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/objfile.go

    			return
    		}
    		if strings.HasPrefix(s.Name, `"".`) {
    			w.ctxt.Diag("unqualified symbol name: %v", s.Name)
    		}
    		w.AddString(s.Name)
    	})
    
    	// All filenames are in the postable.
    	for _, f := range w.ctxt.PosTable.FileTable() {
    		w.AddString(filepath.ToSlash(f))
    	}
    }
    
    // cutoff is the maximum data section size permitted by the linker
    // (see issue #9862).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24K bytes
    - Viewed (0)
  5. src/cmd/internal/obj/sym.go

    func (ctxt *Link) traverseSyms(flag traverseFlag, fn func(*LSym)) {
    	fnNoNil := func(s *LSym) {
    		if s != nil {
    			fn(s)
    		}
    	}
    	lists := [][]*LSym{ctxt.Text, ctxt.Data}
    	files := ctxt.PosTable.FileTable()
    	for _, list := range lists {
    		for _, s := range list {
    			if flag&traverseDefs != 0 {
    				fn(s)
    			}
    			if flag&traverseRefs != 0 {
    				for _, r := range s.R {
    					fnNoNil(r.Sym)
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 14:41:10 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  6. src/cmd/internal/obj/link.go

    	funchash           map[string]*LSym // name -> sym mapping for ABIInternal syms
    	statichash         map[string]*LSym // name -> sym mapping for static syms
    	PosTable           src.PosTable
    	InlTree            InlTree // global inlining tree used by gc/inl.go
    	DwFixups           *DwarfFixupTable
    	Imports            []goobj.ImportedPkg
    	DiagFunc           func(string, ...interface{})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  7. src/cmd/internal/obj/pcln.go

    func (s *pcinlineState) pctoinline(ctxt *Link, sym *LSym, oldval int32, p *Prog, phase int32, arg interface{}) int32 {
    	if phase == 1 {
    		return oldval
    	}
    
    	posBase := ctxt.PosTable.Pos(p.Pos).Base()
    	if posBase == nil {
    		return -1
    	}
    
    	globalIndex := posBase.InliningIndex()
    	if globalIndex < 0 {
    		return -1
    	}
    
    	if s.globalToLocal == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 20:45:15 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  8. src/cmd/internal/obj/wasm/wasmobj.go

    	pc := int64(0) // pc is only incremented when necessary, this avoids bloat of the BrTable instruction
    	var tableIdxs []uint64
    	tablePC := int64(0)
    	base := ctxt.PosTable.Pos(s.Func().Text.Pos).Base()
    	for p := s.Func().Text; p != nil; p = p.Link {
    		prevBase := base
    		base = ctxt.PosTable.Pos(p.Pos).Base()
    		switch p.As {
    		case ABlock, ALoop, AIf:
    			explicitBlockDepth++
    
    		case AEnd:
    			if explicitBlockDepth == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 34.6K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/dwarfgen/dwinl.go

    // calls C calls D" and all three callees are inlined (B, C, and D),
    // the index for a node from the inlined body of D will refer to the
    // call to D from C. Whew.
    func posInlIndex(xpos src.XPos) int {
    	pos := base.Ctxt.PosTable.Pos(xpos)
    	if b := pos.Base(); b != nil {
    		ii := b.InliningIndex()
    		if ii >= 0 {
    			return ii
    		}
    	}
    	return -1
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:45:07 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/walk/compare.go

    	hash := fnv.New32()
    	// We ignore the errors here because the `io.Writer` in the `hash.Hash` interface never returns an error.
    	io.WriteString(hash, base.Ctxt.Pkgpath)
    	io.WriteString(hash, base.Ctxt.PosTable.Pos(n.Pos()).AbsFilename())
    	binary.Write(hash, binary.LittleEndian, int64(n.Pos().Line()))
    	binary.Write(hash, binary.LittleEndian, int64(n.Pos().Col()))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 21:55:14 UTC 2023
    - 16.2K bytes
    - Viewed (0)
Back to top