mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: move Heapaddr field from Name to Param
No performance impact, just cleanup. Passes toolstash -cmp. Change-Id: Ic7957d2686de53a9680c2bdefe926cccccd73a5c Reviewed-on: https://go-review.googlesource.com/36316 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> Reviewed-by: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
5c90e1cf8a
commit
ad784caa74
5 changed files with 12 additions and 12 deletions
|
|
@ -189,7 +189,6 @@ func (n *Node) SetIota(x int64) {
|
|||
type Name struct {
|
||||
Pack *Node // real package for import . names
|
||||
Pkg *Pkg // pkg for OPACK nodes
|
||||
Heapaddr *Node // temp holding heap address of param (could move to Param?)
|
||||
Defn *Node // initializing assignment
|
||||
Curfn *Node // function for local variables
|
||||
Param *Param // additional fields for ONAME, OTYPE
|
||||
|
|
@ -205,7 +204,8 @@ type Name struct {
|
|||
}
|
||||
|
||||
type Param struct {
|
||||
Ntype *Node
|
||||
Ntype *Node
|
||||
Heapaddr *Node // temp holding heap address of param
|
||||
|
||||
// ONAME PAUTOHEAP
|
||||
Stackcopy *Node // the PPARAM/PPARAMOUT on-stack slot (moved func params only)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue