mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: move Node.Defn to Node.Name.Defn
$ sizeof -p cmd/compile/internal/gc Node Node 256 $ Change-Id: I89ac8bbe077664aa076092bfd096947e84c0624c Reviewed-on: https://go-review.googlesource.com/10523 Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
parent
496ad0a286
commit
4fdd53680c
14 changed files with 92 additions and 89 deletions
|
|
@ -30,7 +30,6 @@ type Node struct {
|
|||
|
||||
// ONAME
|
||||
Name *Name
|
||||
Defn *Node // ONAME: initializing assignment; OLABEL: labeled statement
|
||||
Pack *Node // real package for import . names
|
||||
Curfn *Node // function for local variables
|
||||
Alloc *Node // allocation call
|
||||
|
|
@ -98,6 +97,7 @@ type Node struct {
|
|||
type Name struct {
|
||||
Heapaddr *Node // temp holding heap address of param
|
||||
Inlvar *Node // ONAME substitute while inlining
|
||||
Defn *Node // initializing assignment
|
||||
Decldepth int32 // declaration loop depth, increased for every loop or label
|
||||
Method bool // OCALLMETH name
|
||||
Readonly bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue