mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: move Node.Param, Node.Funcdepth into Node.Name; remove Node.Walkgen
$ sizeof -p cmd/compile/internal/gc Node Node 176 $ Change-Id: Ibf1ab531a60d4af8a0c242c0e504f4fd50cd5b36 Reviewed-on: https://go-review.googlesource.com/10530 Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
parent
11322d45a1
commit
3c3019aa51
17 changed files with 156 additions and 173 deletions
|
|
@ -220,7 +220,7 @@ func init2(n *Node, out **NodeList) {
|
|||
init2list(n.Nbody, out)
|
||||
|
||||
if n.Op == OCLOSURE {
|
||||
init2list(n.Param.Closure.Nbody, out)
|
||||
init2list(n.Func.Closure.Nbody, out)
|
||||
}
|
||||
if n.Op == ODOTMETH || n.Op == OCALLPART {
|
||||
init2(n.Type.Nname, out)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue