Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for NumValues (0.14 sec)

  1. pkg/queue/instance_test.go

    			wg.Done()
    			return nil
    		})
    
    		// Start the queue at the halfway point.
    		if i == numValues/2 {
    			go q.Run(stop)
    		}
    	}
    
    	// wait for all task processed
    	wg.Wait()
    
    	if len(out) != numValues {
    		t.Fatalf("expected output array length %d to equal %d", len(out), numValues)
    	}
    
    	for i := 0; i < numValues; i++ {
    		if i != out[i] {
    			t.Fatalf("expected out[%d] %v to equal %v", i, out[i], i)
    		}
    	}
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jul 21 16:30:36 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/stackalloc.go

    	// the slot we used via an index into locations[v.Type].
    	slots := f.Cache.allocIntSlice(f.NumValues())
    	defer f.Cache.freeIntSlice(slots)
    	for i := range slots {
    		slots[i] = -1
    	}
    
    	// Pick a stack slot for each value needing one.
    	used := f.Cache.allocBoolSlice(f.NumValues())
    	defer f.Cache.freeBoolSlice(used)
    	for _, b := range f.Blocks {
    		for _, v := range b.Values {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 21:29:41 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/deadcode.go

    // when they are done with the return values.
    func liveValues(f *Func, reachable []bool) (live []bool, liveOrderStmts []*Value) {
    	live = f.Cache.allocBoolSlice(f.NumValues())
    	liveOrderStmts = f.Cache.allocValueSlice(f.NumValues())[:0]
    
    	// After regalloc, consider all values to be live.
    	// See the comment at the top of regalloc.go and in deadcode for details.
    	if f.RegAlloc != nil {
    		for i := range live {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 00:29:01 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/nilcheck.go

    						}
    						nonNilValues[v.ID] = v
    					}
    				}
    			}
    		}
    	}
    
    	// allocate auxiliary date structures for computing store order
    	sset := f.newSparseSet(f.NumValues())
    	defer f.retSparseSet(sset)
    	storeNumber := f.Cache.allocInt32Slice(f.NumValues())
    	defer f.Cache.freeInt32Slice(storeNumber)
    
    	// perform a depth first walk of the dominee tree
    	for len(work) > 0 {
    		node := work[len(work)-1]
    		work = work[:len(work)-1]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:45:54 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/deadstore.go

    func dse(f *Func) {
    	var stores []*Value
    	loadUse := f.newSparseSet(f.NumValues())
    	defer f.retSparseSet(loadUse)
    	storeUse := f.newSparseSet(f.NumValues())
    	defer f.retSparseSet(storeUse)
    	shadowed := f.newSparseMap(f.NumValues())
    	defer f.retSparseMap(shadowed)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 20:07:26 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/schedule.go

    func schedule(f *Func) {
    	// reusable priority queue
    	priq := new(ValHeap)
    
    	// "priority" for a value
    	score := f.Cache.allocInt8Slice(f.NumValues())
    	defer f.Cache.freeInt8Slice(score)
    
    	// maps mem values to the next live memory value
    	nextMem := f.Cache.allocValueSlice(f.NumValues())
    	defer f.Cache.freeValueSlice(nextMem)
    
    	// inBlockUses records whether a value is used in the block
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 15:53:17 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  7. src/cmd/vendor/github.com/google/pprof/internal/report/report.go

    		for k, vs := range s.NumLabel {
    			if k == "bytes" {
    				unit := o.NumLabelUnits[k]
    				numValues := make([]int64, len(vs))
    				numUnit := make([]string, len(vs))
    				for i, v := range vs {
    					numValues[i] = v
    					numUnit[i] = unit
    				}
    				numLabels[k] = append(numLabels[k], numValues...)
    				numUnits[k] = append(numUnits[k], numUnit...)
    			}
    		}
    		s.NumLabel = numLabels
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/writebarrier.go

    			// allocate auxiliary data structures for computing store order
    			sset = f.newSparseSet(f.NumValues())
    			defer f.retSparseSet(sset)
    			sset2 = f.newSparseSet(f.NumValues())
    			defer f.retSparseSet(sset2)
    			storeNumber = f.Cache.allocInt32Slice(f.NumValues())
    			defer f.Cache.freeInt32Slice(storeNumber)
    		}
    
    		// order values in store order
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 23.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/check.go

    	"cmd/internal/obj/s390x"
    	"math"
    	"math/bits"
    )
    
    // checkFunc checks invariants of f.
    func checkFunc(f *Func) {
    	blockMark := make([]bool, f.NumBlocks())
    	valueMark := make([]bool, f.NumValues())
    
    	for _, b := range f.Blocks {
    		if blockMark[b.ID] {
    			f.Fatalf("block %s appears twice in %s!", b, f.Name)
    		}
    		blockMark[b.ID] = true
    		if b.Func != f {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 16:41:23 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  10. src/cmd/vendor/github.com/google/pprof/profile/encode.go

    					labels[key] = append(labels[key], value)
    				} else if l.numX != 0 || l.unitX != 0 {
    					numValues := numLabels[key]
    					units := numUnits[key]
    					if l.unitX != 0 {
    						var unit string
    						unit, err = getString(p.stringTable, &l.unitX, err)
    						units = padStringArray(units, len(numValues))
    						numUnits[key] = append(units, unit)
    					}
    					numLabels[key] = append(numLabels[key], l.numX)
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 17.1K bytes
    - Viewed (0)
Back to top