Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for FuncIdx (0.15 sec)

  1. src/cmd/covdata/dump.go

    func (d *dstate) VisitFuncCounterData(data decodecounter.FuncPayload) {
    	if nf, ok := d.pkm[data.PkgIdx]; !ok || data.FuncIdx > nf {
    		warn("func payload inconsistency: id [p=%d,f=%d] nf=%d len(ctrs)=%d in VisitFuncCounterData, ignored", data.PkgIdx, data.FuncIdx, nf, len(data.Counters))
    		return
    	}
    	key := pkfunc{pk: data.PkgIdx, fcn: data.FuncIdx}
    	val, found := d.mm[key]
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 11:36:57 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  2. src/internal/coverage/test/counter_test.go

    	for _, fn := range v.funcs {
    		if err := f(fn.PkgIdx, fn.FuncIdx, fn.Counters); err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    func mkfunc(p uint32, f uint32, c []uint32) decodecounter.FuncPayload {
    	return decodecounter.FuncPayload{
    		PkgIdx:   p,
    		FuncIdx:  f,
    		Counters: c,
    	}
    }
    
    func TestCounterDataWriterReader(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 26 12:44:34 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  3. src/cmd/covdata/subtractintersect.go

    }
    
    func (s *sstate) VisitFuncCounterData(data decodecounter.FuncPayload) {
    	key := pkfunc{pk: data.PkgIdx, fcn: data.FuncIdx}
    
    	if *verbflag >= 5 {
    		fmt.Printf("ctr visit fid=%d pk=%d inidx=%d data.Counters=%+v\n", data.FuncIdx, data.PkgIdx, s.inidx, data.Counters)
    	}
    
    	// If we're processing counter data from the initial (first) input
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 12 12:50:46 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  4. src/cmd/covdata/metamerge.go

    	key := pkfunc{pk: data.PkgIdx, fcn: data.FuncIdx}
    	val := mm.pod.pmm[key]
    	// FIXME: in theory either A) len(val.Counters) is zero, or B)
    	// the two lengths are equal. Assert if not? Of course, we could
    	// see odd stuff if there is source file skew.
    	if *verbflag > 4 {
    		fmt.Printf("visit pk=%d fid=%d len(counters)=%d\n", data.PkgIdx, data.FuncIdx, len(data.Counters))
    	}
    	if len(val.Counters) < len(data.Counters) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 17:17:47 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  5. src/internal/coverage/decodecounter/decodecounterfile.go

    	return cdr.goarch
    }
    
    // FuncPayload encapsulates the counter data payload for a single
    // function as read from a counter data file.
    type FuncPayload struct {
    	PkgIdx   uint32
    	FuncIdx  uint32
    	Counters []uint32
    }
    
    // NumSegments returns the number of execution segments in the file.
    func (cdr *CounterDataReader) NumSegments() uint32 {
    	return cdr.ftr.NumSegments
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 27 15:29:54 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  6. src/cmd/internal/testdir/testdir_test.go

    		// Dump the function in which this opcode check was supposed to
    		// pass but failed.
    		funcIdx := lineFuncMap[o.fileline]
    		if funcIdx != 0 && funcIdx != lastFunction {
    			funcLines := lines[functionMarkers[funcIdx]:functionMarkers[funcIdx+1]]
    			t.Log(strings.Join(funcLines, "\n"))
    			lastFunction = funcIdx // avoid printing same function twice
    		}
    
    		if o.negative {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  7. src/cmd/link/internal/wasm/asm.go

    		writeName(ctxt.Out, "_start")       // the wasi entrypoint
    		ctxt.Out.WriteByte(0x00)            // func export
    		writeUleb128(ctxt.Out, uint64(idx)) // funcidx
    		writeName(ctxt.Out, "memory")       // memory in wasi
    		ctxt.Out.WriteByte(0x02)            // mem export
    		writeUleb128(ctxt.Out, 0)           // memidx
    	case "js":
    		writeUleb128(ctxt.Out, 4) // number of exports
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:48 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  8. src/internal/coverage/cfile/testsupport.go

    				return fmt.Errorf("reading counter data file %s: %v", cdf, err)
    			}
    			if !ok {
    				break
    			}
    
    			// NB: sanity check on pkg and func IDs?
    			key := pkfunc{pk: data.PkgIdx, fcn: data.FuncIdx}
    			if prev, found := pmm[key]; found {
    				// Note: no overflow reporting here.
    				if err, _ := ts.cm.MergeCounters(data.Counters, prev); err != nil {
    					return fmt.Errorf("processing counter data file %s: %v", cdf, err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:57:47 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top