Documentation ¶
Index ¶
Constants ¶
View Source
const ( InitNotStarted = iota InitDone InitPending )
Static initialization phase. These values are stored in two bits in Node.flags.
Variables ¶
View Source
var InstrumentGlobalsMap = make(map[string]ir.Node)
InstrumentGlobalsMap contains only package-local (and unlinknamed from somewhere else) globals. And the key is the object name. For example, in package p, a global foo would be in this map as "foo". Consider range over maps is nondeterministic, make a slice to hold all the values in the InstrumentGlobalsMap and iterate over the InstrumentGlobalsSlice.
View Source
var InstrumentGlobalsSlice = make([]ir.Node, 0, 0)
Functions ¶
func GetRedzoneSizeForGlobal ¶ added in go1.19
Calculate redzone for globals.
func MakeInit ¶ added in go1.18
func MakeInit()
MakeInit creates a synthetic init function to handle any package-scope initialization statements.
TODO(mdempsky): Move into noder, so that the types2-based frontends can use Info.InitOrder instead.
Types ¶
Click to show internal directories.
Click to hide internal directories.