mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: remove Node.Nincr, Node.Nelse, Node.Initplan
$ sizeof -p cmd/compile/internal/gc Node Node 288 $ Change-Id: I4e316efa246132b3faa3a892e4fe9c9039250665 Reviewed-on: https://go-review.googlesource.com/10520 Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
parent
bbdf631f34
commit
ffef180f82
16 changed files with 54 additions and 88 deletions
|
|
@ -788,7 +788,7 @@ func gen(n *Node) {
|
|||
lab.Continpc = continpc
|
||||
}
|
||||
|
||||
gen(n.Nincr) // contin: incr
|
||||
gen(n.Right) // contin: incr
|
||||
Patch(p1, Pc) // test:
|
||||
Bgen(n.Ntest, false, -1, breakpc) // if(!test) goto break
|
||||
Genlist(n.Nbody) // body
|
||||
|
|
@ -809,7 +809,7 @@ func gen(n *Node) {
|
|||
Genlist(n.Nbody) // then
|
||||
p3 := gjmp(nil) // goto done
|
||||
Patch(p2, Pc) // else:
|
||||
Genlist(n.Nelse) // else
|
||||
Genlist(n.Rlist) // else
|
||||
Patch(p3, Pc) // done:
|
||||
|
||||
case OSWITCH:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue