mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: remove Node.Ntest, Node.Stkdelta
$ sizeof -p cmd/compile/internal/gc Node Node 272 $ Change-Id: I3d9b67eebfc0be0a4b9768d3de3dc76300abd89c Reviewed-on: https://go-review.googlesource.com/10521 Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
parent
ffef180f82
commit
66be1481df
20 changed files with 207 additions and 269 deletions
|
|
@ -214,7 +214,6 @@ func init2(n *Node, out **NodeList) {
|
|||
init1(n, out)
|
||||
init2(n.Left, out)
|
||||
init2(n.Right, out)
|
||||
init2(n.Ntest, out)
|
||||
init2list(n.Ninit, out)
|
||||
init2list(n.List, out)
|
||||
init2list(n.Rlist, out)
|
||||
|
|
@ -996,7 +995,7 @@ func maplit(ctxt int, n *Node, var_ *Node, init **NodeList) {
|
|||
a.Nbody = list1(r)
|
||||
|
||||
a.Ninit = list1(Nod(OAS, index, Nodintconst(0)))
|
||||
a.Ntest = Nod(OLT, index, Nodintconst(t.Bound))
|
||||
a.Left = Nod(OLT, index, Nodintconst(t.Bound))
|
||||
a.Right = Nod(OAS, index, Nod(OADD, index, Nodintconst(1)))
|
||||
|
||||
typecheck(&a, Etop)
|
||||
|
|
@ -1221,6 +1220,7 @@ func oaslit(n *Node, init **NodeList) bool {
|
|||
}
|
||||
|
||||
n.Op = OEMPTY
|
||||
n.Right = nil
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue