Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 185 for Prog (0.03 sec)

  1. src/regexp/syntax/prog_test.go

    `},
    }
    
    func TestCompile(t *testing.T) {
    	for _, tt := range compileTests {
    		re, _ := Parse(tt.Regexp, Perl)
    		p, _ := Compile(re)
    		s := p.String()
    		if s != tt.Prog {
    			t.Errorf("compiled %#q:\n--- have\n%s---\n--- want\n%s---", tt.Regexp, s, tt.Prog)
    		}
    	}
    }
    
    func BenchmarkEmptyOpContext(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		var r1 rune = -1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 14 04:39:42 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/cover_main_import_path.txt

    [short] skip
    [!GOEXPERIMENT:coverageredesign] skip
    
    # Build this program with -cover and run to collect a profile.
    
    go build -cover -o $WORK/prog.exe .
    
    # Save off old GOCOVERDIR setting
    env SAVEGOCOVERDIR=$GOCOVERDIR
    
    mkdir $WORK/covdata
    env GOCOVERDIR=$WORK/covdata
    exec $WORK/prog.exe
    
    # Restore previous GOCOVERDIR setting
    env GOCOVERDIR=$SAVEGOCOVERDIR
    
    # Report percent lines covered.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 11:36:17 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/ld.go

    			i = LOG - 1
    		}
    		p.Forwd = nil
    		dwn[i]--
    		if dwn[i] <= 0 {
    			dwn[i] = cnt[i]
    			if lst[i] != nil {
    				lst[i].Forwd = p
    			}
    			lst[i] = p
    		}
    	}
    }
    
    func Appendp(q *Prog, newprog ProgAlloc) *Prog {
    	p := newprog()
    	p.Link = q.Link
    	q.Link = p
    	p.Pos = q.Pos
    	return p
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 16 03:02:36 UTC 2020
    - 2.6K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/x86/ytab.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package x86
    
    // argListMax specifies upper arg count limit expected to be carried by obj.Prog.
    // Max len(obj.Prog.RestArgs) can be inferred from this to be 4.
    const argListMax int = 6
    
    type argList [argListMax]uint8
    
    type ytab struct {
    	zcase   uint8
    	zoffset uint8
    
    	// Last arg is usually destination.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 06 15:40:03 UTC 2018
    - 1.2K bytes
    - Viewed (0)
  5. src/text/template/link_test.go

    	}
    	testenv.MustHaveGoBuild(t)
    	const prog = `package main
    
    import (
    	_ "text/template"
    )
    
    type T struct{}
    
    func (t *T) Unused() { println("THIS SHOULD BE ELIMINATED") }
    func (t *T) Used() {}
    
    var sink *T
    
    func main() {
    	var t T
    	sink = &t
    	t.Used()
    }
    `
    	td := t.TempDir()
    
    	if err := os.WriteFile(filepath.Join(td, "x.go"), []byte(prog), 0644); err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 12 21:58:25 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/arch/arm.go

    func ARMConditionCodes(prog *obj.Prog, cond string) bool {
    	if cond == "" {
    		return true
    	}
    	bits, ok := ParseARMCondition(cond)
    	if !ok {
    		return false
    	}
    	/* hack to make B.NE etc. work: turn it into the corresponding conditional */
    	if prog.As == arm.AB {
    		prog.As = bcode[(bits^arm.C_SCOND_XOR)&0xf]
    		bits = (bits &^ 0xf) | arm.C_SCOND_NONE
    	}
    	prog.Scond = bits
    	return true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  7. src/debug/buildinfo/buildinfo.go

    	f *elf.File
    }
    
    func (x *elfExe) ReadData(addr, size uint64) ([]byte, error) {
    	for _, prog := range x.f.Progs {
    		if prog.Vaddr <= addr && addr <= prog.Vaddr+prog.Filesz-1 {
    			n := prog.Vaddr + prog.Filesz - addr
    			if n > size {
    				n = size
    			}
    			return saferio.ReadDataAt(prog, n, int64(addr-prog.Vaddr))
    		}
    	}
    	return nil, errUnrecognizedFormat
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  8. src/regexp/syntax/compile.go

    func makePatchList(n uint32) patchList {
    	return patchList{n, n}
    }
    
    func (l patchList) patch(p *Prog, val uint32) {
    	head := l.head
    	for head != 0 {
    		i := &p.Inst[head>>1]
    		if head&1 == 0 {
    			head = i.Out
    			i.Out = val
    		} else {
    			head = i.Arg
    			i.Arg = val
    		}
    	}
    }
    
    func (l1 patchList) append(p *Prog, l2 patchList) patchList {
    	if l1.head == 0 {
    		return l2
    	}
    	if l2.head == 0 {
    		return l1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 13 14:52:20 UTC 2021
    - 6.8K bytes
    - Viewed (0)
  9. src/cmd/internal/gcprog/gcprog.go

    // and Append panics if that is not true.
    func (w *Writer) Append(prog []byte, n int64) {
    	w.flushlit()
    	if w.debug != nil {
    		fmt.Fprintf(w.debug, "gcprog: append prog for %d ptrs\n", n)
    		fmt.Fprintf(w.debug, "\t")
    	}
    	n1 := progbits(prog)
    	if n1 != n {
    		panic("gcprog: wrong bit count in append")
    	}
    	// The last byte of the prog terminates the program.
    	// Don't emit that, or else our own program will end.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/s390x/objz.go

    	}
    }
    
    // stacksplitPre generates the function stack check prologue following
    // Prog p (which should be the TEXT Prog). It returns one or two
    // branch Progs that must be patched to jump to the morestack epilogue,
    // and the Prog that starts the morestack check.
    func (c *ctxtz) stacksplitPre(p *obj.Prog, framesize int32) (pPre, pPreempt, pCheck *obj.Prog) {
    	if c.ctxt.Flag_maymorestack != "" {
    		// Save LR and REGCTXT
    		const frameSize = 16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 19:28:53 UTC 2023
    - 21K bytes
    - Viewed (0)
Back to top