- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for doSlice3 (0.21 sec)
-
test/fixedbugs/issue30116.go
var slices = []int64{-9876543210, -1, 0, 3, 4, 9876543210} var w *tabwriter.Writer func main() { w = tabwriter.NewWriter(os.Stdout, 0, 0, 1, ' ', tabwriter.AlignRight) defer w.Flush() doIndex() doSlice() doSlice3() } func doIndex() { a := []int{1, 2, 3} for _, i := range indexes { printPanic(fmt.Sprintf("slice[%d]", i), func() { _ = a[i] }) } b := [3]int{1, 2, 3} for _, i := range indexes {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 18 17:33:38 UTC 2019 - 2.2K bytes - Viewed (0) -
test/fixedbugs/issue30116u.go
var slices = []uint64{0, 3, 4, 1<<32 - 1, 1<<64 - 1} var w *tabwriter.Writer func main() { w = tabwriter.NewWriter(os.Stdout, 0, 0, 1, ' ', tabwriter.AlignRight) defer w.Flush() doIndex() doSlice() doSlice3() } func doIndex() { a := []int{1, 2, 3} for _, i := range indexes { printPanic(fmt.Sprintf("slice[%d]", i), func() { _ = a[i] }) } b := [3]int{1, 2, 3} for _, i := range indexes {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 18 17:33:38 UTC 2019 - 2.2K bytes - Viewed (0) -
src/cmd/compile/internal/walk/walk.go
default: base.FatalfAt(n.Pos(), "mayCall %+v", n) case ir.OCALLFUNC, ir.OCALLINTER, ir.OUNSAFEADD, ir.OUNSAFESLICE: return true case ir.OINDEX, ir.OSLICE, ir.OSLICEARR, ir.OSLICE3, ir.OSLICE3ARR, ir.OSLICESTR, ir.ODEREF, ir.ODOTPTR, ir.ODOTTYPE, ir.ODYNAMICDOTTYPE, ir.ODIV, ir.OMOD, ir.OSLICE2ARR, ir.OSLICE2ARRPTR: // These ops might panic, make sure they are done
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 27 20:56:00 UTC 2024 - 10.4K bytes - Viewed (0) -
src/cmd/compile/internal/ir/fmt.go
OUNSAFESLICEDATA: 8, OUNSAFESTRING: 8, OUNSAFESTRINGDATA: 8, OINDEXMAP: 8, OINDEX: 8, OSLICE: 8, OSLICESTR: 8, OSLICEARR: 8, OSLICE3: 8, OSLICE3ARR: 8, OSLICEHEADER: 8, OSTRINGHEADER: 8, ODOTINTER: 8, ODOTMETH: 8, ODOTPTR: 8, ODOTTYPE2: 8, ODOTTYPE: 8,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 15:20:28 UTC 2023 - 26K bytes - Viewed (0) -
src/cmd/compile/internal/walk/expr.go
n := n.(*ir.SliceHeaderExpr) return walkSliceHeader(n, init) case ir.OSTRINGHEADER: n := n.(*ir.StringHeaderExpr) return walkStringHeader(n, init) case ir.OSLICE, ir.OSLICEARR, ir.OSLICESTR, ir.OSLICE3, ir.OSLICE3ARR: n := n.(*ir.SliceExpr) return walkSlice(n, init) case ir.ONEW: n := n.(*ir.UnaryExpr) return walkNew(n, init) case ir.OADDSTR:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:34:01 UTC 2024 - 27.6K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/expr.go
} if t.IsString() { n.SetType(types.NewPtr(types.Types[types.TUINT8])) } else { n.SetType(types.NewPtr(t.Elem())) } return n } // tcSlice typechecks an OSLICE or OSLICE3 node. func tcSlice(n *ir.SliceExpr) ir.Node { n.X = DefaultLit(Expr(n.X), nil) n.Low = indexlit(Expr(n.Low)) n.High = indexlit(Expr(n.High)) n.Max = indexlit(Expr(n.Max)) hasmax := n.Op().IsSlice3()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 23.1K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/typecheck.go
case ir.OSTRINGHEADER: n := n.(*ir.StringHeaderExpr) return tcStringHeader(n) case ir.OMAKESLICECOPY: n := n.(*ir.MakeExpr) return tcMakeSliceCopy(n) case ir.OSLICE, ir.OSLICE3: n := n.(*ir.SliceExpr) return tcSlice(n) // call and call like case ir.OCALL: n := n.(*ir.CallExpr) return tcCall(n, top) case ir.OCAP, ir.OLEN: n := n.(*ir.UnaryExpr)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 20 19:08:34 UTC 2024 - 30.5K bytes - Viewed (0) -
src/cmd/compile/internal/walk/order.go
o.exprList(n.Args) } if lhs == nil || lhs.Op() != ir.ONAME && !ir.SameSafeExpr(lhs, n.Args[0]) { return o.copyExpr(n) } return n case ir.OSLICE, ir.OSLICEARR, ir.OSLICESTR, ir.OSLICE3, ir.OSLICE3ARR: n := n.(*ir.SliceExpr) n.X = o.expr(n.X, nil) n.Low = o.cheapExpr(o.expr(n.Low, nil)) n.High = o.cheapExpr(o.expr(n.High, nil)) n.Max = o.cheapExpr(o.expr(n.Max, nil))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 02:00:33 UTC 2024 - 42.7K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/ssa.go
} } else { if rhs == nil { r = s.zeroVal(t) } else { r = s.expr(rhs) } } var skip skipMask if rhs != nil && (rhs.Op() == ir.OSLICE || rhs.Op() == ir.OSLICE3 || rhs.Op() == ir.OSLICESTR) && ir.SameSafeExpr(rhs.(*ir.SliceExpr).X, n.X) { // We're assigning a slicing operation back to its source. // Don't write back fields we aren't changing. See issue #14855.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 284.9K bytes - Viewed (0)