- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 66 for progx (0.26 sec)
-
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) -
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) -
src/cmd/internal/obj/ld.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 16 03:02:36 UTC 2020 - 2.6K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
test/fixedbugs/issue21576.go
"path/filepath" "time" ) const prog = ` package main import _ "os/signal" func main() { c := make(chan int) c <- 1 } ` func main() { dir, err := ioutil.TempDir("", "21576") if err != nil { log.Fatal(err) } defer os.RemoveAll(dir) file := filepath.Join(dir, "main.go") if err := ioutil.WriteFile(file, []byte(prog), 0655); err != nil { log.Fatalf("Write error %v", err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.3K bytes - Viewed (0) -
src/time/genzabbrs.go
zs, } var buf bytes.Buffer err = template.Must(template.New("prog").Parse(prog)).Execute(&buf, v) if err != nil { log.Fatal(err) } data, err := format.Source(buf.Bytes()) if err != nil { log.Fatal(err) } err = os.WriteFile(*filename, data, 0644) if err != nil { log.Fatal(err) } } const prog = ` // Copyright 2013 The Go Authors. All rights reserved.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 3K bytes - Viewed (0)