abi
常量
|
|
变量
This section is empty.
函数
func FuncPCABI0
|
|
FuncPCABI0 returns the entry PC of the function f, which must be a direct reference of a function defined as ABI0. Otherwise it is a compile-time error.
Implemented as a compile intrinsic.
func FuncPCABIInternal
|
|
FuncPCABIInternal returns the entry PC of the function f. If f is a direct reference of a function, it must be defined as ABIInternal. Otherwise it is a compile-time error. If f is not a direct reference of a defined function, it assumes that f is a func value. Otherwise the behavior is undefined.
Implemented as a compile intrinsic.
类型
type IntArgRegBitmap
|
|
IntArgRegBitmap is a bitmap large enough to hold one bit per integer argument/return register.
(*IntArgRegBitmap) Get
|
|
Get returns whether the i’th bit of the bitmap is set.
nosplit because it’s called in extremely sensitive contexts, like on the reflectcall return path.
(*IntArgRegBitmap) Set
|
|
Set sets the i’th bit of the bitmap to 1.
type RegArgs
|
|
RegArgs is a struct that has space for each argument and return value register on the current architecture.
Assembly code knows the layout of the first two fields of RegArgs.
RegArgs also contains additional space to hold pointers when it may not be safe to keep them only in the integer register space otherwise.
(*RegArgs) Dump <- go1.17.6
|
|
(*RegArgs) IntRegArgAddr <- go1.18
|
|
IntRegArgAddr returns a pointer inside of r.Ints[reg] that is appropriately offset for an argument of size argSize.
argSize must be non-zero, fit in a register, and a power-of-two.
This method is a helper for dealing with the endianness of different CPU architectures, since sub-word-sized arguments in big endian architectures need to be “aligned” to the upper edge of the register to be interpreted by the CPU correctly.