Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 869 for posTable (0.25 sec)

  1. src/cmd/internal/src/xpos_test.go

    	"unsafe"
    )
    
    func TestNoXPos(t *testing.T) {
    	var tab PosTable
    	if tab.Pos(NoXPos) != NoPos {
    		t.Errorf("failed to translate NoXPos to Pos using zero PosTable")
    	}
    }
    
    func TestConversion(t *testing.T) {
    	b1 := NewFileBase("b1", "b1")
    	b2 := NewFileBase("b2", "b2")
    	b3 := NewLinePragmaBase(MakePos(b1, 10, 0), "b3", "b3", 123, 0)
    
    	var tab PosTable
    	for _, want := range []Pos{
    		NoPos,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. src/cmd/internal/src/xpos.go

    }
    
    // AtColumn1 returns the same location but shifted to column 1.
    func (p XPos) AtColumn1() XPos {
    	p.lico = p.lico.atColumn1()
    	return p
    }
    
    // A PosTable tracks Pos -> XPos conversions and vice versa.
    // Its zero value is a ready-to-use PosTable.
    type PosTable struct {
    	baseList []*PosBase
    	indexMap map[*PosBase]int
    	nameMap  map[string]int // Maps file symbol name to index for debug information.
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/line_test.go

    		{src.MakePos(lfile, 10, 0), "linedir:102"}, // 102 == 100 + (10 - (7+1))
    	}
    
    	for _, test := range tests {
    		fileIndex, line := ctxt.getFileIndexAndLine(ctxt.PosTable.XPos(test.pos))
    
    		file := "??"
    		if fileIndex >= 0 {
    			file = ctxt.PosTable.FileTable()[fileIndex]
    		}
    		got := fmt.Sprintf("%s:%d", file, line)
    
    		if got != test.want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/inl.go

    	pos := ctxt.InnermostPos(xpos)
    
    	outerxpos := xpos
    	for ix := pos.Base().InliningIndex(); ix >= 0; {
    		call := ctxt.InlTree.nodes[ix]
    		ix = call.Parent
    		outerxpos = call.Pos
    	}
    	return ctxt.PosTable.Pos(outerxpos)
    }
    
    // InnermostPos returns the innermost position corresponding to xpos,
    // that is, the code that is inlined and that inlines nothing else.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 22:47:15 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/noder/posmap.go

    	// Predeclared objects (e.g., the result parameter for error.Error)
    	// do not have a position.
    	if !pos.IsKnown() {
    		return src.NoXPos
    	}
    
    	posBase := m.makeSrcPosBase(pos.Base())
    	return base.Ctxt.PosTable.XPos(src.MakePos(posBase, pos.Line(), pos.Col()))
    }
    
    // makeSrcPosBase translates from a *syntax.PosBase to a *src.PosBase.
    func (m *posMap) makeSrcPosBase(b0 *syntax.PosBase) *src.PosBase {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 27 03:43:35 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/pkginit/initAsanGlobals.go

    		// and assign globals[i].location = uintptr(unsafe.Pointer(&asanL[i]))
    		asanLi := ir.NewIndexExpr(base.Pos, asanlocation, ir.NewInt(base.Pos, int64(i)))
    		filename := ir.NewString(base.Pos, base.Ctxt.PosTable.Pos(n.Pos()).Filename()+"\000")
    		init.Append(typecheck.Stmt(ir.NewAssignStmt(base.Pos, asanFilename, filename)))
    		c = tconv(typecheck.NodAddr(asanFilename), types.Types[types.TUNSAFEPTR])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 19:36:24 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/deadcode.go

    	if f.RegAlloc != nil {
    		for i := range live {
    			live[i] = true
    		}
    		return
    	}
    
    	// Record all the inline indexes we need
    	var liveInlIdx map[int]bool
    	pt := f.Config.ctxt.PosTable
    	for _, b := range f.Blocks {
    		for _, v := range b.Values {
    			i := pt.Pos(v.Pos).Base().InliningIndex()
    			if i < 0 {
    				continue
    			}
    			if liveInlIdx == nil {
    				liveInlIdx = map[int]bool{}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 00:29:01 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  8. src/database/sql/doc.txt

      and Postgres, but all with a very different feel, and often
      a non-Go-like feel.
    
    * Feel like Go.
    
    * Care mostly about the common cases. Common SQL should be portable.
      SQL edge cases or db-specific extensions can be detected and
      conditionally used by the application.  It is a non-goal to care
      about every particular db's extension or quirk.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 06:48:08 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. src/cmd/dist/main.go

    // main takes care of OS-specific startup and dispatches to xmain.
    func main() {
    	os.Setenv("TERM", "dumb") // disable escape codes in clang errors
    
    	// provide -check-armv6k first, before checking for $GOROOT so that
    	// it is possible to run this check without having $GOROOT available.
    	if len(os.Args) > 1 && os.Args[1] == "-check-armv6k" {
    		useARMv6K() // might fail with SIGILL
    		println("ARMv6K supported.")
    		os.Exit(0)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 22 19:44:52 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  10. src/syscall/syscall.go

    // you want to view documentation for freebsd/arm on linux/amd64, set $GOOS
    // to freebsd and $GOARCH to arm.
    // The primary use of syscall is inside other packages that provide a more
    // portable interface to the system, such as "os", "time" and "net".  Use
    // those packages rather than this one if you can.
    // For details of the functions and data types in this package consult
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top