- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for Bush (0.17 sec)
-
src/cmd/asm/internal/lex/lex.go
// NewLexer returns a lexer for the named file and the given link context. func NewLexer(name string) TokenReader { input := NewInput(name) fd, err := os.Open(name) if err != nil { log.Fatalf("%s\n", err) } input.Push(NewTokenizer(name, fd, fd)) return input } // The other files in this directory each contain an implementation of TokenReader.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 29 18:31:05 UTC 2023 - 4.1K bytes - Viewed (0) -
src/cmd/link/internal/ld/heap_test.go
// Also check that mixed pushes and pops work correctly. for _, s := range tests { h := heap{} for i := 0; i < len(s)/2; i++ { // two pushes, one pop h.push(s[2*i]) if !verify(&h, 0) { t.Errorf("heap invariant violated: %v", h) } h.push(s[2*i+1]) if !verify(&h, 0) { t.Errorf("heap invariant violated: %v", h) } h.pop() if !verify(&h, 0) { t.Errorf("heap invariant violated: %v", h)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 04 19:13:42 UTC 2020 - 1.9K bytes - Viewed (0) -
src/cmd/link/internal/ld/inittask.go
edges = append(edges, edge{from: x, to: s}) if _, ok := m[s]; ok { continue // already found } q = append(q, s) m[s] = 0 // mark as found } m[x] = ndeps if ndeps == 0 { h.push(ldr, x) } } // Sort edges so we can look them up by edge destination. sort.Slice(edges, func(i, j int) bool { return edges[i].to < edges[j].to }) // Figure out the schedule.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 30 20:09:45 UTC 2024 - 6.2K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/deadcode.go
for _, e := range s { c := e.b if int(c.ID) >= len(reachable) { f.Fatalf("block %s >= f.NumBlocks()=%d?", c, len(reachable)) } if !reachable[c.ID] { reachable[c.ID] = true p = append(p, c) // push } } } return reachable } // liveValues returns the live values in f and a list of values that are eligible // to be statements in reversed data flow order.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 08 00:29:01 UTC 2023 - 9.2K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/layout.go
for _, b := range f.Blocks { if exit.contains(b.ID) { // exit blocks are always scheduled last continue } indegree[b.ID] = len(b.Preds) if len(b.Preds) == 0 { // Push an element to the tail of the queue. zerodegree = append(zerodegree, b.ID) } else { posdegree.add(b.ID) } } bid := f.Entry.ID blockloop: for { // add block to schedule
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 31 21:41:20 UTC 2022 - 5K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/regalloc_test.go
for _, v := range b.Values { if v.Op == OpLoadReg && r[v.ID].String() == "g" { t.Errorf("Saw OpLoadReg targeting g register: %s", v.LongString()) } } } } // Test to make sure we don't push spills into loops. // See issue #19595. func TestSpillWithLoop(t *testing.T) { c := testConfig(t) f := c.Fun("entry", Bloc("entry", Valu("mem", OpInitMem, types.TypeMem, 0, nil),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:09:14 UTC 2023 - 6.3K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/export_test.go
func (d TestFrontend) Debug_checknil() bool { return false } func (d TestFrontend) Func() *ir.Func { return d.f } var testTypes Types func init() { // TODO(mdempsky): Push into types.InitUniverse or typecheck.InitUniverse. types.PtrSize = 8 types.RegSize = 8 types.MaxWidth = 1 << 50 base.Ctxt = &obj.Link{Arch: &obj.LinkArch{Arch: &sys.Arch{Alignment: 1, CanMergeLoads: true}}}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 21:19:39 UTC 2024 - 3.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/mono.go
// template. So any instantiation cycles must occur within a single // package. Accordingly, we can ignore instantiations of imported // type parameters. // // TODO(mdempsky): Push this check up into recordInstance? All type // parameters in a list will appear in the same package. if tpar.Obj().Pkg() != pkg { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 28 00:05:29 UTC 2024 - 9.1K bytes - Viewed (0) -
src/cmd/asm/internal/lex/stack.go
) // A Stack is a stack of TokenReaders. As the top TokenReader hits EOF, // it resumes reading the next one down. type Stack struct { tr []TokenReader } // Push adds tr to the top (end) of the input stack. (Popping happens automatically.) func (s *Stack) Push(tr TokenReader) { s.tr = append(s.tr, tr) } func (s *Stack) Next() ScanToken { tos := s.tr[len(s.tr)-1] tok := tos.Next()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 09 22:33:23 UTC 2017 - 1.2K bytes - Viewed (0) -
src/cmd/link/internal/ld/heap.go
package ld import "cmd/link/internal/loader" // Min-heap implementation, for the deadcode pass. // Specialized for loader.Sym elements. type heap []loader.Sym func (h *heap) push(s loader.Sym) { *h = append(*h, s) // sift up n := len(*h) - 1 for n > 0 { p := (n - 1) / 2 // parent if (*h)[p] <= (*h)[n] { break } (*h)[n], (*h)[p] = (*h)[p], (*h)[n] n = p } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 14 16:55:22 UTC 2023 - 1.9K bytes - Viewed (0)