mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/internal/gc: make all Node depths int32
Funcdepth was already int32. Make Escloopdepth and Decldepth also int32 instead of int. No functional changes for non-absurd code. Passes toolstash -cmp. Change-Id: I47e145dd732b6a73cfcc6d45956df0dbccdcd999 Reviewed-on: https://go-review.googlesource.com/10129 Reviewed-by: Russ Cox <rsc@golang.org>
This commit is contained in:
parent
79986e24e0
commit
2b063bdff1
3 changed files with 4 additions and 4 deletions
|
|
@ -379,7 +379,7 @@ type EscState struct {
|
||||||
theSink Node
|
theSink Node
|
||||||
|
|
||||||
dsts *NodeList // all dst nodes
|
dsts *NodeList // all dst nodes
|
||||||
loopdepth int // for detecting nested loop scopes
|
loopdepth int32 // for detecting nested loop scopes
|
||||||
pdepth int // for debug printing in recursions.
|
pdepth int // for debug printing in recursions.
|
||||||
dstcount int // diagnostic
|
dstcount int // diagnostic
|
||||||
edgecount int // diagnostic
|
edgecount int // diagnostic
|
||||||
|
|
|
||||||
|
|
@ -448,7 +448,7 @@ var nsavederrors int
|
||||||
|
|
||||||
var nsyntaxerrors int
|
var nsyntaxerrors int
|
||||||
|
|
||||||
var decldepth int
|
var decldepth int32
|
||||||
|
|
||||||
var safemode int
|
var safemode int
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ type Node struct {
|
||||||
// Escape analysis.
|
// Escape analysis.
|
||||||
Escflowsrc *NodeList // flow(this, src)
|
Escflowsrc *NodeList // flow(this, src)
|
||||||
Escretval *NodeList // on OCALLxxx, list of dummy return values
|
Escretval *NodeList // on OCALLxxx, list of dummy return values
|
||||||
Escloopdepth int // -1: global, 0: return variables, 1:function top level, increased inside function for every loop or label to mark scopes
|
Escloopdepth int32 // -1: global, 0: return variables, 1:function top level, increased inside function for every loop or label to mark scopes
|
||||||
|
|
||||||
Sym *Sym // various
|
Sym *Sym // various
|
||||||
Vargen int32 // unique name for OTYPE/ONAME within a function. Function outputs are numbered starting at one.
|
Vargen int32 // unique name for OTYPE/ONAME within a function. Function outputs are numbered starting at one.
|
||||||
|
|
@ -108,7 +108,7 @@ type Node struct {
|
||||||
type Name struct {
|
type Name struct {
|
||||||
Heapaddr *Node // temp holding heap address of param
|
Heapaddr *Node // temp holding heap address of param
|
||||||
Inlvar *Node // ONAME substitute while inlining
|
Inlvar *Node // ONAME substitute while inlining
|
||||||
Decldepth int // declaration loop depth, increased for every loop or label
|
Decldepth int32 // declaration loop depth, increased for every loop or label
|
||||||
Method bool // OCALLMETH name
|
Method bool // OCALLMETH name
|
||||||
Readonly bool
|
Readonly bool
|
||||||
Captured bool // is the variable captured by a closure
|
Captured bool // is the variable captured by a closure
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue