- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for WithNotStmt (0.17 sec)
-
src/cmd/internal/src/xpos.go
func (p XPos) After(q XPos) bool { n, m := p.index, q.index return n > m || n == m && p.lico > q.lico } // WithNotStmt returns the same location to be marked with DWARF is_stmt=0 func (p XPos) WithNotStmt() XPos { p.lico = p.lico.withNotStmt() return p } // WithDefaultStmt returns the same location with undetermined is_stmt func (p XPos) WithDefaultStmt() XPos {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:52:41 UTC 2023 - 4.9K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/expand_calls.go
e := b.NewValue1I(pos, OpArraySelect, et, i, a) pos = pos.WithNotStmt() mem = x.decomposeAsNecessary(pos, b, e, mem, rc.next(et)) } return mem case types.TSTRUCT: for i := 0; i < at.NumFields(); i++ { et := at.Field(i).Type // might need to read offsets from the fields e := b.NewValue1I(pos, OpStructSelect, et, int64(i), a) pos = pos.WithNotStmt() if x.debug > 1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 28 05:13:40 UTC 2023 - 31.9K bytes - Viewed (0) -
src/cmd/internal/src/xpos_test.go
for _, x := range []struct { f func(XPos) XPos e uint }{ {XPos.WithDefaultStmt, PosDefaultStmt}, {XPos.WithIsStmt, PosIsStmt}, {XPos.WithNotStmt, PosNotStmt}, {XPos.WithIsStmt, PosIsStmt}, {XPos.WithDefaultStmt, PosDefaultStmt}, {XPos.WithNotStmt, PosNotStmt}} { xposWith := x.f(xpos) expected := x.e if xpos.Line() == 0 && xpos.Col() == 0 { expected = PosNotStmt }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:52:41 UTC 2023 - 2.7K bytes - Viewed (0) -
src/cmd/internal/src/pos_test.go
{makeLico(0, 1), ":0:1" + def, 0, 1}, {makeLico(1, 0), ":1" + def, 1, 0}, {makeLico(1, 1), ":1:1" + def, 1, 1}, {makeLico(1, 1).withIsStmt(), ":1:1" + is, 1, 1}, {makeLico(1, 1).withNotStmt(), ":1:1" + not, 1, 1}, {makeLico(lineMax, 1), fmt.Sprintf(":%d", lineMax) + def, lineMax, 1}, {makeLico(lineMax+1, 1), fmt.Sprintf(":%d", lineMax) + def, lineMax, 1}, // line too large, stick with max. line
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 14 23:50:26 UTC 2022 - 8.4K bytes - Viewed (0) -
src/cmd/compile/internal/walk/switch.go
leaf(i, nif) base.Pos = base.Pos.WithNotStmt() nif.Cond = typecheck.Expr(nif.Cond) nif.Cond = typecheck.DefaultLit(nif.Cond, nil) out.Append(nif) out = &nif.Else } return } half := lo + n/2 nif := ir.NewIfStmt(base.Pos, nil, nil, nil) nif.Cond = less(half) base.Pos = base.Pos.WithNotStmt() nif.Cond = typecheck.Expr(nif.Cond)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:34:01 UTC 2024 - 30.1K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/func.go
} if v.Op == OpSP { sp = v } if sb != nil && sp != nil { return } } if sb == nil { sb = f.Entry.NewValue0(initpos.WithNotStmt(), OpSB, f.Config.Types.Uintptr) } if sp == nil { sp = f.Entry.NewValue0(initpos.WithNotStmt(), OpSP, f.Config.Types.Uintptr) } return } // useFMA allows targeted debugging w/ GOFMAHASH
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 25.8K bytes - Viewed (0) -
src/cmd/internal/src/pos.go
} return uint(x) >> isStmtShift & isStmtMax } func (x lico) Xlogue() PosXlogue { return PosXlogue(uint(x) >> xlogueShift & xlogueMax) } // withNotStmt returns a lico for the same location, but not a statement func (x lico) withNotStmt() lico { return x.withStmt(PosNotStmt) } // withDefaultStmt returns a lico for the same location, with default isStmt func (x lico) withDefaultStmt() lico {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:52:41 UTC 2023 - 15.5K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/nilcheck.go
ptr := v.Args[0] if nonNilValues[ptr.ID] != nil { if v.Pos.IsStmt() == src.PosIsStmt { // Boolean true is a terrible statement boundary. pendingLines.add(v.Pos) v.Pos = v.Pos.WithNotStmt() } // This is a redundant explicit nil check. v.reset(OpConstBool) v.AuxInt = 1 // true } case OpNilCheck: ptr := v.Args[0]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 31 20:45:54 UTC 2023 - 11.3K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/cse.go
// and the same line, v is a good-enough new statement boundary. if w.Block == v.Block && w.Pos.Line() == v.Pos.Line() { v.Pos = v.Pos.WithIsStmt() w.Pos = w.Pos.WithNotStmt() } // TODO and if this fails? } v.SetArg(i, x) rewrites++ } } } for i, v := range b.ControlValues() { if x := rewrite[v.ID]; x != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 31 21:41:20 UTC 2022 - 9.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/value.go
// copyInto makes a new value identical to v and adds it to the end of b. // unlike copyIntoWithXPos this does not check for v.Pos being a statement. func (v *Value) copyInto(b *Block) *Value { c := b.NewValue0(v.Pos.WithNotStmt(), v.Op, v.Type) // Lose the position, this causes line number churn otherwise. c.Aux = v.Aux c.AuxInt = v.AuxInt c.AddArgs(v.Args...) for _, a := range v.Args { if a.Type.IsMemory() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 16:40:22 UTC 2024 - 16.7K bytes - Viewed (0)