mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: move Node.Vargen, Node.Iota into Node.Name
$ sizeof -p cmd/compile/internal/gc Node Node 192 $ Change-Id: I8f0c1a3cc2bf9c8eff02bbd8d061ff98affc9eb0 Reviewed-on: https://go-review.googlesource.com/10529 Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
parent
3007e953d0
commit
11322d45a1
6 changed files with 22 additions and 20 deletions
|
|
@ -42,9 +42,7 @@ type Node struct {
|
|||
|
||||
Xoffset int64
|
||||
|
||||
Vargen int32 // unique name for OTYPE/ONAME within a function. Function outputs are numbered starting at one.
|
||||
Lineno int32
|
||||
Iota int32
|
||||
Walkgen uint32
|
||||
|
||||
Funcdepth int32
|
||||
|
|
@ -87,6 +85,8 @@ type Name struct {
|
|||
Inlvar *Node // ONAME substitute while inlining
|
||||
Defn *Node // initializing assignment
|
||||
Decldepth int32 // declaration loop depth, increased for every loop or label
|
||||
Vargen int32 // unique name for OTYPE/ONAME within a function. Function outputs are numbered starting at one.
|
||||
Iota int32 // value if this name is iota
|
||||
Method bool // OCALLMETH name
|
||||
Readonly bool
|
||||
Captured bool // is the variable captured by a closure
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue