Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ByTopo (0.32 sec)

  1. src/cmd/compile/internal/ssa/html.go

    	Filename    string
    	StartLineno uint
    	Lines       []string
    }
    
    // ByTopo sorts topologically: target function is on top,
    // followed by inlined functions sorted by filename and line numbers.
    type ByTopo []*FuncLines
    
    func (x ByTopo) Len() int      { return len(x) }
    func (x ByTopo) Swap(i, j int) { x[i], x[j] = x[j], x[i] }
    func (x ByTopo) Less(i, j int) bool {
    	a := x[i]
    	b := x[j]
    	if a.Filename == b.Filename {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 15:11:40 UTC 2023
    - 34.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssagen/ssa.go

    		if err != nil {
    			writer.Logf("cannot read sources for inlined function %v: %v", fi, err)
    			continue
    		}
    		inlFns = append(inlFns, fnLines)
    	}
    
    	sort.Sort(ssa.ByTopo(inlFns))
    	if targetFn != nil {
    		inlFns = append([]*ssa.FuncLines{targetFn}, inlFns...)
    	}
    
    	writer.WriteSources("sources", inlFns)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
Back to top