mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: retrieve Args from registers
in progress; doesn't fully work until they are also passed on register on the caller side. For #40724. Change-Id: I29a6680e60bdbe9d132782530214f2a2b51fb8f6 Reviewed-on: https://go-review.googlesource.com/c/go/+/293394 Trust: David Chase <drchase@google.com> Run-TryBot: David Chase <drchase@google.com> Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
parent
06c72f3627
commit
f2df1e3c34
8 changed files with 64 additions and 14 deletions
|
|
@ -158,6 +158,13 @@ func (a *ABIConfig) LocalsOffset() int64 {
|
|||
return a.offsetForLocals
|
||||
}
|
||||
|
||||
// FloatIndexFor translates r into an index in the floating point parameter
|
||||
// registers. If the result is negative, the input index was actually for the
|
||||
// integer parameter registers.
|
||||
func (a *ABIConfig) FloatIndexFor(r RegIndex) int64 {
|
||||
return int64(r) - int64(a.regAmounts.intRegs)
|
||||
}
|
||||
|
||||
// NumParamRegs returns the number of parameter registers used for a given type,
|
||||
// without regard for the number available.
|
||||
func (a *ABIConfig) NumParamRegs(t *types.Type) int {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue